Error compiling with Visual C++

Hi I have a big problem. My cpp application must use the rotozoom library in
a partucular class but I have always a problem with template while
compiling. I use Visual C++ 6. Any ideas?
Thank a lot.
Bye, Andrea.

Quick solution- copy rotozoom files (SDL_rotozoom.cpp & SDL_rotozoom.h (?))
to your project directory, add to project and in class header file include
rotozoom header file. Should work fine.

Kovacs> ----- Original Message -----

From: massioli@hoc.elet.polimi.it (Andrea Massioli)
To: “Lista SDL”
Sent: Monday, December 17, 2001 3:00 PM
Subject: [SDL] Error compiling with Visual C++

Hi I have a big problem. My cpp application must use the rotozoom library
in
a partucular class but I have always a problem with template while
compiling. I use Visual C++ 6. Any ideas?
Thank a lot.
Bye, Andrea.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

The problem is rotozoom is a C app. which you are trying to include in a cpp
application. In rotozoom.h be sure to uncomment the lines after /* Set up
for C function definitions, even when using C++ /
in the beginning and the lines following /
Ends C function definitions when
using C++ */

rotozoom.h includes <math.h> but for some reason this is included within the
extern “C”, math.h uses templates and cannot be threaded like a c source.
Move the line #include <math.h> outside the C extern brackets and you should
compile fine.

#----ticless-from-WouzProduction----#>From: “Kovacs”

Reply-To: sdl at libsdl.org
To:
Subject: Re: [SDL] Error compiling with Visual C++
Date: Mon, 17 Dec 2001 21:53:35 +0200

Quick solution- copy rotozoom files (SDL_rotozoom.cpp & SDL_rotozoom.h
(?))
to your project directory, add to project and in class header file include
rotozoom header file. Should work fine.

Kovacs

----- Original Message -----
From: “Andrea Massioli”
To: “Lista SDL”
Sent: Monday, December 17, 2001 3:00 PM
Subject: [SDL] Error compiling with Visual C++

Hi I have a big problem. My cpp application must use the rotozoom
library
in
a partucular class but I have always a problem with template while
compiling. I use Visual C++ 6. Any ideas?
Thank a lot.
Bye, Andrea.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.