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] Help compiling libmicrohttpd with MXE


From: Tony Theodore
Subject: Re: [Mingw-cross-env-list] Help compiling libmicrohttpd with MXE
Date: Tue, 12 Nov 2013 01:41:52 +1100

On 11 Nov 2013, at 5:11 pm, Richard Ellis <address@hidden> wrote:

> On Mon, Nov 11, 2013 at 09:41:55AM +1100, Tony Theodore wrote:
>> 
>> Browsing through plibc.h, it needs WINDOWS to be defined but it?s
>> commented out in confdefs.h. You could try adding the define to
>> CFLAGS.
> 
> Just tried that.  No change.  The conftest compile continues to fail
> when linking to libplibc.a with the same error message as before:
> 
> configure:12729: i686-pc-mingw32-gcc -o conftest.exe
>   -fno-strict-aliasing -DWINDOWS=1 
>   -I /tmp/mxe/usr/i686-pc-mingw32/include/plibc 
>   -L /tmp/mxe/usr/i686-pc-mingw32/lib -lplibc -Wl,-no-undefined
>   -Wl,--export-all-symbols -lws2_32 conftest.c >&5
> 
> /tmp/cc20Wdz9.o:conftest.c:(.text+0x1e): undefined reference to `plibc_init'
> collect2: error: ld returned 1 exit status

I couldn’t get the same error, but there there were other issues as it uses a 
newer development version of plibc. I’ve added a minimal working version of 
libmicrohttpd to master[1] (since it seems like a handy sort of library), along 
with pkg-config files for plibc[2] and pthreads[3], and updated plibc to a 
recent trunk snapshot[4] that you should be able to use as a starting point.

Cheers,

Tony

[1] https://github.com/mxe/mxe/commit/a35fbb2a4340d73cbdca05cd8200c906af79bdaa
[2] https://github.com/mxe/mxe/commit/388cea9036fb9f41495d35f3add961aa0e0e0371
[3] https://github.com/mxe/mxe/commit/0660b6af8416e509565377fc6f16a21ccfade4c1
[4] https://github.com/mxe/mxe/commit/0d4096147819a36414ee75c95128296479c87e4c




reply via email to

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