Linking problem

Jonathan Wakely jwakely.gcc@gmail.com
Mon Feb 27 23:43:00 GMT 2012


On 27 February 2012 23:18, rebelstar wrote:
>
> Hi,
>
> I am trying to build a piece of code on 64 bit linux machine gcc ( ++
> compiler ) on eclipse IDE
>
> In the linking stage,it throws an error
>
> Invoking: GCC C++ Linker
> g++ -L/home/a0133140/bcpmodel/bcptest/ -o"test"  ./main.o ./wrapper.o
> -lmylib64
> /usr/bin/ld: cannot find -lmylib64
> collect2: ld returned 1 exit status
>
> I have included the library in the workfolder and tried giving full path
> name,absolute path etc..no success..
> ( The name of the library is mylib64.a)

-lmylib64 makes the linker look for libmylib64.so or libmylib64.a, so
your library has the wrong name.



More information about the Gcc-help mailing list