Game Development Community

problems building TGE proyect: undefined reference to `dStrstr

by Belen R · in Technical Issues · 10/30/2009 (11:59 am) · 4 replies

I get this error:

--> Compiling platformX86UNIX/x86UNIXUtils.cc
--> Linking out.GCC4.RELEASE/torqueDemo.bin
out.GCC4.RELEASE/console/consoleDoc.obj: In function `Namespace::printNamespaceEntries(Namespace*)':
consoleDoc.cc:(.text+0x454): undefined reference to `dStrstr(char const*, char const*)'
out.GCC4.RELEASE/console/consoleFunctions.obj: In function `cstrreplace(SimObject*, int, char const**)':
consoleFunctions.cc:(.text+0x2278): undefined reference to `dStrstr(char const*, char const*)'
consoleFunctions.cc:(.text+0x230d): undefined reference to `dStrstr(char const*, char const*)'
out.GCC4.RELEASE/console/consoleFunctions.obj: In function `cstrstr(SimObject*, int, char const**)':
consoleFunctions.cc:(.text+0x2356): undefined reference to `dStrstr(char const*, char const*)'
out.GCC4.RELEASE/console/consoleFunctions.obj: In function `cgotoWebPage(SimObject*, int, char const**)':
consoleFunctions.cc:(.text+0x238d): undefined reference to `dStrstr(char const*, char const*)'
out.GCC4.RELEASE/core/resManager.obj:resManager.cc:(.text+0x146d): more undefined references to `dStrstr(char const*, char const*)' follow
collect2: ld returned 1 exit status
make[1]: *** [out.GCC4.RELEASE/torqueDemo.bin] Error 1
make: *** [default] Error 2

I saw a similar error <a href="http://www.garagegames.com/community/forums/viewthread/80939">here</a> and i thougt it could be due to the same reason, so I'm using an old version of gcc:

If I do: "gcc -v" I get:

Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.2.0/configure --prefix=/opt/gcc-4.2.0 --enable-shared --enable-languages=c,c++ --enable-threads=posix
Thread model: posix
gcc version 4.2.0


And even though it still gives me the same error as when i was using gcc-4.4

Anyone has an answer?

#1
10/30/2009 (12:51 pm)
How are you accessing the source code for the engine?
#2
10/30/2009 (3:07 pm)
Hello David,

Sorry, I was out. What do you mean? I'm accessing the source from tge source, as root and as normal user, nothing works. I have compiled Torque from other computer with Fedora 8 and gcc 4.1 and it worked. But from my fedora 11 and gcc-4.2.0 is giving me this error...

Does it answer your question? I don't know what else i can try. And i have no idea of which is the problem with the compilation. If you have any suggestion...

Thx. :)
#3
10/30/2009 (3:31 pm)
You do not seem to have a license for tge, which is why I was asking.
#4
10/30/2009 (3:37 pm)
Ah, ok. I didn't know that was required for my user in this community. I'm working in the university lab for that project. We have a user with the license, if you want I can log in with it next monday to post again that error. No problem at all.

thanks.