problem compiling program with ACE
problem compiling program with ACE
- Subject: problem compiling program with ACE
- From: Nissan Zafrir <email@hidden>
- Date: Fri, 7 Jan 2005 22:42:54 +0200
Hi
i have a code that use ACE Sockets , it is compiling fine through the command line with g++ -lACE -I/usr/local/ACE ...
With XCode , I have dragged in the libACE.dylib file into 'Group & Files' panel
and added "/usr/local/ACE/ace" to the target's Library search path and Header search path
when building i get these errors :
CompileC build/AceX.build/AceX.build/Objects-normal/ppc/SetiBrowser.o SetiBrowser.cpp normal ppc c++ com.apple.compilers.gcc.3_3
cd /Users/nis/Desktop/Workspace/AceX
/usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -Wno-trigraphs -fasm-blocks -fpascal-strings -g -O0 -mtune=G4 -fmessage-length=0 -ffix-and-continue -fzero-link -F/Users/nis/Desktop/Workspace/AceX/build -I/Users/nis/Desktop/Workspace/AceX/build/include -I/usr/local/ACE/ace -I/Users/nis/Desktop/Workspace/AceX/build/AceX.build/AceX.build/DerivedSources -Wp,-header-mapfile,/Users/nis/Desktop/Workspace/AceX/build/AceX.build/AceX.build/AceX.hmap -c /Users/nis/Desktop/Workspace/AceX/SetiBrowser.cpp -o /Users/nis/Desktop/Workspace/AceX/build/AceX.build/AceX.build/Objects-normal/ppc/SetiBrowser.o
In file included from /usr/include/ace/INET_Addr.i:6,
from /usr/include/ace/INET_Addr.h:347,
from /Users/nis/Desktop/Workspace/AceX/SetiBrowser.h:1,
from /Users/nis/Desktop/Workspace/AceX/SetiBrowser.cpp:2:
/usr/include/ace/OS_NS_string.h:59: error: declaration of C function `void* ACE_OS::memchr(void*, int, long unsigned int)' conflicts with
/usr/include/ace/OS_NS_string.h:55: error: previous declaration `const void* ACE_OS::memchr(const void*, int, long unsigned int)' here
/usr/include/ace/OS_NS_string.h:107: error: declaration of C function `char* ACE_OS::strchr(char*, int)' conflicts with
/usr/include/ace/OS_NS_string.h:96: error: previous declaration `const char* ACE_OS::strchr(const char*, int)' here
/usr/include/ace/OS_NS_string.h:133: error: declaration of C function `int ACE_OS::strcmp(const ACE_UINT16*, const ACE_UINT16*)' conflicts with
btw, there is only one file using ACE and has the following include lines:
<x-tad-bigger>#include <ace/INET_Addr.h></x-tad-bigger><x-tad-bigger>
</x-tad-bigger><x-tad-bigger>#include <ace/SOCK_Dgram_Mcast.h></x-tad-bigger><x-tad-bigger>
</x-tad-bigger><x-tad-bigger>#include <ace/OS.h></x-tad-bigger><x-tad-bigger>
</x-tad-bigger>
I'm using ACE 5.4 ,installed into /usr/local/ACE , and have "libACE.dylib" in /usr/local/lib/
any idea ?
Nissan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden