Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How to link a library

Should be -lAudioLib4


On Wed, Sep 2, 2009 at 11:01 AM, Daniele
Barzotti<daniele.barzotti@xxxxxxxxxxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I've a workbench with two projects (in managed makefile mode): a static
> library and the executable that use it.
>
> While the library build succeed, when I build the executable I get the
> following linker error:
>
> g++ -LG:\src\Eurocom\AudioLib_4\lib -static -oAudioLib4Tests.exe
> AudioPlayerSimple.o -llibAudioLib4.a
> C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
> cannot find -llibAudioLib4.a
> collect2: ld returned 1 exit status
>
>
> The .a library is in the specified folder, so I don't know why ld
> doesn't find it!
>
> Should not be sufficient to reference the library project inside the
> executable one in the "Project References" page?
>
> Where is the mistake?
>
> Thanks,
> Daniele.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
>
> iD8DBQFKnojQ/l+kMioSZwgRAuIMAKCmXCHzeN5PJ8S331YaOirAsmzjMgCfRAxe
> g3g8m1k49fgjTJScqG/gIa8=
> =TI8n
> -----END PGP SIGNATURE-----
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>


Back to the top