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

Pages: [1]
1
General / Re: Problem with static linking libraries (Win/C::B)
« on: February 16, 2014, 01:13:18 pm »
Didn't get it at first, sorry.

I've compiled static libraries for MinGW following tutorial, but now it seems like window cannot find dependencies:
||=== Firmy, Release ===|
SFML-2.1\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp|| undefined reference to `sf::Clock::restart()'|
SFML-2.1\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp|| undefined reference to `sf::err()'|
SFML-2.1\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp|| undefined reference to `sf::err()'|
SFML-2.1\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp|| undefined reference to `sf::Clock::Clock()'|
SFML-2.1\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp|| undefined reference to `sf::Time::Zero'|
SFML-2.1\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp|| undefined reference to `sf::Time::Zero'|
SFML-2.1\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp|| undefined reference to `sf::Clock::Clock()'|
SFML-2.1\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp|| undefined reference to `sf::Time::Zero'|
SFML-2.1\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp|| undefined reference to `sf::Time::Zero'|
SFML-2.1\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp|| undefined reference to `sf::err()'|

// ...

||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings (0 minutes, 2 seconds) ===|
 

2
General / Re: Problem with static linking libraries (Win/C::B)
« on: February 15, 2014, 11:53:39 pm »
I checked lstdc++ and there's no difference.

Also manual removing generated files and rebuild did not help.

3
General / Re: Problem with static linking libraries (Win/C::B)
« on: February 15, 2014, 09:00:52 pm »
Well, then I was, but now after full rebuild I have two errors repeating in sources:

SFML-2.1\lib\libsfml-graphics-s-d.a(CircleShape.cpp.obj)||In function `ZN2sf11CircleShapeC2Efj':|
D:\developpement\sfml\sfml\src\SFML\Graphics\CircleShape.cpp|37|undefined reference to `_Unwind_Resume'|
SFML-2.1\lib\libsfml-graphics-s-d.a(CircleShape.cpp.obj):CircleShape.cpp:(.eh_frame+0x13)||undefined reference to `__gxx_personality_v0'|

// ...

||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings (0 minutes, 2 seconds) ===|
 

Sometime both of them appears, sometimes it's only one of them.

4
General / Problem with static linking libraries (Win/C::B)
« on: February 15, 2014, 07:52:25 pm »
Hi,
I'm trying to debug SFML 2.1 demo application from this setting Code::Blocks tutorial. I have Windows 7 64-bit with Code::Blocks 32-bit (MinGW).

As written, I created new project (and copied whole SFML-2.1 directory inside) with the following settings (Project/Build options...):

General:
Compiler settings/#defines: SFML_STATIC
Search directories/Compiler: SFML-2.1\include
Search directories/Linker: SFML-2.1\lib

Debug:
Linker settings/Link libraries:
libsfml-graphics-s-d
libsfml-system-s-d
libsfml-window-s-d

Release:
Linker settings/Link libraries:
libsfml-graphics-s
libsfml-system-s
libsfml-window-s

When I start debugging session everything builds fine, but there's error on startup like "Could not execute program because sfml-graphics-2.dll was not found." (in my native language).

I followed tutorial well and I have no idea what is done wrong. Any hints?

Pages: [1]
anything