openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Openexr-devel] Compile Errors - clarification


From: Luc-Eric Rousseau
Subject: RE: [Openexr-devel] Compile Errors - clarification
Date: Sun, 30 Mar 2003 10:52:29 -0500

if you include windows.h
in your project before other headers,
you may need defining #define NOMINMAX
before the #include <windows.h>
so that "min" and "max" do not get defined to a macro.
it's a classic problem.

-----Original Message-----
From: richard [mailto:address@hidden]
Sent: Saturday, March 29, 2003 11:36 PM
To: address@hidden
Subject: [Openexr-devel] Compile Errors - clarification


It appears that all my errors are associated with

template <class T> struct limits
{
        static T        min();
        static T        max();
        static T        smallest();
        static bool isIntergral();
        static bool isSigned();
};

rather than templates in general.  There are obviously a lot of other
templates in various headers which are not causing any problems.  I am
wondering if the fact that this template is for a struct rather than a
class has anything to do with my problem or the fact that it "has only
static member functions all of which are implemented as inlines".  The
other thing that scares me is the note that everything was tested on
Windows XP and I am running Windows 2000.  Does this make any
difference in terms of the compiler?

Richard Patterson
Illusion Arts
6700 Valjean Avenue
Van Nuys, CA 91406
address@hidden
818 901-1077
Fax: 818 901-1995



_______________________________________________
Openexr-devel mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/openexr-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]