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

Author Topic: SFML 2.0 Class/Member Errors [SOLVED]  (Read 11159 times)

0 Members and 1 Guest are viewing this topic.

replaceits

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: SFML 2.0 Class/Member Errors
« Reply #15 on: October 13, 2012, 12:04:37 am »
I am a million percent positive, never touched C in my life.
And the errors for the system? I forgot to link system before i posted (was rushing), however system seems to be the only one that's working, now all the others (audio, graphics, and window) give me undefined references.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML 2.0 Class/Member Errors
« Reply #16 on: October 13, 2012, 12:02:10 pm »
You built SFML yourself, right? Have you tried the precompiled RC?
Laurent Gomila - SFML developer

replaceits

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: SFML 2.0 Class/Member Errors
« Reply #17 on: October 13, 2012, 06:10:51 pm »
Yes, I have tried both and they give the same errors.

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: SFML 2.0 Class/Member Errors
« Reply #18 on: October 13, 2012, 07:06:52 pm »
It looks like the compiler/linker is screwed up.

Try this and see if it works.
#include <sstream>
#include <string>

int main (void)
{
        std::stringstream sstr;
        std::string test("test");

        sstr << test;

        return 0;
}
 

You should also get undefined reference errors.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

replaceits

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: SFML 2.0 Class/Member Errors
« Reply #19 on: October 13, 2012, 08:41:37 pm »
Actually that piece of code works perfectly fine.. hmm

replaceits

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: SFML 2.0 Class/Member Errors
« Reply #20 on: October 13, 2012, 10:00:24 pm »
Ok so i decided to rebuild SFML (2.0-rc-95-g4c04a0c) again, this time instead of using the MingGW MakeFile, I used code blocks to compile but every time I get this error and it wont compile...
Linking CXX static library ..\..\..\lib\libsfml-system-s.a
process_begin: CreateProcess((null), echo Built target sfml-system, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make.exe[1]: *** [src/SFML/System/CMakeFiles/sfml-system.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2
[ 18%]
Process terminated with status 2 (0 minutes, 6 seconds)
0 errors, 0 warnings
 

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML 2.0 Class/Member Errors
« Reply #21 on: October 13, 2012, 10:46:55 pm »
Don't use Code::Blocks to compile SFML, makefiles are much better.

If you follow the tutorials step by step you're guaranteed to get something that works perfectly.

If you're really stuck, upload your Code::Blocks project file (.cbp).
Laurent Gomila - SFML developer

replaceits

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: SFML 2.0 Class/Member Errors
« Reply #22 on: October 17, 2012, 01:37:58 am »
Ok finally got SFML 2.0 (rc-95-g4c04a0c) working!(:
I'm still not sure what went wrong but every things fixed after completely uninstalling and reinstalling Code::Blocks, MinGW, and the gnu g++ compilers then recompiling SFML with Cmake and MinGW-make.
Thank you everyone for the help!(:
« Last Edit: October 17, 2012, 04:46:11 am by replaceits »