Nmap Development mailing list archives

Re: CRT-libs on MSVC


From: David Fifield <david () bamsoftware com>
Date: Wed, 23 Jan 2013 13:34:28 -0800

On Wed, Jan 23, 2013 at 09:47:53PM +0100, Gisle Vanem wrote:
CHANGELOG says:
 ..
 (0xc0150002)." with Nmap 4.65.  A related change is that Nmap on
 Windows is now compiled with /MD rather than /MT so that it
 consistently uses these runtime libraries.  The patch was created by
 Rob Nicholls.

When was that changed? The mswin32/nmap.vcxproj currently specifies
'/MT' and '/MTd'. Multithreaded, link with libcmt[d].lib. AFAICS.

It looks like it was r8507 in 2008. nmap.vcxproj uses /MD
(Multi-threaded DLL) in Release configuration and /MTd (Multi-threaded
debug) in Debug configuration. (Right-click the project, Properties,
C/C++, Code Generation, Runtime Library.)

So since OpenSSL apparently uses '/MD', why don't nmap and friends?
I mean, what bad could happen if we drop this openssl/applink.c shim
in ncat.exe? (why isn't applink.c used in the other programs?).
Can somebody clarify?

In Release mode we do use /MD, I think specifically because of OpenSSL.
I don't remember what the purpose of applink is, you'll have to search
the commit logs.

David Fifield
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: