[GiNaC-list] GiNaC::marix::solve(..)

Richard B. Kreckel kreckel at ginac.de
Thu Jun 4 00:07:26 CEST 2009


Lisa Maletzki wrote:
> Thanks again, I think that will do the trick but when compiling it I get 
> a linker error which I cannot solve (I'm fairly new to c++) I can't say 
> if it is just missing a library of if I wrote something in the code wrong.
> This is the output:
> g++ -Xlinker `pkg-config --cflags --libs ginac` -o"sep"  
> ./src/bezierPoints.o ./src/testmain.o ./src/xml.o ./src/xmlParser.o
> ./src/bezierPoints.o: In function `bezierPoints::solve(GiNaC::matrix, 
> int)':
> /my_folder/Debug/../src/bezierPoints.cpp:63: undefined reference to 
> `bezierPoints::generate_symbols(std::vector<GiNaC::symbol, 
> std::allocator<GiNaC::symbol> >&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&)'
> The method is declared in the header file and called with the write name 
> in the source file, so typing error can be ruled out. Any help?

Apparently, you've declared the function generate_symbols inside 
namespace bezierPoints (since that's where the linker is looking for 
it). Did you also implement it inside namespace bezierPoints?

Richard B. Kreckel

More information about the GiNaC-list mailing list