Thanks Lee. I got this working now.<br><br><div class="gmail_quote">On Fri, Jul 4, 2008 at 11:26 AM, Lee Salzman <<a href="mailto:lsalzman1@cox.net">lsalzman1@cox.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Don't -I/usr/local/include/enet.<br>
<br>
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.<br>
<br>
Lee<br>
<br>
Andrew Fenn wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
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.<br>
<br></div><div><div></div><div class="Wj3C7c">
On Fri, Jul 4, 2008 at 3:59 AM, ismael <<a href="mailto:ismael.bamba@laposte.net" target="_blank">ismael.bamba@laposte.net</a> <mailto:<a href="mailto:ismael.bamba@laposte.net" target="_blank">ismael.bamba@laposte.net</a>>> wrote:<br>
<br>
Andrew Fenn wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
I am having this problem too, any solutions on how to get it<br>
compiling? I'm using Ubuntu with enet from cvs.<br>
<br>
andrew@blackbox:~/Desktop/hardwar/trunk$ make<br>
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual<br>
-Wcomment -Wcast-align -Wno-deprecated -fvisibility=hidden<br>
-fvisibility-inlines-hidden -g -O -pthread -pipe -DFX<br>
-D_GNU_SOURCE -DINVERSEXY `pkg-config OGRE --cflags` `pkg-config<br>
CEGUI-OGRE --cflags` `pkg-config CEGUI --cflags` `pkg-config OIS<br>
--cflags` -I./include -I./usr/include/boost/<br>
-I/usr/local/include/enet/ src/GUIManager.cpp -o src/GUIManager.o<br>
In file included from src/GUIManager.cpp:17:<br>
./include/GUIManager.h:24: warning: ignoring #pragma warning<br>
./include/GUIManager.h:25: warning: ignoring #pragma warning<br>
In file included from src/GUIManager.cpp:17:<br>
./include/GUIManager.h:38: warning: ignoring #pragma warning<br>
In file included from /usr/include/c++/4.2/cwchar:52,<br>
from /usr/include/c++/4.2/bits/postypes.h:46,<br>
from /usr/include/c++/4.2/iosfwd:49,<br>
from /usr/include/c++/4.2/bits/stl_algobase.h:70,<br>
from /usr/include/c++/4.2/bits/char_traits.h:46,<br>
from /usr/include/c++/4.2/string:47,<br>
from /usr/local/include/CEGUI/CEGUIBase.h:87,<br>
from /usr/local/include/CEGUI/CEGUI.h:34,<br>
from ./include/GUIManager.h:33,<br>
from src/GUIManager.cpp:17:<br>
/usr/include/c++/4.2/ctime:66: error: '::clock_t' has not been<br>
declared<br>
/usr/include/c++/4.2/ctime:67: error: '::time_t' has not been<br>
declared<br>
/usr/include/c++/4.2/ctime:68: error: '::tm' has not been declared<br>
/usr/include/c++/4.2/ctime:70: error: '::clock' has not been declared<br>
/usr/include/c++/4.2/ctime:71: error: '::difftime' has not been<br>
declared<br>
/usr/include/c++/4.2/ctime:72: error: '::mktime' has not been<br>
declared<br>
/usr/include/c++/4.2/ctime:73: error: '::time' has not been declared<br>
/usr/include/c++/4.2/ctime:74: error: '::asctime' has not been<br>
declared<br>
/usr/include/c++/4.2/ctime:75: error: '::ctime' has not been declared<br>
/usr/include/c++/4.2/ctime:76: error: '::gmtime' has not been<br>
declared<br>
/usr/include/c++/4.2/ctime:77: error: '::localtime' has not been<br>
declared<br>
/usr/include/c++/4.2/ctime:78: error: '::strftime' has not been<br>
declared<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
ENet-discuss mailing list<br></div></div>
<a href="mailto:ENet-discuss@cubik.org" target="_blank">ENet-discuss@cubik.org</a> <mailto:<a href="mailto:ENet-discuss@cubik.org" target="_blank">ENet-discuss@cubik.org</a>><div class="Ih2E3d"><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
<br>
</div></blockquote><div class="Ih2E3d">
Me think you got a cstd include missing somehow.give this a try:<br>
#include<cstd><br>
using namespace cstd;<br>
<br>
good luck mate!<br>
<br>
_______________________________________________<br>
ENet-discuss mailing list<br></div>
<a href="mailto:ENet-discuss@cubik.org" target="_blank">ENet-discuss@cubik.org</a> <mailto:<a href="mailto:ENet-discuss@cubik.org" target="_blank">ENet-discuss@cubik.org</a>><div class="Ih2E3d"><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
<br>
<br></div>
------------------------------------------------------------------------<div class="Ih2E3d"><br>
<br>
_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org" target="_blank">ENet-discuss@cubik.org</a><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
<br>
</div></blockquote><div><div></div><div class="Wj3C7c">
<br>
_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org" target="_blank">ENet-discuss@cubik.org</a><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
</div></div></blockquote></div><br>