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

Pages: [1]
1
General discussions / Error: LNK2019
« on: February 29, 2008, 12:15:33 pm »
Quote from: "Laurent"
To use the Window package, you must link to sfml-window in addition to sfml-system.

Thanks, that helped.
But now i get the error:
Quote
LINK : fatal error LNK1104: Filei "sfml-window.obj" can not be opened.


edit:
And when i, instead of sfml-window, write sfml-window.lib i get this :shock:
Quote
LINK : warning LNK4098: Standardlibrary "MSVCRT" is in conflict with other libraries; /NODEFAULTLIB:library use.
sfml-window.lib(Window.obj) : error LNK2019:""public: void __thiscall sf::Clock::Reset(void)" (?Reset@Clock@sf@@QAEXXZ)" in function ""public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ)".
sfml-window.lib(Window.obj) : error LNK2019:""void __cdecl sf::Sleep(float)" (?Sleep@sf@@YAXM@Z)" in function ""public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ)".
sfml-window.lib(Window.obj) : error LNK2019:""public: float __thiscall sf::Clock::GetElapsedTime(void)const " (?GetElapsedTime@Clock@sf@@QBEMXZ)" in function ""public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ)".
sfml-window.lib(Window.obj) : error LNK2019:""public: __thiscall sf::Clock::Clock(void)" (??0Clock@sf@@QAE@XZ)" in function ""public: __thiscall sf::Window::Window(void)" (??0Window@sf@@QAE@XZ)".
sfml-window.lib(VideoModeSupport.obj) : error LNK2019: "__imp__EnumDisplaySettingsA@12" in function ""public: static class sf::VideoMode __cdecl sf::priv::VideoModeSupport::GetDesktopVideoMode(void)" (?GetDesktopVideoMode@VideoModeSupport@priv@sf@@SA?AVVideoMode@3@XZ)".
sfml-window.lib(WindowImplWin32.obj) : error LNK2019: "__imp__SwapBuffers@4" in function ""private: virtual void __thiscall sf::priv::WindowImplWin32::Display(void)" (?Display@WindowImplWin32@priv@sf@@EAEXXZ)".
]

2
General discussions / Error: LNK2019
« on: February 28, 2008, 10:56:09 pm »
Hi,
I am really new to C++, so i hope you can help me with my problem.
I tried the tutorial and at beginning all worked well.
This worked well:
Code: [Select]
#include <SFML/System.hpp>
#include <iostream>

int main()
{
    sf::Clock Clock;
    while (Clock.GetElapsedTime() < 5.f)
    {
        std::cout << Clock.GetElapsedTime() << std::endl;
        sf::Sleep(0.5f);
    }

    return 0;
}

After that i tried this one:
Code: [Select]
include <SFML/Window.hpp>
#include <iostream>

int main()
{
    sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
    return 0;
}

But my IDE said:
Quote
Blub.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: virtual __thiscall sf::Window::~Window(void)" (??1Window@sf@@UAE@XZ)" in Funktion "_main".
Blub.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall sf::Window::Window(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,int)" (??0Window@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KH@Z)" in Funktion "_main".
Blub.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (??0VideoMode@sf@@QAE@III@Z)" in Funktion "_main".

And i dont know what this should be :shock:

Sorry for my english, it's not my native language.

Pages: [1]
anything