CML Discussion Forums Forum Index CML Discussion Forums

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Some errors and warnings in Mingw32 (GCC 3.4.5)

 
Post new topic   Reply to topic    CML Discussion Forums Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
godog23



Joined: 03 Jan 2008
Posts: 5

PostPosted: Thu Jan 03, 2008 7:28 pm    Post subject: Some errors and warnings in Mingw32 (GCC 3.4.5) Reply with quote

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
View user's profile Send private message
Jesse Anders
Site Admin


Joined: 01 Jan 1970
Posts: 305

PostPosted: Sun Jan 06, 2008 1:45 pm    Post subject: Re: Some errors and warnings in Mingw32 (GCC 3.4.5) Reply with quote

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
View user's profile Send private message Send e-mail
dnave



Joined: 29 Jun 2007
Posts: 96
Location: Pittsburgh, PA

PostPosted: Wed Jan 30, 2008 1:03 am    Post subject: Re: Some errors and warnings in Mingw32 (GCC 3.4.5) Reply with quote

Hi, thanks for the report. I'm actually surprised that gcc 3.4.5 even compiles CML... Smile

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CML Discussion Forums Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
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