← Back to team overview

yade-dev team mailing list archive

General assistance

 

Hi, looking at this error message: is g++ version incompatibility causing the errors, or is it the templates in NEWMAT is incorrect?

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

Any advice would be welcomed.  This is driving me nuts.


Thanks,

Boon
 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969


Follow ups