[ENet-discuss] Enet in C++

ismael ismael.bamba at laposte.net
Thu Jul 3 13:59:50 PDT 2008


Andrew Fenn wrote:
> 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
> ------------------------------------------------------------------------
>
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
>   
Me  think you got a cstd include missing somehow.give this a try:
#include<cstd>
using namespace cstd;

good luck mate!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20080703/490c73d3/attachment.htm>


More information about the ENet-discuss mailing list