DEV wrote:
> Not to open any new wounds but...
> 
> I am working on a MS VC++.Net Forms application.
> 
> I am getting the error with the min/max issues.
> 
> If I put "/D NOMINMAX" in my compiler settings under:
>       C/C++->Command Line 
>  And compile my app I get a ton of errors with a lot of the VC7 include
> files!

You could try putting this at the very beginning of your stdafx.h:

#define NOMINMAX
#include <algorithm>

This should (a) instruct windows.h not to define min() and max() as 
macros, and (b) include the templatized C++ versions of min() and max(). 
Perhaps that'll do the trick.

Cheers,
Bart
_______________________________________________
Libpqxx-general mailing list
Libpqxx-general@gborg.postgresql.org
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to