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 - jagudo

Pages: [1]
1
Hi,

I'm just building SFML from scratch as I was having problems using the pre-built libraries.

Running with:

cmake version 3.0.2
g++ (GCC) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc

Any ideas? (More info down the mail ...)

Thx a lot.

[ 16%] Built target sfml-system
[ 18%] Built target sfml-main
[ 19%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Win32/WindowImplWin32.cpp.obj
D:\ExternalLibs\SFML\src\SFML\Window\Win32\WindowImplWin32.cpp: In member function 'virtual void sf::priv::WindowImplWin
32::requestFocus()':
D:\ExternalLibs\SFML\src\SFML\Window\Win32\WindowImplWin32.cpp:387:26: error: 'FLASHW_TRAY' was not declared in this sco
pe
mingw32-make[2]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/Win32/WindowImplWin32.cpp.obj] Error 1
mingw32-make[1]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2
mingw32-make: *** [all] Error 2

2
Thanks a lot! It fixed the problems.

Regards,
Jagudo

3
I'm really sorry to post this as I suppose you've already heard about a 1000 times but I really do not find a solution in the forum,

I'm using:
D:\Projects\cppcon\code>g++ --version
g++ (rev5, Built by MinGW-W64 project) 4.8.1

and I specify in g++ all paths and libraries.

g++ -I. -ID:/ExternalLibs/SFML-2.1-windows-gcc-4.7-mingw-32bits/SFML-2.1/include -LD:/ExternalLibs/SFML-2.1-windows-gcc-4.7-mingw-32bits/SFML-2.1/lib -lsfml-graphics-d -lsfml-window-d -lsfml-system-d ./main.cpp -o ./main.exe
C:\Users\jagudo\AppData\Local\Temp\cc3rZFLw.o:main.cpp:(.text+0x1e): undefined reference to `_imp___ZN2sf5ClockC1Ev'


The code is the one in the examples:

#include <SFML/System.hpp>
#include <iostream>

int main()
{
    sf::Clock Clock;
    while (Clock.getElapsedTime() < sf::seconds(5.f))
    {
        std::cout << Clock.getElapsedTime().asSeconds() << std::endl;
        sf::sleep(sf::seconds(0.5f));
    }

    return 0;
}


Once again, sorry if it has been asked a thousand times.


Regards,

Pages: [1]
anything