Ask a g++ compilation qestion# Programming - 葵花宝典
c*t
1 楼
g++ 3.2 就没有问题。3.4怎么不行?
$ make -f makefile all
rm -f ../../../../programs/libraries/libxmlparse.a
g++ -qmkshrobj -o ../../../../programs/libraries/libxmlparse.so ../../../../programs/libraries/static/libxmlparse_s.a
-blibpath:./programs/libraries:/usr/lib/threads:/lib:/usr/lib:/lib:/software/ace/ACE_wrappers/ace
-L/lib -ldl -lpthreads -ltli_r -lC_r
g++: `-b' must come at the start of the command line
make: *** [../../../../programs/libraries/libxmlparse.a] Error 1
$ g++ --version
g++
$ make -f makefile all
rm -f ../../../../programs/libraries/libxmlparse.a
g++ -qmkshrobj -o ../../../../programs/libraries/libxmlparse.so ../../../../programs/libraries/static/libxmlparse_s.a
-blibpath:./programs/libraries:/usr/lib/threads:/lib:/usr/lib:/lib:/software/ace/ACE_wrappers/ace
-L/lib -ldl -lpthreads -ltli_r -lC_r
g++: `-b' must come at the start of the command line
make: *** [../../../../programs/libraries/libxmlparse.a] Error 1
$ g++ --version
g++