gcc warnings
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...)
Use the -w option to get rid of warnings.
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
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
later.
I don''t use the -w switch, maybe I should.
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
later.
I don''t use the -w switch, maybe I should.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement