Page 1 of 1

Problem compiling

Posted: 2011-06-23, 22:25
by Kagarrache
Hi! This project looks really promising, and I'd like to try it, but I'm getting this compiling error:

Code: Select all

...
g++ -o Libs/build/linux2/g++/release/Models/Loader.o -c -O3 -funsigned-char -Wall -Werror -Wno-char-subscripts -fno-strict-aliasing -DNDEBUG -DSCONS_BUILD_DIR=build/linux2/g++/release -ILibs -IExtLibs -IExtLibs/lua/src -IExtLibs/lwo -IExtLibs/jpeg Libs/Models/Loader.cpp
Libs/Models/Loader.cpp: In member function 'void ModelLoaderT::RemoveUnusedVertices(CafuModelT::MeshT&)':
Libs/Models/Loader.cpp:143:43: error: unused variable 'Weights' [-Werror=unused-variable]
Libs/Models/Loader.cpp: In member function 'void ModelLoaderT::RemoveUnusedWeights(CafuModelT::MeshT&)':
Libs/Models/Loader.cpp:183:43: error: unused variable 'Triangles' [-Werror=unused-variable]
cc1plus: all warnings being treated as errors

scons: *** [Libs/build/linux2/g++/release/Models/Loader.o] Error 1
scons: building terminated because of errors.
Hope someone can help me. Thanks in advance.

Re: Problem compiling

Posted: 2011-06-24, 00:02
by Carsten
Hi Kagarrache,
welcome to the Cafu forums! :welcome:
Kagarrache wrote:Hi! This project looks really promising, and I'd like to try it, but I'm getting this compiling error:
Oh. An oversight in recently submitted code.
I've just fixed the problem - please svn update to SVN head, then try again. :up:

Thanks for reporting this!

Re: Problem compiling

Posted: 2011-06-24, 02:21
by Kagarrache
Thank you very much for your time and effords.

Now I'm getting this:

Code: Select all

g++ -o Libs/build/linux2/g++/release/MaterialSystem/Expression.o -c -O3 -funsigned-char -Wall -Werror -Wno-char-subscripts -fno-strict-aliasing -DNDEBUG -DSCONS_BUILD_DIR=build/linux2/g++/release -ILibs -IExtLibs Libs/MaterialSystem/Expression.cpp
g++ -o Libs/build/linux2/g++/release/MaterialSystem/MapComposition.o -c -O3 -funsigned-char -Wall -Werror -Wno-char-subscripts -fno-strict-aliasing -DNDEBUG -DSCONS_BUILD_DIR=build/linux2/g++/release -ILibs -IExtLibs Libs/MaterialSystem/MapComposition.cpp
g++ -o Libs/build/linux2/g++/release/MaterialSystem/Material.o -c -O3 -funsigned-char -Wall -Werror -Wno-char-subscripts -fno-strict-aliasing -DNDEBUG -DSCONS_BUILD_DIR=build/linux2/g++/release -ILibs -IExtLibs Libs/MaterialSystem/Material.cpp
Libs/MaterialSystem/Material.cpp: In member function 'void MaterialT::Save(std::ostream&) const':
Libs/MaterialSystem/Material.cpp:516:42: error: uninitialized const 'ExpSym' [-fpermissive]
Libs/MaterialSystem/Expression.hpp:84:12: note: 'const struct ExpressionT::SymbolsT' has no user-provided default constructor
scons: *** [Libs/build/linux2/g++/release/MaterialSystem/Material.o] Error 1
scons: building terminated because of errors.
Greetings.

Re: Problem compiling

Posted: 2011-06-24, 23:38
by Carsten
Hi Kagarrache,
Kagarrache wrote:

Code: Select all

Libs/MaterialSystem/Material.cpp: In member function 'void MaterialT::Save(std::ostream&) const':
Libs/MaterialSystem/Material.cpp:516:42: error: uninitialized const 'ExpSym' [-fpermissive]
Libs/MaterialSystem/Expression.hpp:84:12: note: 'const struct ExpressionT::SymbolsT' has no user-provided default constructor
scons: *** [Libs/build/linux2/g++/release/MaterialSystem/Material.o] Error 1
scons: building terminated because of errors.
Btw., which OS and compiler do you use?

I cannot see the problem here using Ubuntu 11.04 with GCC 4.5.2 (and thus I suspect that it is specific to GCC 4.6+), but I tried and committed a fix anyway: Please run svn update again and retry. :up: