[Top][All Lists]

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

Re: libraries cygwin

From: Simon Josefsson
Subject: Re: libraries cygwin
Date: Wed, 30 Nov 2005 16:21:55 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

"Jose Manuel SC" <address@hidden> writes:

> Hello,
> Ive compiled libraries from soruce gsasl:
> libgl.a libutils.a libsasl-anonymous.a libsasl-cram_md5.a, libgsasl.a (...)
> So I have tried to compile this way:
> gcc -IC:\cygwin\home\acc\gsasl-0.2.9\lib\src 
> -LC:\C:\cygwin\home\acc\gsasl-0.2.9\lib\src\.libs
> -gsasl -LC:C:\cygwin\home\acc\gsasl-0.2.9\lib\plain\.libs -gsasl-plain 
> client.o
> -o exe_file

I think the problem is with your compile line: use -lLIB to link with
a libary, not -LIB.  In other words, replace -gsasl with -lgsasl.

You don't need to link with libgsasl-plain etc, they should be merged
inside the libgsasl.

Hope this helps,

> But the result is the linker error:
> client.o:client.c:(.text+0x50): undefined reference to `_gsasl_step64'
> client.o:client.c:(.text+0xa6): undefined reference to `__imp___iob'
> client.o:client.c:(.text+0x11f): undefined reference to `_gsasl_strerror'
> client.o:client.c:(.text+0x16f): undefined reference to `_gsasl_client_start'
> client.o:client.c:(.text+0x183): undefined reference to `_gsasl_strerror'
> client.o:client.c:(.text+0x1b7): undefined reference to `_gsasl_property_set'
> client.o:client.c:(.text+0x1d2): undefined reference to `_gsasl_property_set'
> client.o:client.c:(.text+0x1ef): undefined reference to `_gsasl_finish'
> client.o:client.c:(.text+0x22d): undefined reference to `_gsasl_init'
> client.o:client.c:(.text+0x241): undefined reference to `_gsasl_strerror'
> client.o:client.c:(.text+0x277): undefined reference to `_gsasl_done'
> collect2: ld returned 1 exit status
> Its strange, because examples are compiled from ./configure make, make install
> I'm working in a win32 platform, Cygwin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]