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

Pages: [1]
1
General / Re: CodeBlocks 12.11 SFML 2.0
« on: February 17, 2013, 04:08:59 pm »
i am using the default gnu gcc compiler settings in code::blocks.

Edit: i have recompiled sfml with a saperate MinGW32 - TDM compiler and now it is working again.  :-\

2
General / Re: CodeBlocks 12.11 SFML 2.0
« on: February 17, 2013, 02:50:06 pm »
i recompiled sfml and nog i am getting a different error when i compile and want to run the test program.

error i now get


linker


linker settings


compiler


3
General / Re: CodeBlocks 12.11 SFML 2.0
« on: February 16, 2013, 01:00:02 am »
I have setup everythjing like in the tutorial but for some reason it is not working anymore.

i have previosly compiled sfml 2.0 and that one worked but have stupidly deleted that one and now it doesn't work anymore :/.

4
General / Re: CodeBlocks 12.11 SFML 2.0
« on: February 16, 2013, 12:30:42 am »
that made it worse  :-\

obj\Debug\main.o||In function `main':|
G:\SFML\SFML-Base\main.cpp|5|undefined reference to `_imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKSsjRKNS_15ContextSettingsE'
|
G:\SFML\SFML-Base\main.cpp|6|undefined reference to `_imp___ZN2sf11CircleShapeC1Efj'|
G:\SFML\SFML-Base\main.cpp|7|undefined reference to `_imp___ZN2sf5Shape12setFillColorERKNS_5ColorE'
|
G:\SFML\SFML-Base\main.cpp|15|undefined reference to `_imp___ZN2sf6Window5closeEv'|
G:\SFML\SFML-Base\main.cpp|12|undefined reference to `_imp___ZN2sf6Window9pollEventERNS_5EventE'
|
G:\SFML\SFML-Base\main.cpp|18|undefined reference to `_imp___ZN2sf12RenderTarget5clearERKNS_5ColorE'|
G:\SFML\SFML-Base\main.cpp|19|undefined reference to `_imp___ZN2sf12RenderStates7DefaultE'
|
G:\SFML\SFML-Base\main.cpp|19|undefined reference to `_imp___ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'|
G:\SFML\SFML-Base\main.cpp|20|undefined reference to `_imp___ZN2sf6Window7displayEv'
|
G:\SFML\SFML-Base\main.cpp|9|undefined reference to `_imp___ZNK2sf6Window6isOpenEv'|
obj\Debug\main.o||In function `ZN2sf11CircleShapeD1Ev'
:|
G:\SFML\SFML-Base\..\..\..\SFML-2.0-REBUILD\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `_imp___ZTVN2sf11CircleShapeE'|
G:\SFML\SFML-Base\..\..\..\SFML-2.0-REBUILD\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `_imp___ZTVN2sf11CircleShapeE'
|
G:\SFML\SFML-Base\..\..\..\SFML-2.0-REBUILD\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `_imp___ZN2sf5ShapeD2Ev'|
||=== Build finished: 13 errors, 0 warnings (0 minutes, 0 seconds) ===|


5
General / Re: CodeBlocks 12.11 SFML 2.0
« on: February 15, 2013, 11:53:14 pm »
How are you linking SFML? Dynamic/static? debug/release? :)

Also please make use of the code=cpp tags, when posting code.

i am linking dynamic libs and i am using release libs.

6
General / CodeBlocks 12.11 SFML 2.0
« on: February 15, 2013, 10:46:18 pm »
Hi,

I want to use sfml 2.0 with codeblocks 12.11 i have Cmake'd sfml from github and rebuild it in codeblocks, but i still get an error when i compile the basic program found in the first sfml 2.0 tutorial.

edit: i am using windows 7.
code i used.
#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}
 

Error i get.
Code: [Select]
G:\SFML\SFML-Base\main.cpp|5|undefined reference to `_imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKSsjRKNS_15ContextSettingsE'|

7
General / sfml 1.6 & 2.0 crash window.dll
« on: December 15, 2012, 11:46:43 pm »
Hi,

I am trying SFML for the first time and i  immediately have a problem.
i have followed the first tutorial for setting up codeblocks.

after i have compiled the program with the code thats in the tutorial the program crashes ans when i check
where is went wrong it states that it went wrong with window.dll (for 1.6) and window-2.dll (for 2.0 RC)

i am using codeblocks 12.11

fixed it by recompiling sfml 2.0rc.

Pages: [1]