← Back to team overview

yade-dev team mailing list archive

Re: General assistance

 

Thanks, Vaclav! It worked.  This command compiles my file perfectly:
g++ -DHAVE_NAMESPACES example2.cpp -lopt -lnewmat -lcblas -lf77blas -latlas -Wno-write-strings

But in YADE:
I cut and pasted that "example2.cpp" into the ./extra directory.  Defined my extra/SConscript:
env.SharedLibrary('CWBoonPlugin2',['/home/chiab/yadeNew/Branch6/extra/example2.cpp'],LIBS=env['LIBS']+['opt','newmat','cblas','f77blas','latlas']),

Added in scons.profile-default:
CPPPATH = '/usr/local/include:/usr/local/lib:/usr/lib'
LIBPATH = '/usr/local/lib:/usr/lib'
These are the paths where the "include files" and its libraries are installed.

But I get errors like this:
/usr/local/include/OptConstrNewtonLike.h:37: error: 'NEWMAT' has not been declared
/usr/local/include/OptConstrNewtonLike.h:37: error: expected ';' before 'gprev'

Sorry.. But I really don't know what I did incorrectly.


Yours,

Boon

 		 	   		  
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969


Follow ups

References