[ENet-discuss] Enet in C++

Andrew Fenn andrewfenn at gmail.com
Thu Jul 3 01:05:17 PDT 2008


I am having this problem too, any solutions on how to get it compiling? I'm
using Ubuntu with enet from cvs.

andrew at blackbox:~/Desktop/hardwar/trunk$ make
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment
-Wcast-align -Wno-deprecated -fvisibility=hidden -fvisibility-inlines-hidden
-g -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY `pkg-config OGRE
--cflags` `pkg-config CEGUI-OGRE --cflags` `pkg-config CEGUI --cflags`
`pkg-config OIS --cflags`  -I./include -I./usr/include/boost/
-I/usr/local/include/enet/ src/GUIManager.cpp -o src/GUIManager.o
In file included from src/GUIManager.cpp:17:
./include/GUIManager.h:24: warning: ignoring #pragma warning
./include/GUIManager.h:25: warning: ignoring #pragma warning
In file included from src/GUIManager.cpp:17:
./include/GUIManager.h:38: warning: ignoring #pragma warning
In file included from /usr/include/c++/4.2/cwchar:52,
                 from /usr/include/c++/4.2/bits/postypes.h:46,
                 from /usr/include/c++/4.2/iosfwd:49,
                 from /usr/include/c++/4.2/bits/stl_algobase.h:70,
                 from /usr/include/c++/4.2/bits/char_traits.h:46,
                 from /usr/include/c++/4.2/string:47,
                 from /usr/local/include/CEGUI/CEGUIBase.h:87,
                 from /usr/local/include/CEGUI/CEGUI.h:34,
                 from ./include/GUIManager.h:33,
                 from src/GUIManager.cpp:17:
/usr/include/c++/4.2/ctime:66: error: '::clock_t' has not been declared
/usr/include/c++/4.2/ctime:67: error: '::time_t' has not been declared
/usr/include/c++/4.2/ctime:68: error: '::tm' has not been declared
/usr/include/c++/4.2/ctime:70: error: '::clock' has not been declared
/usr/include/c++/4.2/ctime:71: error: '::difftime' has not been declared
/usr/include/c++/4.2/ctime:72: error: '::mktime' has not been declared
/usr/include/c++/4.2/ctime:73: error: '::time' has not been declared
/usr/include/c++/4.2/ctime:74: error: '::asctime' has not been declared
/usr/include/c++/4.2/ctime:75: error: '::ctime' has not been declared
/usr/include/c++/4.2/ctime:76: error: '::gmtime' has not been declared
/usr/include/c++/4.2/ctime:77: error: '::localtime' has not been declared
/usr/include/c++/4.2/ctime:78: error: '::strftime' has not been declared
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20080703/5c50fcb7/attachment.htm>


More information about the ENet-discuss mailing list