← Back to team overview

yade-dev team mailing list archive

Re: General assistance

 

> 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'
I am not wizard to see what was the command line (compile with brief=0).
I would guess that -DHAVE_NAMESPACE is missing. Read man scons and set
CPPPDEFINES accordingly.

v





Follow ups

References