Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicts with definitions on <SD.h> #46

Closed
acasadoalonso opened this issue Jan 13, 2015 · 1 comment
Closed

Conflicts with definitions on <SD.h> #46

acasadoalonso opened this issue Jan 13, 2015 · 1 comment

Comments

@acasadoalonso
Copy link

Folks,
I am now able to use the library on the Galileo and Edison IDE with no problems, however I found a new conflict using it with the <SD.h> library.
see the below error messages.
Looks that is a conflict with: redefinition of 'void* operator new(size_t, void*)
Thanks for the help.

AC/.

Arduino: 1.5.3-Intel.1.0.4 (Mac OS X), Board: "Intel® Galileo"

In file included from /Users/acasado/Documents/Arduino/libraries/ArduinoJson2master/include/../include/ArduinoJson/Internals/List.hpp:12:0,
from /Users/acasado/Documents/Arduino/libraries/ArduinoJson2master/include/../include/ArduinoJson/JsonArray.hpp:10,
from /Users/acasado/Documents/Arduino/libraries/ArduinoJson2master/include/ArduinoJson.h:8,
from /Users/acasado/Documents/Arduino/libraries/ArduinoJson2master/ArduinoJson.h:7,
from openweathermap.ino:5:
/Users/acasado/Documents/Arduino/libraries/ArduinoJson2master/include/../include/ArduinoJson/Internals/PlacementNew.hpp: In function 'void* operator new(size_t, void_)':
/Users/acasado/Documents/Arduino/libraries/ArduinoJson2master/include/../include/ArduinoJson/Internals/PlacementNew.hpp:13:14: error: redefinition of 'void_ operator new(size_t, void_)'
In file included from /Users/acasado/Desktop/ArduinoEdison.app/Contents/Resources/Java/hardware/tools/x86/i586-poky-linux-uclibc/usr/include/c++/ext/new_allocator.h:34:0,
from /Users/acasado/Desktop/ArduinoEdison.app/Contents/Resources/Java/hardware/tools/x86/i586-poky-linux-uclibc/usr/include/c++/i586-poky-linux-uclibc/bits/c++allocator.h:34,
from /Users/acasado/Desktop/ArduinoEdison.app/Contents/Resources/Java/hardware/tools/x86/i586-poky-linux-uclibc/usr/include/c++/bits/allocator.h:48,
from /Users/acasado/Desktop/ArduinoEdison.app/Contents/Resources/Java/hardware/tools/x86/i586-poky-linux-uclibc/usr/include/c++/string:43,
from /Users/acasado/Desktop/ArduinoEdison.app/Contents/Resources/Java/hardware/arduino/x86/libraries/SD/SD.h:24,
from GALWeather.ino:22:
/Users/acasado/Desktop/ArduinoEdison.app/Contents/Resources/Java/hardware/tools/x86/i586-poky-linux-uclibc/usr/include/c++/new:111:14: error: 'void_ operator new(std::size_t, void*)' previously defined here

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

@acasadoalonso
Copy link
Author

After studying the issue previously reported about the "new" operator, I discovered that is the same problem, applied the solution and it works perfectly.
Thanks for the great work.
AC/.

Repository owner locked and limited conversation to collaborators Sep 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant