i try to create my own Library to use it in other projects in C/C++. my static library use the library xercesc. Eclipse try to compile the xercesc included lib with gcc and not g++. If i try to compile my code i got the following error:
Info: Internal Builder is used for build
g++ "-IC:\\00_Projects\\Ladeplanberechnung\\LadeplanLib\\lib\\include" -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\viterbi\\ViterbiAlgorithm.o" "..\\src\\viterbi\\ViterbiAlgorithm.cpp"
In file included from ..\src\viterbi\LocalSuitability.h:11:0,
from ..\src\viterbi\ViterbiAlgorithm.h:8,
from ..\src\viterbi\ViterbiAlgorithm.cpp:8:
gcc "-IC:\\00_Projects\\Ladeplanberechnung\\LadeplanLib\\lib\\include" -O0 -g3 -Wall -c -fmessage-length=0 -o "lib\\include\\xercesc\\util\\RefArrayVectorOf.o" "..\\lib\\include\\xercesc\\util\\RefArrayVectorOf.c"
..\lib\include\xercesc\util\RefArrayVectorOf.c:25:1: error: unknown type name 'XERCES_CPP_NAMESPACE_BEGIN'
XERCES_CPP_NAMESPACE_BEGIN
^~~~~~~~~~~~~~~~~~~~~~~~~~
..\lib\include\xercesc\util\RefArrayVectorOf.c:30:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
template <class TElem>
^
..\lib\include\xercesc\util\RefArrayVectorOf.c:39:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
template <class TElem> RefArrayVectorOf<TElem>::~RefArrayVectorOf()
^
..\lib\include\xercesc\util\RefArrayVectorOf.c:49:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
template <class TElem> void
^
..\lib\include\xercesc\util\RefArrayVectorOf.c:61:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
template <class TElem> void RefArrayVectorOf<TElem>::removeAllElements()
^
..\lib\include\xercesc\util\RefArrayVectorOf.c:74:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
template <class TElem> void RefArrayVectorOf<TElem>::
^
..\lib\include\xercesc\util\RefArrayVectorOf.c:102:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
template <class TElem> void RefArrayVectorOf<TElem>::removeLastElement()
^
..\lib\include\xercesc\util\RefArrayVectorOf.c:112:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
template <class TElem> void RefArrayVectorOf<TElem>::cleanup()
^
..\lib\include\xercesc\util\RefArrayVectorOf.c:122:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
XERCES_CPP_NAMESPACE_END
^~~~~~~~~~~~~~~~~~~~~~~~
Why eclipse try to compile the xercesc? Can i force eclipse to compile the project with g++.