Running the following command in a compiled/built BZFlag/BZFS directory:
Code: Select all
g++ -o modeltool modeltool.cxx -I../../include ../../src/common/libCommon.a
Code: Select all
g++: error: ../../src/common/libCommon.a: No such file or directory
Doing the following command:
Code: Select all
g++ -o modeltool modeltool.cxx -I../../include ../../src/common/libCommon.la
Code: Select all
../../src/common/libCommon.la: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
Doing the following:
Code: Select all
g++ -o modeltool modeltool.cxx -I "../../include ../../src/common/libCommon.la"
Code: Select all
/usr/bin/ld: /tmp/cc957VDf.o: in function `main':
modeltool.cxx:(.text+0x19c6): undefined reference to `readOBJ(CModel&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/usr/bin/ld: modeltool.cxx:(.text+0x1a2d): undefined reference to `Quake3Level::Quake3Level()'
/usr/bin/ld: modeltool.cxx:(.text+0x1a51): undefined reference to `Quake3Level::loadFromFile(char const*)'
/usr/bin/ld: modeltool.cxx:(.text+0x1a6a): undefined reference to `Quake3Level::dumpToModel(CModel&)'
/usr/bin/ld: modeltool.cxx:(.text+0x1a79): undefined reference to `Quake3Level::~Quake3Level()'
/usr/bin/ld: modeltool.cxx:(.text+0x1cb3): undefined reference to `Quake3Level::~Quake3Level()'
collect2: error: ld returned 1 exit status
Doing the following:
Code: Select all
g++ -o modeltool modeltool.cxx -I ../../include ../../src/common/libCommon.la
Code: Select all
../../src/common/libCommon.la: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
Leads to where the following error occurs:
Code: Select all
g++: error: ../../src/common/libCommon.a: No such file or directory
-Zehra