Error when make shapemodel
Chang-Che-Kuei opened this issue · 1 comments
When I make the files in the directory "shapemodel", some error message occurs:
g++-4.7 -O3 -fPIC -pthread -Wall -ansi -DMATLAB_MEXFILE -I/home/jenken/Desktop/Matlab/extern/include -I./lib/nr/ -I./lib/include/ -o paramMap.o -c paramMap.cpp
In file included from ./lib/include/o_Basis.h:64:0,
from ./lib/include/svector.h:15,
from ./lib/include/o_Vector.h:17,
from paramMap.cpp:29:
./lib/include/bool.h:19:6: error: expected identifier before 「bool」
./lib/include/bool.h:19:11: error: expected unqualified-id before 「{」 token
paramMap.cpp: In member function 「void paramMap::loadSemdata()」:
paramMap.cpp:79:11: warning: unused variable 「totalLines」 [-Wunused-variable]
paramMap.cpp:80:6: warning unused variable 「noPts」 [-Wunused-variable]
paramMap.cpp: In member function 「void paramMap::loadP_mlab()」:
paramMap.cpp:105:11: warning unused variable 「totalLines」 [-Wunused-variable]
paramMap.cpp:106:6: warning unused variable 「noPts」 [-Wunused-variable]
paramMap.cpp: In member function 「void paramMap::computeMap()」:
paramMap.cpp:135:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
paramMap.cpp:137:11: warning unused variable 「t」 [-Wunused-variable]
paramMap.cpp:143:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
paramMap.cpp:151:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
paramMap.cpp:152:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
paramMap.cpp:157:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
paramMap.cpp:158:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from paramMap.h:26:0,
from paramMap.cpp:20:
./lib/nr/nr3.h: At global scope:
./lib/nr/nr3.h:507:22: warning: 「NaN」 defined but not used [-Wunused-variable]
Makefile:17: recipe for target 'paramMap.o' failed
make: *** [paramMap.o] Error 1
Please give me some ideas how to solve it. Thanks.
You might revise paramMap.cpp file to eliminate those warnings. For an example of 'signed and unsigned integer' error, delete "signed" in the designated lines in paramMap.