Re[2]: 'link.exe -verbose' noise

Vadim Zeitlin <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Tue, 12 Mar 2024 07:04:29 +0100 'Gisle Vanem' via wx-users wrote:

GV> I build wxWidgets using the Makefile.vc files. But cleaning
GV> everything and rebuilding with the 'x64 cl.exe' first in my PATH:
GV> 
GV>    cd build\msw
GV>    nmake -f Makefile.vc TARGET_CPU=x64 USE_OPENGL=1 ^
GV>      DEBUG_INFO=1 VENDOR= MONOLITHIC=1 BUILD=release ^
GV>      SHARED=0 UNICODE=1 clean all
GV> 
GV> the issue is solved. No more 'LNK4099:' warnings in
GV> my application.
GV> 
GV> Then I switched to the 'x86 cl.exe' first in my PATH
GV> and rebuilt wxWidgets:
GV> 
GV>    cd build\msw
GV>    nmake -f Makefile.vc TARGET_CPU=x86 USE_OPENGL=1 ^
GV>      DEBUG_INFO=1 VENDOR= MONOLITHIC=1 BUILD=release ^
GV>      SHARED=0 UNICODE=1 clean all
GV> 
GV> Then rebuilding my application with the 'x64 cl.exe'
GV> first in my PATH, the issue came back?!

 Sorry, but I don't understand why would you be mixing different compilers,
this seems to be just asking for trouble. In any case, I'd recommend:

1. Using msbuild.exe instead of nmake to build wxWidgets (if nothing else,
   this is going to be at least 10 times faster on any modern machine).
2. If you really need to use nmake, at least don't change paths in the
   middle, but do it from x64 command line prompt window.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
              https://www.tt-solutions.com/
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZfCNsAAKCRAG6kHeT2we
hr3VAJ4oC7LReI7fbupXHWGXYXLFE3xhkQCePEs9MlVGNzZDsq40xm+7SzhsxWk=
=1eF6
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.