← Back to team overview

yade-dev team mailing list archive

Re: General assistance

 

> boon-018383:~/Opt/optpp-2.4/newmat11$ g++ -DHAVE_NAMESPACES -I/usr/local/include example.cpp -L/usr/local/lib -lopt -lnewmat -lcblas -lf77blas -latlas
> /tmp/cccrFBxi.o: In function `test5(double*, double*, double*, int, int)':
> example.cpp:(.text+0xa67): undefined reference to `NEWMAT::operator<<(std::basic_ostream<char, std::char_traits<char>>&, NEWMAT::BaseMatrix const&)'
> example.cpp:(.text+0xbaa): undefined reference to `NEWMAT::operator<<(std::basic_ostream<char, std::char_traits<char>>&, NEWMAT::BaseMatrix const&)'
> /tmp/cccrFBxi.o: In function `test1(double*, double*, double*, int, int)':
> example.cpp:(.text+0x1aa6): undefined reference to `NEWMAT::operator<<(std::basic_ostream<char, std::char_traits<char>>&, NEWMAT::BaseMatrix const&)'
> example.cpp:(.text+0x1be9): undefined reference to `NEWMAT::operator<<(std::basic_ostream<char, std::char_traits<char>>&, NEWMAT::BaseMatrix const&)'
> /tmp/cccrFBxi.o: In function `test4(double*, double*, double*, int, int)':
> example.cpp:(.text+0x27a6): undefined reference to `NEWMAT::operator<<(std::basic_ostream<char, std::char_traits<char>>&, NEWMAT::BaseMatrix const&)'
> /tmp/cccrFBxi.o:example.cpp:(.text+0x28e9): more undefined references to `NEWMAT::operator<<(std::basic_ostream<char, std::char_traits<char>>&, NEWMAT::BaseMatrix const&)' follow
That is linker barfing at you. You most likely didn't link with that
library/libraries.

v





Follow ups

References