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
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
About the author
#2
just add config.o
master/Makefile:
OBJECTS_MASTER=\
......
config.o
reference:
http://www.garagegames.com/mg/forums/result.thread.php?qt=21029
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
just add config.o
master/Makefile:
OBJECTS_MASTER=\
......
config.o
reference:
http://www.garagegames.com/mg/forums/result.thread.php?qt=21029
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
#5
09/28/2004 (9:23 am)
I'll add this to the makefile for the next release.
Torque Owner Grant McNeil
Thanks,
--Grant