 |
CML Discussion Forums
|
| View previous topic :: View next topic |
| Author |
Message |
godog23
Joined: 03 Jan 2008 Posts: 5
|
Posted: Thu Jan 03, 2008 7:28 pm Post subject: Some errors and warnings in Mingw32 (GCC 3.4.5) |
|
|
error in frustum.h, function get_frustum_corners.
The enum identifiers LEFT, RIGHT, etc seems to be used by windows Rename to sth like P_LEFT, etc
error in util.h
Function random() is not defined.
Changing #if defined(_MSC_VER) to #if defined(_MSC_VER) || defined(__MINGW32__) solves.
and the innumerable warnings
Warning: no newline at end of file |
|
| Back to top |
|
 |
Jesse Anders Site Admin
Joined: 01 Jan 1970 Posts: 305
|
Posted: Sun Jan 06, 2008 1:45 pm Post subject: Re: Some errors and warnings in Mingw32 (GCC 3.4.5) |
|
|
| godog23 wrote: | error in frustum.h, function get_frustum_corners.
The enum identifiers LEFT, RIGHT, etc seems to be used by windows Rename to sth like P_LEFT, etc
error in util.h
Function random() is not defined.
Changing #if defined(_MSC_VER) to #if defined(_MSC_VER) || defined(__MINGW32__) solves.
and the innumerable warnings
Warning: no newline at end of file | Hi,
Thanks for your post, and sorry to have been a little slow to respond.
Those Windows macros are a pain <:- But yeah, we should probably change those enums so that people don't run into that particular problem.
We're actually going to ditch random() in favor of rand(), so that particular error should be fixed in the next update.
The newline thing is kind of strange. My understanding is that it's in the standard that source files must end in a newline, but it's not really enforced, and some compilers care while other don't. (Demian might be able to provide some more info on that.)
In any case, we want as few warnings as possible, so we'll try to address that as well.
Thanks again for your post.
Jesse |
|
| Back to top |
|
 |
dnave
Joined: 29 Jun 2007 Posts: 96 Location: Pittsburgh, PA
|
Posted: Wed Jan 30, 2008 1:03 am Post subject: Re: Some errors and warnings in Mingw32 (GCC 3.4.5) |
|
|
Hi, thanks for the report. I'm actually surprised that gcc 3.4.5 even compiles CML...
The newline warning is odd, and I suspect it has to do with the different systems we've been developing the CML on (Windows, Mac, Linux). I'll go through the files and make sure the newlines are fixed.
Thanks again,
Demian
| godog23 wrote: | error in frustum.h, function get_frustum_corners.
The enum identifiers LEFT, RIGHT, etc seems to be used by windows Rename to sth like P_LEFT, etc
error in util.h
Function random() is not defined.
Changing #if defined(_MSC_VER) to #if defined(_MSC_VER) || defined(__MINGW32__) solves.
and the innumerable warnings
Warning: no newline at end of file |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|