[ENet-discuss] Enet in C++
Andrew Fenn
andrewfenn at gmail.com
Thu Jul 3 22:08:35 PDT 2008
Thanks Lee. I got this working now.
On Fri, Jul 4, 2008 at 11:26 AM, Lee Salzman <lsalzman1 at cox.net> wrote:
> Don't -I/usr/local/include/enet.
>
> Try -I/usr/local/include instead and prefix the include filenames with
> "enet/" when you use #include, i.e. #include <enet/enet.h> is the way you
> should be using it.
>
> Lee
>
> Andrew Fenn wrote:
>
>> No good, I forgot to mention that I get this error when I am trying to use
>> enet. Could it be something to do with the fact that enet includes a file
>> called "time.h" and gcc in confusing this with my system's time.h file? I
>> have no idea where to go from here.
>>
>> On Fri, Jul 4, 2008 at 3:59 AM, ismael <ismael.bamba at laposte.net <mailto:
>> ismael.bamba at laposte.net>> wrote:
>>
>> 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 <mailto: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!
>>
>> _______________________________________________
>> ENet-discuss mailing list
>> ENet-discuss at cubik.org <mailto:ENet-discuss at cubik.org>
>> http://lists.cubik.org/mailman/listinfo/enet-discuss
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> ENet-discuss mailing list
>> ENet-discuss at cubik.org
>> http://lists.cubik.org/mailman/listinfo/enet-discuss
>>
>>
>
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20080704/2d04ec4e/attachment-0001.htm>
More information about the ENet-discuss
mailing list