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

Pages: [1]
1
Which tutorial?

The fact that you are getting "_imp___ZN2sf6StringC1EPKcRKSt6locale", means that is it an implied reference. Are you defining "SFML_STATIC", while using the dynamic libraries, or not when using the static libraries?
This tutorial:
http://www.sfml-dev.org/tutorials/2.1/start-cb.php

And no, I am not defining SFML_STATIC.

you must be linking wrong.
try this
http://www.edparrish.net/common/sfmlcb.html
Followed this tutorial exactly as it's written, step by step, and it changed nothing. I'm still getting the same "undefined reference" errors.

I notice that this tutorial was written for version 2.2, though. Perhaps I should try downgrading?

2
I'm using CodeBlocks ver. 13.12 with GCC 4.7.1 TDM installed. I downloaded the SFML 2.3 GCC 4.7.1 TDM (SJLJ) - 32-bit file from the Downloads section. I followed all of the tutorial steps exactly and made sure to have the libraries in the proper order.

Here was the build command (I switched to using the debug versions to see if that would make SFML work):

Code: [Select]
mingw32-g++.exe -LC:\SFML-2.3\lib -o bin\Debug\SFML_testing.exe obj\Debug\main.o   -lsfml-graphics-d -lsfml-window-d -lsfml-system-d
Got a whole list of undefined reference errors like this one:
Code: [Select]
undefined reference to `_imp___ZN2sf6StringC1EPKcRKSt6locale'
I've searched your forums for other threads where people had this problem, but none of the solutions given have worked for me at all yet.

I don't know how or why it isn't working, so any help would be much appreciated.

Pages: [1]