Pascal,

        There will need to be at least two projects (and two workspaces).  The first one is the project that creates the "freeglut" library that you will use.  The second one will contain the application program.  Which project is giving you all the compiler errors?

        When you removed the inclusion of "windows.h", was that from around line 59 of "freeglut_std.h"?  If so, then trying to build "freeglut" will indeed give you all the compiler errors in "gl.h" that you found, whether you are using MFC or not.

John F. Fay
Technical Fellow
Jacobs Technology TEAS Group
850-883-1294

-----Original Message-----
From: freeglut-developer-bounces@lists.sourceforge.net [mailto:freeglut-developer-bounces@lists.sourceforge.net] On Behalf Of Savard, Pascal

Sent: Friday, January 19, 2007 12:22 PM
To: FreeGLUT developers list
Subject: Re: [Freeglut-developer] Multithreaded on Windows

 

 

Pascal Savard

Pascal.Savard@nrc-cnrc.gc.ca

 

I have considered this, and tried to resolve this issue.

 

Note that I received this code as is, and given the duty to maintain and improve it, therefore I was not there at the time the application was created, and could not confirm whether the application was created as an MFC application or not. The settings in the project (General tab in the project settings) under "Use of MFC" give three choices: "Use standard Windows Librairies" (current setting), "Use MFC in a static librairy" and "Use MFC in a Shared DLL".

 

Since the current option was the furthest one from using MFC as far as I could see, I tried creating a new project, picked "Win32 Console Application" under the Win32 tab, and copied my files in that project and tried again, yet I still get the same errors, and the option in the project settings under Use of MFC are the same.

 

If there is another way to get rid of MFC that I am not aware of I'd gladly use it, but from what I can see the MFC is being called without being included explicitly in the project options.

 

 

 

 

-----Original Message-----
From: freeglut-developer-bounces@lists.sourceforge.net [mailto:freeglut-developer-bounces@lists.sourceforge.net] On Behalf Of Fay John F Dr CTR USAF AFSEO/SK

Sent: January 19, 2007 1:05 PM
To: 'FreeGLUT developers list'
Subject: Re: [Freeglut-developer] Multithreaded on Windows

 

Pascal,

        Perhaps the problem is that you are using MFC?

John F. Fay
Technical Fellow
Jacobs Technology TEAS Group
850-883-1294