This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linking problem


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]