Game Development Community

Linux Compile Problems

by Grant McNeil · in Torque Game Engine · 09/25/2004 (7:03 am) · 5 replies

Hey,

I'm trying to build TNL under linux. When its compiling, everything is going good until it hits the "Master" project, where I get this:

make[1]: Leaving directory '/home/Frog102/tnl/libtomcrypt'
make[1]: Entering directory '/home/Frog102/tnl/master'
g++ -g -I../tnl -c main.cpp
g++ -g -I../tnl -c masterInterface.cpp
masterInterface.cpp:76:78: warning: no newline at end of file
g++ -g -I../tnl -o master main.o masterInterface.o ../tnl/libtnl.a ../libtomcrypt/libtomcrypt.a -lstdc++ -lm
main.o(.text+0x25): In function 'main':
/home/Frog102/tnl/master/main.cpp:468: undefined reference to 'readConfigFile()'
main.o(.text+0x107):/home/Frog102/tnl/master/main.cpp:224: undefined reference to 'readConfigFile()'
collect2: ld returned 1 exit status
make[1]: *** [default] Error 1
make[1]: Leaving directory '/home/Frog102/tnl/master'
make: *** [default] Error 2

The problem seems to be "undefined reference to 'readConfigFile()'", can anyone tell me how to fix this?

Thanks,
--Frog102

#1
09/27/2004 (2:24 am)
I'm going to try and get an earlier release of TNL and see if that works, but I could really use some input on why this is happening... I mean, I can get it to compile fine under windows, but I need to get it to work under linux.

Thanks,
--Grant
#2
09/27/2004 (7:21 am)
I'm happy to find another linux user.

just add config.o

master/Makefile:
OBJECTS_MASTER=\
......
config.o

reference:
http://www.garagegames.com/mg/forums/result.thread.php?qt=21029
#3
09/27/2004 (7:27 am)
I'm happy to find another linux user.

just add config.o

master/Makefile:
OBJECTS_MASTER=\
......
config.o

reference:
http://www.garagegames.com/mg/forums/result.thread.php?qt=21029
#4
09/27/2004 (10:26 am)
Thanks,

It should work fine now.

--Grant
#5
09/28/2004 (9:23 am)
I'll add this to the makefile for the next release.