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

Pages: [1]
1
General / Program doesn't start (using CodeBlocks)
« on: July 27, 2011, 09:49:01 am »
Thanks for reply :)

I get errors no matter what I try to use from SFML. The complete list is below (minus directory):

undefined reference to `_imp___ZN2sf9VideoModeC1Ejjj'
undefined reference to '_imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKSsmRKNS_14WindowSettingsE
undefined reference to `_imp___ZN2sf5ImageC1Ev'
undefined reference to `_imp___ZN2sf12RenderWindowD1Ev'
undefined reference to `_imp___ZN2sf5Image12LoadFromFileERKSs'
undefined reference to `_imp___ZN2sf5Image9SetSmoothEb'
undefined reference to `_imp___ZN2sf5ColorC1Ehhhh'
undefined reference to `_imp___ZN2sf6SpriteC1ERKNS_5ImageERKNS_7Vector2IfEES7_fRKNS_5ColorE'
undefined reference to `_imp___ZN2sf8Drawable11SetPositionEff'
undefined reference to `_imp___ZN2sf8Drawable8SetScaleEff'
undefined reference to `_imp___ZN2sf6Window5CloseEv'
undefined reference to `_imp___ZN2sf6Window5CloseEv'
undefined reference to `_imp___ZN2sf6Window8GetEventERNS_5EventE'
undefined reference to `_imp___ZN2sf5ColorC1Ehhhh'
undefined reference to `_imp___ZN2sf12RenderTarget5ClearERKNS_5ColorE'
undefined reference to `_imp___ZN2sf12RenderTarget4DrawERKNS_8DrawableE'
undefined reference to `_imp___ZN2sf6Window7DisplayEv'
undefined reference to `_imp___ZNK2sf6Window8IsOpenedEv'
undefined reference to `_imp___ZN2sf5ImageD1Ev'
undefined reference to `_imp___ZN2sf5ImageD1Ev'
undefined reference to `_imp___ZN2sf12RenderWindowD1Ev'
undefined reference to `_imp___ZN2sf12RenderWindowD1Ev'

Sprite.hpp:
undefined reference to `_imp___ZTVN2sf6SpriteE'
undefined reference to `_imp___ZN2sf8DrawableD2Ev'
undefined reference to `_imp___ZN2sf8DrawableD2Ev'

2
General / Program doesn't start (using CodeBlocks)
« on: July 27, 2011, 12:19:48 am »
@OniLink10
Yes, you're right. I hadn't thought about that. Thank you.

Though, now I get some undefined reference-errors (are those related to the compiler or to the linker settings?) and I can't see what I'm doing differently from the tutorial :?

My code is just supposed to display a sprite in a RenderWindow. Am I right in assuming I then need to link to -lsfml-graphics-s-d, -lsfml-window-s-d and -lsfml-system-s-d?

Would you mind explaining what the difference is between using the static and the dynamic versions of the library?

3
General / Program doesn't start (using CodeBlocks)
« on: July 26, 2011, 03:14:24 pm »
I do actually have an ATI card, but I've had it throughout my SFML-tinkering and I've had code working before.

I have two projects, each with nearly identical code, and the program starts fine with one project but won't start in the other. o.O

4
General / Program doesn't start (using CodeBlocks)
« on: July 26, 2011, 02:52:31 pm »
Hi

I'm new to C++ and I'm having a hard time getting to grips with compilers and linkers and whatnot (I have been programming in Java for a few years).

I have had SFML up and running, but I just started a new project and now my programs won't start up at all. It compiles without issues, but when I start the program the cmd-prompt appears and nothing happens.

I tried putting a cout at the beginning of the main-method but that isn't even run.

Anyone knows what's going on?

Pages: [1]