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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - pozioxd

Pages: [1]
1
NVM IM STUPID. SORRY GUYS FOR TAKING YOUR TIME...
Linking order goes from non-core, to core(system). Now I understand this :D
Sorry for my stupidity

2
-------------- Build: Debug in Right Strike (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -LC:\SFML-2.1\lib -LC:\SFML-2.1\lib -o "bin\Debug\Right Strike.exe" obj\Debug\main.o   -lsfml-graphics-s-d -lsfml-window-s-d -lsfml-system-s-d -lsfml-audio-s-d
C:\SFML-2.1\lib/libsfml-audio-s-d.a(SoundStream.cpp.obj): In function `ZN2sf11SoundStreamD2Ev':
D:/developpement/sfml/sfml/src/SFML/Audio/SoundStream.cpp:56: undefined reference to `sf::Thread::~Thread()'
D:/developpement/sfml/sfml/src/SFML/Audio/SoundStream.cpp:56: undefined reference to `sf::Thread::~Thread()'
C:\SFML-2.1\lib/libsfml-audio-s-d.a(SoundStream.cpp.obj): In function `ZN2sf11SoundStream4playEv':
D:/developpement/sfml/sfml/src/SFML/Audio/SoundStream.cpp:105: undefined reference to `sf::Thread::launch()'
C:\SFML-2.1\lib/libsfml-audio-s-d.a(SoundStream.cpp.obj): In function `ZN2sf11SoundStream4stopEv':
D:/developpement/sfml/sfml/src/SFML/Audio/SoundStream.cpp:121: undefined reference to `sf::Thread::wait()'
C:\SFML-2.1\lib/libsfml-audio-s-d.a(SoundStream.cpp.obj): In function `ZN2sf11SoundStream16setPlayingOffsetENS_4TimeE':
D:/developpement/sfml/sfml/src/SFML/Audio/SoundStream.cpp:164: undefined reference to `sf::Thread::launch()'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
5 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 
I got code::blocks with default compiler (GNU GGC). I tried to redownload SFML 2.1, but this didn't fix the problem. Graphics- window- system- audio - that's my linking order. And according to tutorial on official SFML site it's good.

In this code there's "D:/developpement/sfml/sfml/src/SFML/Audio/SoundStream.cpp" isn't that weird? Because I don't have D:/ partition.

3
Audio / [FIXED]Undefined reference to sf::Thread::~Thread()
« on: September 26, 2014, 02:33:35 pm »
Hello good people from SFML forums.

Today I wanted to add some music into my project, and what happened?

||=== Build: Debug in Right Strike (compiler: GNU GCC Compiler) ===|
C:\SFML-2.1\lib\libsfml-audio-s-d.a(SoundStream.cpp.obj)||In function `ZN2sf11SoundStreamD2Ev':|
D:\developpement\sfml\sfml\src\SFML\Audio\SoundStream.cpp|56|undefined reference to `sf::Thread::~Thread()'|
D:\developpement\sfml\sfml\src\SFML\Audio\SoundStream.cpp|56|undefined reference to `sf::Thread::~Thread()'|
C:\SFML-2.1\lib\libsfml-audio-s-d.a(SoundStream.cpp.obj)||In function `ZN2sf11SoundStream4playEv':|
D:\developpement\sfml\sfml\src\SFML\Audio\SoundStream.cpp|105|undefined reference to `sf::Thread::launch()'|
C:\SFML-2.1\lib\libsfml-audio-s-d.a(SoundStream.cpp.obj)||In function `ZN2sf11SoundStream4stopEv':|
D:\developpement\sfml\sfml\src\SFML\Audio\SoundStream.cpp|121|undefined reference to `sf::Thread::wait()'|
C:\SFML-2.1\lib\libsfml-audio-s-d.a(SoundStream.cpp.obj)||In function `ZN2sf11SoundStream16setPlayingOffsetENS_4TimeE':|
D:\developpement\sfml\sfml\src\SFML\Audio\SoundStream.cpp|164|undefined reference to `sf::Thread::launch()'|
||=== Build failed: 5 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
 

This thing!

#BIG EDIT:
I'm stupid. You need to order your libs like: audio, graph, window, system, and my libs were like graph, window, system, audio.



4
General / Re: Loading screen - help me understand loop better
« on: September 22, 2014, 10:10:11 pm »
I don't. I just want them to load, with a fancy image saying "Loading" or something. Thank you for your response 8)

5
General / Re: Loading screen - help me understand loop better
« on: September 22, 2014, 09:51:39 pm »
Thank you for very fast answer. So, this will work? First it will load all the items that I put here, then it will go to the next state?

6
General / Loading screen - help me understand loop better
« on: September 22, 2014, 09:39:10 pm »
Hello everyone.

Let's say i have this code:
    // Loading
        while(stateLoading)
        {
            Window.clear(sf::Color::Black);
            //Here draw a picture saying "Loading";
            Window.display();
           
            //Load file X
            //Load file Y
            //Load file Z
            //Load file ...

        stateLoading=false;
        stateMainMenu=true;
        }
 

My question: will all the files first be loaded, and then it will jump to the next state, or some files may not load but it will still go to the next section.

I just wonder, if this is enough to make loading screen, or I need to do something more complex. I know that while in SFML loops over and over again, but does .loadFromFile() method make it something like "wait! we must load this file, then u can go further!"?

I hope you understand my question, if my request wasn't clear I'm sorry, and I'll try to make it more clear.
Have a nice day, good people.

Pages: [1]