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.


Topics - TheLastBanana

Pages: [1]
1
General / SFML2 Linking Errors
« on: November 08, 2010, 06:35:51 am »
I've been trying to compile SFML2 using CMake from the latest snapshot. SFML2 compiles fine, but whenever I try to start a project with it, I get hundreds of errors like this in the linking stage (from within my own code):
Code: [Select]
obj\Release\AnimSprite.o:AnimSprite.cpp|| undefined reference to `_imp___ZN2sf6SpriteC1Ev'|
Currently, the lib and include files are installed directly into my MinGW folder. However, I've also tried using the install make and adding the Program Files\SFML directories as search directories, but it gave the exact same errors.
I'm compiling using Code::Blocks and MinGW, and compiled SFML using CMake and a clean install of MinGW.
Any help would be appreciated. Thanks!

2
General / Updating SFML 1.6 to 2.0 (C++)
« on: October 21, 2010, 06:34:38 am »
Hey there!
I've been working on a project for a while in SFML 1.6, and a lot of the functions in 2.0 seem really useful to me, so I've decided to upgrade. I grabbed the latest snapshot off the website and compiled it, but now I'm having a bit of a problem:
I've linked my project to all the necessary sfml2-x libraries and I replaced the include files with the new ones. However, I'm getting a lot of errors when I try to compile my project, starting with:
Code: [Select]
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.0\..\..\..\libsfml2-graphics-s.a(Font.o):Font.cpp|| multiple definition of `sf::Font::~Font()'|
obj\Release\AnimSprite.o:AnimSprite.cpp|| undefined reference to `sf::Sprite::SetImage(sf::Image const&)'|
obj\Release\AnimSprite.o:AnimSprite.cpp|| undefined reference to `sf::Drawable::SetCenter(float, float)'|

And so on.
I tried compiling a new program using the sample code from the Code::Blocks setup page, and it compiled just fine. I used the exact same linker settings, so I'm wondering why it would be throwing me these errors.
I'm using Code::Blocks with MinGW as compiler, and if it makes any difference, I'm having g++ use the new C++0x standard.
Any help would be appreciated. Thanks!

Pages: [1]
anything