On 30/05/2014 09:57, Marco Trudel wrote:
> On 05/29/2014 11:03 PM, Marco Atzeri wrote:
>> On 29/05/2014 15:52, Marco Trudel wrote:
>>> <snip>
>>>
>>> Am I doing something wrong or is this not supported?
>>
>> not clear to me what are you trying to do
>
> I'm trying to compile an X11 application with mingw (to run it on Windows).
> Lets look at the attached minimal example gui.c (it's from the first
> answer on [1] in case attachments are not allowed on the list):

than this is the wrong mailing list. you need to ask on mingw one.

> - cygwin with standard cygwin X11 libs works:
> gcc gui.c -lX11
> ./a.exe # -> fine
>
> - mingw with XportMinGW X11 libs [2] works:
> i686-w64-mingw32-gcc gui.c -I include -L lib -lX11 -lXau -lws2_32
> ./a.exe # -> fine

this look what you are looking for.
>
> - mingw with cygwin ports X11 libs doesn't work:
> i686-w64-mingw32-gcc gui.c -lX11
> ./a.exe # -> segfaults or exits with code 127

of course, you are mixing incompatible libraries.

> Am I doing something wrong or is this not supported?
>
> Thanks!
> Marco
>

------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general

Reply via email to