Reza Salehi
|
How to link .a lib in momentics? - Newbie question
|
Reza Salehi
05/20/2011 1:58 PM
post86017
|
How to link .a lib in momentics? - Newbie question
Hi all,
I have a simple question: How to link a static lib(.a) in Momentics? I built liballeg.a on my VM X86 target which is
running Nutrino 6.5. I have created a QNX project using my Momentics SDP 6.5. I am trying to link the liballeg.a to
hello world program that I am writing to draw a circle.
In Momentics IDE, I added alleg to the projects->properties->linker->extralibraries, but I still keep getting the
following error:
C:/QNX650/target/qnx6/x86/lib -L C:/QNX650/target/qnx6/x86/usr/lib -Wl,--rpath-link . -Wl,--rpath-link C:/QNX650/target
/qnx6/x86/lib -Wl,--rpath-link C:/QNX650/target/qnx6/x86/usr/lib -lgf -limg -Bstatic -lalleg -Bdynamic
-g
C:\QNX650\host\win32\x86\usr\bin\ntox86-ld: cannot find -lalleg
cc: C:/QNX650/host/win32/x86/usr/bin/ntox86-ld caught signal 1
I do have liballeg.a installed in /lib directory of my target!
I would appreciate if anyone can help me with question.
Regards,
Reza.
|
|
|