Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Compiling a project with C::B  (Read 2656 times)

0 Members and 1 Guest are viewing this topic.

MisterKpak

  • Newbie
  • *
  • Posts: 12
    • View Profile
Compiling a project with C::B
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Compiling a project with C::B
« Reply #1 on: May 20, 2012, 04:29:33 pm »
You'll get more answers if you post the actual warning message and the corresponding code.
Laurent Gomila - SFML developer

MisterKpak

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Compiling a project with C::B
« Reply #2 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 :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Compiling a project with C::B
« Reply #3 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.
Laurent Gomila - SFML developer

MisterKpak

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Compiling a project with C::B
« Reply #4 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Compiling a project with C::B
« Reply #5 on: May 20, 2012, 08:58:25 pm »
Any idea where that is?
Laurent Gomila - SFML developer

MisterKpak

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Compiling a project with C::B
« Reply #6 on: May 20, 2012, 09:02:17 pm »
Just says command line

MisterKpak

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Compiling a project with C::B
« Reply #7 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Compiling a project with C::B
« Reply #8 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).
Laurent Gomila - SFML developer

MisterKpak

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Compiling a project with C::B
« Reply #9 on: May 20, 2012, 10:30:26 pm »
THANK YOU SO MUCH :DDD

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