Re: [Mingw-w64-public] Linking fails for GetSaveFileName when cross compiling with MinGW

2019-01-08 Thread Liu Hao
在 2019/1/9 上午5:01, Vincent Torri 写道: > On Tue, Jan 8, 2019 at 9:40 PM Sailor Bob via Mingw-w64-public > wrote: >> >> OK, figured out what the problem was - order of arguements on the command >> line: >> i686-w64-mingw32-g++ -lcomdlg32 -municode -o unilogger.exe >> gives the link error, however

Re: [Mingw-w64-public] Linking fails for GetSaveFileName when cross compiling with MinGW

2019-01-08 Thread Vincent Torri
On Tue, Jan 8, 2019 at 9:40 PM Sailor Bob via Mingw-w64-public wrote: > > OK, figured out what the problem was - order of arguements on the command > line: > i686-w64-mingw32-g++ -lcomdlg32 -municode -o unilogger.exe > gives the link error, however > i686-w64-mingw32-g++ -municode -o

Re: [Mingw-w64-public] Linking fails for GetSaveFileName when cross compiling with MinGW

2019-01-08 Thread Sailor Bob via Mingw-w64-public
OK, figured out what the problem was - order of arguements on the command line: i686-w64-mingw32-g++ -lcomdlg32 -municode -o unilogger.exe gives the link error, however i686-w64-mingw32-g++ -municode -o unilogger.exe -lcomdlg32 Compiles just fine.  Go figure... On Tuesday, January 8, 2019,

Re: [Mingw-w64-public] Linking fails for GetSaveFileName when cross compiling with MinGW

2019-01-08 Thread Mateusz
W dniu 08.01.2019 o 18:29, Sailor Bob via Mingw-w64-public pisze: > > I'm trying to compile a modified version of UniLogger on Ubuntu 18.04 using > mingw. I'm getting the following link error: > > undefined reference to '_imp__GetSaveFileNameW@4' I've tested GetSaveFileNameW sample with native

Re: [Mingw-w64-public] Linking fails for GetSaveFileName when cross compiling with MinGW

2019-01-08 Thread Maarten Verhage
Hi Bob, I've little experience with helping other people on this forum. When I have a program in which I would need the Windows API. I do include windows.h in the source file and have the following list of Windows API libraries on the link command line. -l:libkernel32.a -l:libuser32.a

[Mingw-w64-public] Linking fails for GetSaveFileName when cross compiling with MinGW

2019-01-08 Thread Sailor Bob via Mingw-w64-public
I'm trying to compile a modified version of UniLogger on Ubuntu 18.04 using mingw. I'm getting the following link error: undefined reference to '_imp__GetSaveFileNameW@4' I found this post on the MinGW mailing list saying one needs to explicitly link to comdlg32 so I tried that also:

Re: [Mingw-w64-public] [PATCH] Add __mingw_access() that works the same for all msvcr*/ucrt libs

2019-01-08 Thread Liu Hao
在 2019/1/8 15:52, Mateusz 写道: > Thanks for pushing! > > This patch changed mingw-w64-crt/Makefile.am -- can we regenerate makefiles > in mingw-w64-crt/ ? > Of course - committed, d72c4fe62568a216d52dca47ca8bace4e220d84f. -- Best regards, LH_Mouse