Re: [info-performer] Performer on Windows and Visual Studio .NET

New Message Reply Date view Thread view Subject view Author view

From: Alexandre Naaman (naaman++at++laplace.engr.sgi.com)
Date: 01/07/2003 16:39:28


On Mon, 6 Jan 2003, Goncalo Carvalho wrote:

Hi Goncalo,

>
> Hi,
>
> Just a quick update on something that is happening to me while using VS
> .NET and Performer.
>
> I get a error wintypes.h (line 36). It complains that uintptr_t has
> already been defined (redefinition, different basic types, error C2371).

We used VS C++ 6.0 to compile Performer 3.0 on windows and with that
version of the compiler, there aren't any references to the uintptr_t
type.

I suggest that you place a conditional around this typedef based on the
compiler version. Something like:

#ifndef _MSC_VER
#define _MSC_VER 0
#endif

#if _MSC_VER <= 1200
typedef unsigned long int uintptr_t;
#endif

as far as I can tell, this is the version that the compiler reports when
using dev studio 6.0.

I'll make sure this gets fixed properly for the next minor release.

>
> Also on prmath.h, line 1505. Shouldn't the dllexport be actually
> dllimport?

Is this causing a compilation _error_ for you?

We should be using the DLLEXPORT macro (which does different things
dependending on whether or not we are compiling the library or apps, as
you would expect) in lieu of the hardcoded declspec stuff, you're correct.
But it should still compile just fine.

Thanks,

Alex.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Jan 07 2003 - 16:39:32 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.