mingw-cross-env-list
[Top][All Lists]
Advanced

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

Re: [Mingw-cross-env-list] Where is -lsocket?


From: Nagaev Boris
Subject: Re: [Mingw-cross-env-list] Where is -lsocket?
Date: Sun, 15 Feb 2015 21:05:18 +0000

On Sun, Feb 15, 2015 at 3:33 PM, dE <address@hidden> wrote:
> Hi!
>
> I was trying to compile adns on mingw32 build on Linux when I came across
> the following --
>
> AR="/home/de/mxe/usr/bin/i686-pc-mingw32-ar"
> RANLIB="/home/de/mxe/usr/bin/i686-pc-mingw32-ranlib"
> CC="/home/de/mxe/usr/bin/i686-pc-mingw32-gcc-4.8.1" ./configure --host
> mingw32
> checking whether you requested dynamic linking... yes, by default
> checking for mingw32-gcc... /home/de/mxe/usr/bin/i686-pc-mingw32-gcc-4.8.1
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.exe
> checking for suffix of executables... .exe
> checking whether we are cross compiling... yes
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether /home/de/mxe/usr/bin/i686-pc-mingw32-gcc-4.8.1 accepts
> -g... yes
> checking for /home/de/mxe/usr/bin/i686-pc-mingw32-gcc-4.8.1 option to accept
> ISO C89... none needed
> checking how to run the C preprocessor...
> /home/de/mxe/usr/bin/i686-pc-mingw32-gcc-4.8.1 -E
> checking for mingw32-ranlib... /home/de/mxe/usr/bin/i686-pc-mingw32-ranlib
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for poll... no
> checking for socket... no
> checking for socket in -lsocket... no
> configure: error: cannot find library function socket
>
> Thanks for any help!
>

Try to replace "--host mingw32" with "--host i686-pc-mingw32". Follow
tutorial steps 4 and 5a http://mxe.cc/#tutorial


Best regards,
Boris Nagaev



reply via email to

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