> -----Original Message-----
> From: Maarten Verhage <[email protected]>
> Sent: Saturday, June 22, 2019 9:38 AM
> To: [email protected]
> Subject: Re: [Mingw-w64-public] Forcing MinGW-w64's linker to find
> Windows specific libraries
> 
> Hi Tom,
> 
> I'm not an expert on this topic but maybe I can give you a few suggestions.
> As shown the mailing list discussion from the link below. I believe
> Mingw-w64 designed to work with gcc and you cannot use the libraries with
> Visual Studio.
> 
> https://sourceforge.net/p/mingw-w64/mailman/message/32027366/
> 
> Did you know that you can download the mingw-w64 libraries together with
> GCC completely setup to build Windows applications? All I had to do was
> adding the bin folder to my PATH environment variable.

Using a complete MinGW toolchain is not an option for us.

For what it is worth, I have worked with other tool chains that are MinGW-w64 
based
and they do work with Visual Studio libraries.

In fact, I got my local customized build of MinGW-w64 to work with Windows
libraries by specifying a fully qualified path to the import libraries 
(psapi.lib, for
instance).  To me, this indicates the -L options are not working as expected.

For what it is worth, this is with an Ada toolchain, and it is gnatlink that is 
falling over
when calling gcc to do the link of the Ada executable.  Oddly enough, gnatdll 
did not
have this problem.

> 
> I abandoned Visual Studio and went over to:
> https://sourceforge.net/projects/mingw-w64/files/mingw-w64/ to
> download
> mingw-w64 with GCC. Well there are different versions there like posix-seh
> and win32-sjlj. These are about thread and exception support. Because I
> initially didn't know which one to choose I asked on this mailing list:
> 
> https://sourceforge.net/p/mingw-w64/mailman/mingw-w64-
> public/thread/4086cf80.3011.167ba0bebd6.Coremail.lh_mouse%40126.com/
> #msg36495391
> 
> In the link you can found a great response by Liu Hao explaining the
> differences of these versions.
> 
> Now for compiling code I just copy a default testcase makefile into the folder
> of the code I'm working on and adjust the makefile to the specifics for my
> application. An example is in the attachment. Some stuff is not relevant like
> INCPATHUTILITY, INCPATHBOOST but you can get the idea how a build
> something with a third-party library or something of your own.
> 
> I hope this helps.
> Best regards,
> Maarten
> 
> 
> 
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to