Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: demetrioussharpe on August 14, 2020, 01:30:20 am

Title: Typedef redefinition from header files being pulled in from both SDL & SDL2
Post by: demetrioussharpe on August 14, 2020, 01:30:20 am
I'm porting code what was written on Windows in Visual Studio to Linux in C::B. When building, the compiler is complaining about redefinitions of types from headers in /usr/include/SDL2 that are also defined in /usr/include/SDL. Because I'm using `sdl2-config --cflag`, I'm only supposed to be pulling in headers for SDL2. Does anyone have any clue of what would be causing the older SDL headers to be pulled in with the modern headers? My development environment is:

Ubuntu 20.04.1 LTS
Code::Blocks 20.03

Any help would be greatly appreciated.
Title: Re: Typedef redefinition from header files being pulled in from both SDL & SDL2
Post by: Miguel Gimenez on August 14, 2020, 11:20:14 am
Please post a full rebuild log in code tags (use the button with a dash):

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)
Title: Re: Typedef redefinition from header files being pulled in from both SDL & SDL2
Post by: stahta01 on August 15, 2020, 07:43:07 am
Please post a full rebuild log in code tags (use the button with a dash):

I am guessing you meant "hash" instead of "dash".

Quote
The symbol # is known as the number sign, hash, or (in North American usage) pound sign.

Tim S.