SFML community forums

Help => General => Topic started by: MisterKpak on May 20, 2012, 03:40:23 pm

Title: Compiling a project with C::B
Post by: MisterKpak on May 20, 2012, 03:40:23 pm
Hello.

When compiling with Code::Blocks, is it normal to get 20+warnings about a class having pointer members?

Thanks for your help :D
Title: Re: Compiling a project with C::B
Post by: Laurent on May 20, 2012, 04:29:33 pm
You'll get more answers if you post the actual warning message and the corresponding code.
Title: Re: Compiling a project with C::B
Post by: MisterKpak on May 20, 2012, 08:17:06 pm
Sorry. Here's some examples:

Example A) G:\Programming\CPP stuff\APIs\SFML-1.6\include/SFML/System/Win32/Thread.hpp:45: warning: base class 'struct sf::NonCopyable' has a non-virtual destructor
G:\Programming\CPP stuff\APIs\SFML-1.6\include/SFML/System/Win32/Thread.hpp:45: warning: 'class sf::Thread' has pointer data members
G:\Programming\CPP stuff\APIs\SFML-1.6\include/SFML/System/Win32/Thread.hpp:45: warning:   but does not override 'sf::Thread(const sf::Thread&)'
G:\Programming\CPP stuff\APIs\SFML-1.6\include/SFML/System/Win32/Thread.hpp:45: warning:   or 'operator=(const sf::Thread&)'

Example B) G:\Programming\CPP stuff\APIs\SFML-1.6\include/SFML/System/Win32/Mutex.hpp:46: warning: base class 'struct sf::NonCopyable' has a non-virtual destructor

Example C) <command-line>: warning: missing whitespace after the macro name

Thanks again :)
Title: Re: Compiling a project with C::B
Post by: Laurent on May 20, 2012, 08:48:38 pm
Ah, you're using very strict compiler settings.

It was already discussed there:
http://en.sfml-dev.org/forums/index.php?topic=7852.0

The conclusion is that it doesn't make sense to activate these specific warnings for the general case.
Title: Re: Compiling a project with C::B
Post by: MisterKpak on May 20, 2012, 08:56:31 pm
Thanks ;D -wall helped all but the

"missing whitespace after macro name"

Any idea what that is?
Title: Re: Compiling a project with C::B
Post by: Laurent on May 20, 2012, 08:58:25 pm
Any idea where that is?
Title: Re: Compiling a project with C::B
Post by: MisterKpak on May 20, 2012, 09:02:17 pm
Just says command line
Title: Re: Compiling a project with C::B
Post by: MisterKpak on May 20, 2012, 09:24:54 pm
One more question then i'll shut up for awhile.

When i try to run a program outside of C::B it tells me i need libgcc_(something or other).dll

I can't seem to find that in SFML files. Is it a CMake thing i need to do?
Title: Re: Compiling a project with C::B
Post by: Laurent on May 20, 2012, 09:59:00 pm
Quote
Just says command line
So it's probably something that Code::Blocks sends to gcc.

Quote
When i try to run a program outside of C::B it tells me i need libgcc_(something or other).dll

I can't seem to find that in SFML files. Is it a CMake thing i need to do?
No, it's a MinGW thing (it's in mingw/bin).
Title: Re: Compiling a project with C::B
Post by: MisterKpak on May 20, 2012, 10:30:26 pm
THANK YOU SO MUCH :DDD

Ok i'm done. Sorry for being a pest.