From: SF/projects/mingw n. l. <min...@li...> - 2012-10-26 17:38:13
|
Bugs item #2980274, was opened at 2010-03-31 15:12 Message generated for change (Comment added) made by earnie You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2980274&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: gcc >Group: Aged issue >Status: Closed >Resolution: Out of Date Priority: 5 Private: No Submitted By: Jim Pattee (jimp03) Assigned to: Nobody/Anonymous (nobody) Summary: Problem with "limits" header. Initial Comment: Operating System: Windows Vista Compiler Version: 3.4.5 Binutils Version: 2.20 Build Environment: Microsoft shell (cmd.exe) Problem with "limits" header. If the "limits" header is included AFTER "windows.h" the min() and max() macros cause compile errors. If "limits.h" is used instead, or if "limits" is included BEFORE "windows.h", there are no errors. I suspect the problem is related to the "std" namespace. The attached file has a sample that will generate the errors. There is also a batch file that can be used to compile the program. You may need to change the batch variable "mingwdir" to the path for mingw on your machine. Thanks ---------------------------------------------------------------------- >Comment By: Earnie Boyd (earnie) Date: 2012-10-26 10:38 Message: Works in gcc 4.7.0. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2980274&group_id=2435 |