← Back to team overview

yade-dev team mailing list archive

Re: General assistance

 

Vaclav, you're really a wizard!  That worked!!!! Thanks.

But then I got this error:
/usr/bin/ld: /usr/local/lib/libopt.a(NLP2.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libopt.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
scons: *** [/home/chiab/yadeNew/build-b6/extra/libCWBoonPlugin2.so] Error 1
scons: building terminated because of errors.


Yours,

Boon
----------------------------------------
> From: eudoxos@xxxxxxxx
> To: yade-dev@xxxxxxxxxxxxxxxxxxx
> Date: Wed, 31 Mar 2010 22:32:30 +0200
> Subject: Re: [Yade-dev] 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
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev
> Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev
> More help : https://help.launchpad.net/ListHelp
 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969


Follow ups

References