wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
5.74k stars 1.69k forks source link

confilct between wx/memory.h and /usr/include/c++/3.2.3/new #21258

Closed wxtrac closed 2 years ago

wxtrac commented 19 years ago

Issue migrated from trac ticket # 1893

component: build | priority: normal

2004-09-21 23:33:00: pamg created the issue


The conflict shows up only when building wx-2.5.2 in DEBUG mode (with memory tracing enabled, etc.) under Linux (2.4.21):

./bk-deps g++ -c -o basedll_log.o -DWXGTK
-DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1 -fPIC -DWXDEBUG -Ilib/wx/include/gtkd-2.5 -I../../../include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -ggdb -O0 -pthread -Wall ../../../src/common/log.cpp In file included from /usr/include/c++/3.2.3/bits/stl_algobase.h:69, from /usr/include/c++/3.2.3/memory:54, from /usr/include/c++/3.2.3/string:48, from /usr/include/c++/3.2.3/bits/localefwd.h:49, from /usr/include/c++/3.2.3/ios:48, from /usr/include/c++/3.2.3/ostream:45, from /usr/include/c++/3.2.3/iostream:45, from ../../../include/wx/ioswrap.h:17, from ../../../src/common/log.cpp:568: /usr/include/c++/3.2.3/new:79: declaration of void* operator new(unsigned int) throw (std::bad_alloc)' throws different exceptions ../../../include/wx/memory.h:79: than previous declarationvoid operator new(unsigned int)' /usr/include/c++/3.2.3/new:80: declaration of `void operator new [](unsigned int) throw (std::bad_alloc)' throws different exceptions ../../../include/wx/memory.h:90: than previous declaration void* operator new [](unsigned int)' /usr/include/c++/3.2.3/new:81: declaration ofvoid operator delete(void) throw ()' throws different exceptions ../../../include/wx/memory.h:84: than previous declaration `void operator delete(void)' /usr/include/c++/3.2.3/new:82: declaration of void operator delete [](void*) throw ()' throws different exceptions ../../../include/wx/memory.h:100: than previous declarationvoid operator delete ' gmake: *** [basedll_log.o] Error 1

wxtrac commented 19 years ago

2004-09-21 23:41:34: @vadz commented


Same as 1032091