> -----Original Message-----
> From: Kacvinsky, Tom <[email protected]>
> Sent: Friday, June 21, 2019 5:04 PM
> To: [email protected]
> Subject: [Mingw-w64-public] Forcing MinGW-w64's linker to find Windows
> specific libraries
>
> I am getting these errors:
>
> C:\code\mingw-native\bin/ld.exe: cannot find -ladvapi32.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -lcomctl32.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -lcomdlg32.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -lcrypt32.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -ldhcpcsvc.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -limagehlp.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -lkernel32.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -lnetapi32.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -loldnames.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -lole32.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -loleaut32.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -lpsapi.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -lshell32.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -lshlwapi.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -luser32.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -luserenv.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -lwbemuuid.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -lwintrust.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -lws2_32.lib
> C:\code\mingw-native\bin/ld.exe: cannot find -lwsock32.lib
>
>
> I am pretty sure there is a way of forcing ld to find system libraries, but I
> don't
> know what it is. I could use -L options based on the Visual Studio LIBPATH
> variable, but that would be really messy because the paths are really long.
>
OK, the -L options are as path as I thought. I specified them, but the
libraries
are still not found. I am using Windows style short paths, such as
-LC:\PROGRA~2\WI3CF2~1\10\lib\100183~1.0\um\x64
But I am wondering if that is the correct thing to do.
Thanks,
Tom
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public