Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Release 15.12, RC1 has arrived

<< < (4/19) > >>

Krice:
Settings - Environment... and it actually works for CppCheck.

Here some more finds:
-Compile doesn't switch to build log, which is annoying.
-How to clear build log?
-Find implementation doesn't work if declaration has typedef for variable type and definition doesn't (for example Uint8 - unsigned char which are the same type).
-gcc is showing compiler warnings for external header files (in this case SDL_stdinc.h of SDL2), I don't know if this is C::B problem or not.

BlueHazzard:

--- Quote from: Krice on November 26, 2015, 02:21:10 pm ----How to clear build log?

--- End quote ---
You can't clear the build log (Why would you clear it?). It gets cleared automatically if you hit the build button. You can hide the build log with the F2 key or set the auto hide setting: Settings->Environment->View->Auto hide/show message pane


--- Quote from: Krice on November 26, 2015, 02:21:10 pm ----Find implementation doesn't work if declaration has typedef for variable type and definition doesn't (for example Uint8 - unsigned char which are the same type).

--- End quote ---
can you give a minimal code example?


--- Quote from: Krice on November 26, 2015, 02:21:10 pm ---Settings - Environment... and it actually works for CppCheck.

Here some more finds:
-gcc is showing compiler warnings for external header files (in this case SDL_stdinc.h of SDL2), I don't know if this is C::B problem or not.

--- End quote ---
Are you using SDL? Have you created your project with the SDL wizard? Can you post a full rebuild log?

thank you for reporting your findings

BlueHazzard:

--- Quote from: MortenMacFly on November 25, 2015, 09:47:34 pm ---It would be worth to think about shipping a current release of these tools with the release. The two tools are really tiny...

--- End quote ---
And answer all the cppcheck related questions from noobs in this forum  ???

Krice:

--- Quote from: BlueHazzard on November 26, 2015, 10:48:58 pm ---You can't clear the build log (Why would you clear it?).
--- End quote ---

I wanted that stuff to clear when compiling a single file, but now I noticed there is also Build messages.. I think it's kind of confusing to have two logs for the same thing, but I guess there is some kind of logic there.


--- Quote ---can you give a minimal code example?
--- End quote ---

surface.h:
void Set_Colorkey(Uint8 r, Uint8 g, Uint8 b);

surface.cpp:
void G_Surface::Set_Colorkey(unsigned char r, unsigned char g, unsigned char b)

If you try to find implementation from the header, it doesn't find it because while types are same the definition is not using typedef (which could be fixed, but..)


--- Quote ---Have you created your project with the SDL wizard?
--- End quote ---

No. I always create an empty project for that. However I found the reason: if you put SDL file locations to Compiler search directory then it's warning about SDL header problems. I fixed that by copying SDL include directory to gcc's include and also SDL library files to gcc library directory and of course removing search directory locations.

Miguel Gimenez:

--- Quote from: BlueHazzard on November 26, 2015, 10:48:58 pm ---You can't clear the build log (Why would you clear it?). It gets cleared automatically if you hit the build button. You can hide the build log with the F2 key or set the auto hide setting: Settings->Environment->View->Auto hide/show message pane

--- End quote ---

I think that the build log (and build messages) should be cleared when closing a workspace. If I change workspaces, the old build log is there.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version