943,871 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 730
  • C++ RSS
Oct 24th, 2008
0

Linker not working

Expand Post »
Hi everyone, I'm trying to link a class with a library. The script is:

/bin/sh ${BOREALIS}/common/bin/libtool --mode=link --tag=CXX ${BOREALIS}/nmstl/bin/wtf g++ -g -Wall -o $1$app $1.o -L/home/vincenzo/software/borealis-projects/LoadDistributionTool -lwld

I get the error:

Linker errors follow. This mode is untested; type "wtf 0" for the original output.

cannot find -lwld
in /usr/bin/ld

ld returned 1 exit status
in collect2

Why is it searching that library in the wrong directory?

Thanks
Similar Threads
VMG
Reputation Points: 10
Solved Threads: 0
Newbie Poster
VMG is offline Offline
1 posts
since Oct 2008
Oct 24th, 2008
0

Re: Linker not working

Maybe the - in your long path is confusing things.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Oct 24th, 2008
0

Re: Linker not working

u shure the library actually is at that path?
kux
Reputation Points: 66
Solved Threads: 11
Junior Poster
kux is offline Offline
119 posts
since Jan 2008
Oct 24th, 2008
0

Re: Linker not working

Are you positive you have the shared library wld.so in your
/home/vincenzo/software/borealis-projects/LoadDistributionTool ?

And what is this supposed to be ? ${BOREALIS}/nmstl/bin/wtf ? its not preceded by a libtool option.
Reputation Points: 161
Solved Threads: 43
Posting Whiz
stilllearning is offline Offline
309 posts
since Oct 2007
May 22nd, 2009
0

Re: Linker not working

I am trying to get the system working, the only remaining thing is that when I run the script borealis/utility/unix/build.borealis.sh I got the error : Missing nmstl library (.../nmstl/lib) and there isn't any in the folder in which is supposed to be that library, even in the installation files and the folder ${HOME}/install_nmstl/ that is supposed to be created in the installation dont appears.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
acastella is offline Offline
1 posts
since May 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: My program crashing when choosing to display all
Next Thread in C++ Forum Timeline: PCRE library for win64





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC