TNL Compiling problems
by Sean Grove · in Torque Game Engine · 02/20/2005 (7:20 pm) · 5 replies
I'm getting a lot of "undefined references" while compiling the simpleTNL example program. I'm under the impression that I'm not linking to the lib, but I'm not even sure where the lib is, or what to link, etc.
I would definately be willing to start writing some tutorials and documenting my experience with OpenTNL to help other developers out. So let's get this one down and we can start some kind of knowledgebase from these forums . . . .
basically, here's my output with gcc 3.3.3:
"Some line in everysingle.h: Undefined reference to TNL::Somefunction" <- initially it's primarily gBasePtr, but it starts with TNL:RPCEvent:MarshallArguments and whatnot later on.
What am I missing here, what do I have to link to, etc?
Thank you so much for your time.
regards,
regress
I would definately be willing to start writing some tutorials and documenting my experience with OpenTNL to help other developers out. So let's get this one down and we can start some kind of knowledgebase from these forums . . . .
basically, here's my output with gcc 3.3.3:
"Some line in everysingle.h: Undefined reference to TNL::Somefunction" <- initially it's primarily gBasePtr, but it starts with TNL:RPCEvent:MarshallArguments and whatnot later on.
What am I missing here, what do I have to link to, etc?
Thank you so much for your time.
regards,
regress
#2
- Mark
02/22/2005 (1:56 am)
And now Zap builds, at least on VC7 - I'll test the gcc build of zap tomorrow.- Mark
#3
TNL::Vector*)':
tnlMethodDispatch.h:82: error: syntax error before '=' token
tnlMethodDispatch.h:84: error: syntax error before '=' token
Current cvs, just pulled it down.
Linux, gcc 3.3.2
02/22/2005 (2:53 am)
TnlMethodDispatch.h: In function 'void Types::read(TNL::BitStream&,TNL::Vector
tnlMethodDispatch.h:82: error: syntax error before '=' token
tnlMethodDispatch.h:84: error: syntax error before '=' token
Current cvs, just pulled it down.
Linux, gcc 3.3.2
#4
- Mark
02/22/2005 (8:48 am)
Hrm. I had that compiler error yesterday, but I thought it was fixed and checked in. I just built with gcc 3.3.3 (cygwin) and it compiled fine. I'll check on linux when I get to work.- Mark
#5
I'll write up a quick document on how to setup the anjuta IDE to work with TNL. Might as well start building up some community documentation :)
Thanks for all the help!
Regards,
Sean
02/22/2005 (9:25 am)
I figured out my issue in particular was that I wasn't linking to the correct libraries.I'll write up a quick document on how to setup the anjuta IDE to work with TNL. Might as well start building up some community documentation :)
Thanks for all the help!
Regards,
Sean
Associate Mark Frohnmayer
I just checked in a bunch of changes to the OpenTNL CVS. The example Zap game doesn't build currently, but all the other stuff should build with GCC.
- Mark