質問編集履歴
1
コードを挿入
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,4 +12,37 @@
|
|
12
12
|
exit status 1
|
13
13
|
ボードArduino Leonardoに対するコンパイル時にエラーが発生しました。
|
14
14
|
|
15
|
+
```
|
16
|
+
|
17
|
+
このエラー文を見るとArudunoSTLのdel_ops.cppに問題があるのかなと思いましたのでdel_ops.cppのコードも載せます。よろしくお願いします。
|
18
|
+
```del_ops.cpp
|
19
|
+
/* Copyright (C) 2004 Garrett A. Kajmowicz
|
20
|
+
|
21
|
+
This file is part of the uClibc++ Library.
|
22
|
+
|
23
|
+
This library is free software; you can redistribute it and/or
|
24
|
+
modify it under the terms of the GNU Lesser General Public
|
25
|
+
License as published by the Free Software Foundation; either
|
26
|
+
version 2.1 of the License, or (at your option) any later version.
|
27
|
+
|
28
|
+
This library is distributed in the hope that it will be useful,
|
29
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
30
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
31
|
+
Lesser General Public License for more details.
|
32
|
+
|
33
|
+
You should have received a copy of the GNU Lesser General Public
|
34
|
+
License along with this library; if not, write to the Free Software
|
35
|
+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
36
|
+
*/
|
37
|
+
|
38
|
+
#include <new>
|
39
|
+
#include <cstdlib>
|
40
|
+
#include <func_exception>
|
41
|
+
|
42
|
+
#ifndef NO_NOTHROW
|
43
|
+
_UCXXEXPORT void operator delete(void* ptr, const std::nothrow_t& ) throw() {
|
44
|
+
free(ptr);
|
45
|
+
}
|
46
|
+
#endif
|
47
|
+
|
15
48
|
```
|