Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


gcc warnings

This topic is 5990 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

im porting a game from windows to linux and i have a little problem: gcc prints out several warnings for things like conversion from float to double etc. but i want to find the real errors that prevent the game from compiling. finding these errors in thousands of warnings is not easy at all! so how can i disable warning output in gcc? also there seam to be differences in operator overloading between visual c++ and gcc. in mscv the vector classes compile without problems but there are errors when compiling with gcc. (i dont know if thats the exact problem because of so many warnings...)

Share this post

Link to post
Share on other sites
I have exactly the same problem as you have because I''m working on a project that adapts all the exemples from Andre Lamothe''s book" Tricks of widows games programming gurus " compiled with the Microsovt VC++ compiler to the Linux OS and using SDL and compiled with gcc, or g++.
So far, I''m at chapter 8 scaling and rotating polygons. Not bad huh.
All theses warnings are a real P.I.T.A. but I''m too lazy to adapt the functions that works right out of the box to eliminate all theses warnings about floating point variables.
I know that every book about C++ advises to fine tune the program until all the warnings are fixed but I''ll do the fine tuning
I don''t use the -w switch, maybe I should.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!