Nmap Development mailing list archives

nmap-4.02CSW failed build on Windows XP built in VS 2005 Express


From: kx <kxmail () gmail com>
Date: Wed, 19 Apr 2006 00:07:56 -0400

pow(int,int) is no longer in math.h in VS 2005
http://msdn2.microsoft.com/en-US/library/da60x087(VS.80).aspx

No sure what you prefer for lines 721 and 723 of tcpip.cc? Could be:

(int) pow((float)5, failed));

or

(int) pow(5.0, failed);

Or if there is implementation differences in the pow(int,int) vs.
pow(float, int), you could use a #idef WIN32 block.

Also, would you please edit your VS nmap.sln to add the following
define statement to all projects for all build configurations?  It
would save me from putting them in each time.

/D "_CRT_SECURE_NO_DEPRECATE"

Thanks,
  kx


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev


Current thread: