Re: Linking problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux