Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: patryk77 on January 19, 2009, 12:18:20 am
-
I am trying to compile the SDL_Config library, but it uses C++ code.
If I use a Static library project, it refuses to compile as it seems to use a C compiler and does not find <map>, <vector>, etc.
How would I set the project to compile with the C++ compiler?
Thanks
Using GCC under Ubuntu 8.04 netbook remix
-
How would I set the project to compile with the C++ compiler?
Files with the extension "c" are compiled using GCC (the C compiler). Files with the extension "cpp" (and others like cc) are compiled using the G++ compiler. Rename your files accordingly.
BTW: Searching the forums helps. You'll find more information on that topic in a query ~ 2-3 days before. Please search before asking.