Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: 0xc0000005  (Read 10114 times)

0 Members and 1 Guest are viewing this topic.

Stupidmonkey

  • Newbie
  • *
  • Posts: 13
    • View Profile
0xc0000005
« on: April 02, 2011, 09:45:09 am »
I have an ATI card and Windows 7 64 bit and using SFML 2

The code below appears to compile correctly in Netbeans. I have linked dynamically and added SFML_DYNAMIC. (and I have tried static libraries SFML_STATIC)

However, when I try to run the program from Netbeans, the program states run failed.

Wehn I try to run it from the directory, it asks for various sfml-graphics-2.dll etc so  I have place the libraries in the working directory including the arial.ttf, the program executes, but states the following:    

"The application was unable to start correctly (0xc0000005). Click OK to close the application."

and fails...

Can anyone help?

Code: [Select]
#include <SFML/Graphics.hpp>

 int main()
{
     // Create the main window
     sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");

     // Create a graphical text to display
     sf::Font font;
     if (!font.LoadFromFile("arial.ttf"))
         return EXIT_FAILURE;
     sf::Text text("Hello SFML", font, 50);

     // Start the game loop
     while (window.IsOpened())
     {
         // Process events
         sf::Event event;
         while (window.GetEvent(event))
         {
             // Close window : exit
             if (event.Type == sf::Event::Closed)
                 window.Close();
         }

         // Clear screen
         window.Clear();

         // Draw the string
         window.Draw(text);

         // Update the window
         window.Display();
     }

     return 0;
}

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
0xc0000005
« Reply #1 on: April 02, 2011, 09:50:19 am »
Which revision of SFML 2 do you use?
Laurent Gomila - SFML developer

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
0xc0000005
« Reply #2 on: April 02, 2011, 03:15:24 pm »
Could you dump the call-stack for us? IF you run it in debug you should be able to access some kind of call-stack and show that for Laurent. (That is if you are using the latest revision, if it's an older, upgrade)
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Stupidmonkey

  • Newbie
  • *
  • Posts: 13
    • View Profile
Move on to Static
« Reply #3 on: April 03, 2011, 12:18:04 am »
Downloaded SFML 2.0 Snapshot directly from link on http://www.sfml-dev.org/download.php yesterday.

http://www.sfml-dev.org/download.php

Tried to bring up the call stack in debug on that particular project, but even though it compiles it doesn't seem to get to main in debugger when it executes so I can't step through :( (no call stack)

Tried this project and linked statically with SFML_STATIC and -lsfml-graphics-s -lsfml-window-s -lsfml-system-s with the following and the first lot of code compiles and executes.

The second lot of code - well doesn't compile and produces errors.

Extreme apologies, but very long due to console output...

I will keep working on it...

First lot of code:

Code: [Select]
// link in order if needed -lsfml-graphics -lsfml-window -lsfml-system


#include <cstdlib>
#include <iostream>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>


using namespace std;

/*
 *
 */
int main(int argc, char *argv[]) {

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

    return 0;
}


Second lot of code:

#include <cstdlib>
#include <iostream>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>


Code: [Select]
using namespace std;

/*
 *
 */
int main(int argc, char *argv[]) {

     sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");

     // Create a graphical text to display
     sf::Font font;
     if (!font.LoadFromFile("arial.ttf"))
         return EXIT_FAILURE;
     sf::Text text("Hello SFML", font, 50);

     // Start the game loop
     while (window.IsOpened())
     {
         // Process events
         sf::Event event;
         while (window.GetEvent(event))
         {
             // Close window : exit
             if (event.Type == sf::Event::Closed)
                 window.Close();
         }

         // Clear screen
         window.Clear();

         // Draw the string
         window.Draw(text);

         // Update the window
         window.Display();
     }


"/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf
make[1]: Entering directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'
rm -f -r build/Debug
rm -f dist/Debug/MinGW-Windows/my_first_smfl.exe
make[1]: Leaving directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'

CLEAN SUCCESSFUL (total time: 635ms)
"/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'
"/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/my_first_smfl.exe
make[2]: Entering directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'
mkdir -p build/Debug/MinGW-Windows
rm -f build/Debug/MinGW-Windows/main.o.d
g++.exe    -c -g -DSFML_STATIC -I/D/MinGW/SFML-2.0/include -MMD -MP -MF build/Debug/MinGW-Windows/main.o.d -o build/Debug/MinGW-Windows/main.o main.cpp
mkdir -p dist/Debug/MinGW-Windows
g++.exe     -o dist/Debug/MinGW-Windows/my_first_smfl build/Debug/MinGW-Windows/main.o -L/D/MinGW/SFML-2.0/lib-static -lsfml-graphics-s -lsfml-system-s
Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking to __imp___ZTVN10__cxxabiv120__si_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__class_type_info by linking to __imp___ZTVN10__cxxabiv117__class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__vmi_class_type_info by linking to __imp___ZTVN10__cxxabiv121__vmi_class_type_infoE (auto-import)
Info: resolving std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSs4_Rep20_S_empty_rep_storageE (auto-import)
Info: resolving vtable for std::basic_ios<char, std::char_traits<char> > by linking to __imp___ZTVSt9basic_iosIcSt11char_traitsIcEE (auto-import)
Info: resolving VTT for std::basic_ifstream<char, std::char_traits<char> > by linking to __imp___ZTTSt14basic_ifstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_ifstream<char, std::char_traits<char> > by linking to __imp___ZTVSt14basic_ifstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_filebuf<char, std::char_traits<char> > by linking to __imp___ZTVSt13basic_filebufIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_streambuf<char, std::char_traits<char> > by linking to __imp___ZTVSt15basic_streambufIcSt11char_traitsIcEE (auto-import)
d:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
build/Debug/MinGW-Windows/main.o: In function `main':
C:\Users\Jason\Documents\NetBeansProjects\My First SMFL/main.cpp:18: undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
C:\Users\Jason\Documents\NetBeansProjects\My First SMFL/main.cpp:35: undefined reference to `sf::Window::Close()'
C:\Users\Jason\Documents\NetBeansProjects\My First SMFL/main.cpp:31: undefined reference to `sf::Window::GetEvent(sf::Event&)'
C:\Users\Jason\Documents\NetBeansProjects\My First SMFL/main.cpp:45: undefined reference to `sf::Window::Display()'
C:\Users\Jason\Documents\NetBeansProjects\My First SMFL/main.cpp:27: undefined reference to `sf::Window::IsOpened() const'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0xcc): undefined reference to `sf::Window::~Window()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x114): undefined reference to `sf::Window::~Window()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x12c): undefined reference to `sf::Window::~Window()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x156): undefined reference to `sf::Window::Window()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x185): undefined reference to `sf::Window::~Window()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x1a4): undefined reference to `sf::Window::Window()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x1f0): undefined reference to `sf::Window::Create(sf::VideoMode, std::string const&, unsigned long, sf::ContextSettings const&)'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x202): undefined reference to `sf::Window::~Window()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x22f): undefined reference to `sf::Window::Window()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x263): undefined reference to `sf::Window::Create(HWND__*, sf::ContextSettings const&)'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x274): undefined reference to `sf::Window::~Window()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x48): undefined reference to `sf::Window::GetHeight() const'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x60): undefined reference to `sf::Window::GetWidth() const'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x7f): undefined reference to `sf::Window::SetActive(bool) const'
Info: resolving std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSbIwSt11char_traitsIwESaIwEE4_Rep20_S_empty_rep_storageE (auto-import)
Info: resolving vtable for std::basic_ostream<char, std::char_traits<char> > by linking to __imp___ZTVSo (auto-import)
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0xc1): undefined reference to `sf::Window::~Window()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x47): undefined reference to `sf::GlResource::~GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0xaf): undefined reference to `sf::GlResource::~GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp:(.text+0x2b): undefined reference to `sf::GlResource::~GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0xe): undefined reference to `sf::GlResource::GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x11e): undefined reference to `glDisable@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x12b): undefined reference to `glDisable@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x138): undefined reference to `glEnable@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x145): undefined reference to `glEnable@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x15a): undefined reference to `glAlphaFunc@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x169): undefined reference to `glMatrixMode@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x16f): undefined reference to `glLoadIdentity@0'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x17b): undefined reference to `glMatrixMode@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x181): undefined reference to `glLoadIdentity@0'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x1b6): undefined reference to `glPushAttrib@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x1c3): undefined reference to `glMatrixMode@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x1c9): undefined reference to `glPushMatrix@0'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x1d5): undefined reference to `glMatrixMode@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x1e7): undefined reference to `glPopAttrib@0'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x1f3): undefined reference to `glMatrixMode@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x1f9): undefined reference to `glPopMatrix@0'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x205): undefined reference to `glMatrixMode@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x25d): undefined reference to `glClearColor@16'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x26c): undefined reference to `glClear@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x40a): undefined reference to `glMatrixMode@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x416): undefined reference to `glLoadMatrixf@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x514): undefined reference to `glViewport@16'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x58f): undefined reference to `glEnable@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x5ec): undefined reference to `glBlendFunc@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x624): undefined reference to `glDisable@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x63c): undefined reference to `glBlendFunc@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x658): undefined reference to `glBlendFunc@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x6e4): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x790): undefined reference to `glBegin@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x7a0): undefined reference to `glBegin@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x7b0): undefined reference to `glBegin@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x7c4): undefined reference to `glBegin@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x82c): undefined reference to `glColor4f@16'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x83d): undefined reference to `glTexCoord2f@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x852): undefined reference to `glVertex2f@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x8b0): undefined reference to `glColor4f@16'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x8c5): undefined reference to `glTexCoord2f@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x8da): undefined reference to `glVertex2f@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x96f): undefined reference to `glColor4f@16'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x980): undefined reference to `glTexCoord2f@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x995): undefined reference to `glVertex2f@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0xa2b): undefined reference to `glColor4f@16'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0xa40): undefined reference to `glTexCoord2f@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0xa55): undefined reference to `glVertex2f@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0xac4): undefined reference to `glColor4f@16'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0xad9): undefined reference to `glTexCoord2f@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0xaee): undefined reference to `glVertex2f@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x1dc): undefined reference to `glPushMatrix@0'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x20c): undefined reference to `glPopMatrix@0'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp:(.text+0x7d4): undefined reference to `glEnd@0'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x22): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x35): undefined reference to `glGetIntegerv@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x4b): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x94): undefined reference to `glTexSubImage2D@36'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xaa): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x109): undefined reference to `glGetIntegerv@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x11f): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x165): undefined reference to `glTexSubImage2D@36'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x17b): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x19d): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x1b0): undefined reference to `glGetIntegerv@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x1c6): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x212): undefined reference to `glTexSubImage2D@36'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x22c): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x264): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x277): undefined reference to `glGetIntegerv@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x28d): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x2d9): undefined reference to `glTexSubImage2D@36'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x2f3): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x30d): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x349): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x35c): undefined reference to `glGetIntegerv@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x372): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x398): undefined reference to `glTexParameteri@12'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x3be): undefined reference to `glTexParameteri@12'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x3d4): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x4e3): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x4f6): undefined reference to `glGetIntegerv@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x50f): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x56f): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x5a9): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x5e1): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x5f4): undefined reference to `glGetIntegerv@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x760): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x781): undefined reference to `glGetIntegerv@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x79a): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x7ea): undefined reference to `glTexImage2D@36'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x809): undefined reference to `glTexParameteri@12'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x828): undefined reference to `glTexParameteri@12'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x851): undefined reference to `glTexParameteri@12'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x87a): undefined reference to `glTexParameteri@12'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x890): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x8d7): undefined reference to `glGenTextures@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x996): undefined reference to `sf::Window::SetActive(bool) const'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x9ce): undefined reference to `glGetIntegerv@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x9e7): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xa2d): undefined reference to `glCopyTexSubImage2D@32'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xa43): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xab8): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xacb): undefined reference to `glGetIntegerv@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xae1): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xb2d): undefined reference to `glTexSubImage2D@36'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xb47): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xb84): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xb97): undefined reference to `glGetIntegerv@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xbad): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xbf9): undefined reference to `glTexSubImage2D@36'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xc13): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xdda): undefined reference to `sf::GlResource::GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xe67): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xe80): undefined reference to `glDeleteTextures@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xe9a): undefined reference to `sf::GlResource::~GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xeef): undefined reference to `sf::GlResource::~GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xfe5): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0xff8): undefined reference to `glGetIntegerv@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x1082): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x10b0): undefined reference to `glGetTexImage@20'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x111f): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x116d): undefined reference to `glBindTexture@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x119b): undefined reference to `glGetTexImage@20'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x16c2): undefined reference to `sf::GlResource::GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x1764): undefined reference to `sf::GlResource::~GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x182f): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x1848): undefined reference to `glDeleteTextures@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x1862): undefined reference to `sf::GlResource::~GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Image.cpp.obj):Image.cpp:(.text+0x18ba): undefined reference to `sf::GlResource::~GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x17b): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x257): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x26b): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x28a): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x2a4): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x2be): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x2d8): more undefined references to `wglGetProcAddress@4' follow
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x7bfa): undefined reference to `wglGetCurrentDC@0'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x7d48): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x7d85): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x7d99): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x7dba): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x7dd4): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x7e16): more undefined references to `wglGetProcAddress@4' follow
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xcd29): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xcdc8): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xcddc): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xcdfe): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xce1b): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xced0): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xcf5c): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xd0e2): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xd10c): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xd27c): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xd308): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xd3fc): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xd588): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xd660): more undefined references to `glGetString@4' follow
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xd758): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xd76c): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xd7c4): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xd7d8): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xd7fa): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xd817): more undefined references to `wglGetProcAddress@4' follow
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xed30): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xee08): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xeee0): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xef88): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf07c): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf1ea): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf1fe): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf220): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf258): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf32e): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf358): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf430): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf4d8): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf5b0): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf720): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf7ac): more undefined references to `glGetString@4' follow
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf882): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf896): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf8d0): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xf95c): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xfb40): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xfc18): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xfd0c): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xfd98): more undefined references to `glGetString@4' follow
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xfeac): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xfec0): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xfee2): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xfeff): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xff34): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xffbc): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0xffd0): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x10008): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x100b0): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x1013c): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x101c8): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x10250): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x1027c): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x10324): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x103b0): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x1043c): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x104c8): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x10554): more undefined references to `glGetString@4' follow
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x116c2): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x116d6): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x11710): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x11966): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x1197a): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x119b4): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x11a3c): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x11a50): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x11a88): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x11c14): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x11cea): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x11cfe): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x11d38): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x11dc4): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x11e50): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x11f28): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x11fb4): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x12040): more undefined references to `glGetString@4' follow
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x123d5): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x123e9): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x124c4): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x12790): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x12900): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x129d8): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x12a64): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x12b3c): more undefined references to `glGetString@4' follow
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x12d82): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x12d96): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x12dd0): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x12ea6): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x12eba): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x12ef4): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x12fcc): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x130a2): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x130b6): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x130f0): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x131c8): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13250): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13264): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x1329c): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13324): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13338): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13370): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x133fc): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13488): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13510): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13524): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x1355c): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x135e8): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13674): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x1371c): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x137a8): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13834): more undefined references to `glGetString@4' follow
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13aac): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13ad8): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13b64): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13bec): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13c18): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13cc0): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13d48): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13d74): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x13e00): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x1446c): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x14820): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x148f6): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x14920): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x149f8): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x14ace): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x14af8): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x14b70): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x14be8): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x14da4): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x14e17): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x14e2b): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x14e4d): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x14e6a): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x14ea0): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x14f76): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x14fa0): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x15018): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x15090): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x15108): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x15180): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x153a8): more undefined references to `glGetString@4' follow
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x15ae7): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x15b14): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x15c60): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x15d40): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x15e08): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x15ecb): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x15ef8): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x15fc0): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x16050): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x161b4): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x1622c): undefined reference to `glGetString@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x16378): more undefined references to `glGetString@4' follow
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(glew.o):glew.c:(.text+0x1643b): undefined reference to `wglGetProcAddress@4'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0xf): undefined reference to `sf::GlResource::GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0x6d): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0x18d): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0x2b5): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0x3e5): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0x524): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0x67d): more undefined references to `sf::GlResource::EnsureGlContext()' follow
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0x1394): undefined reference to `sf::GlResource::~GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0x13f7): undefined reference to `sf::GlResource::~GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0x1417): undefined reference to `sf::GlResource::GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0x14d9): undefined reference to `sf::GlResource::~GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0x1549): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0x157f): undefined reference to `sf::GlResource::~GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0x15e8): undefined reference to `sf::GlResource::~GlResource()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0x1629): undefined reference to `sf::GlResource::EnsureGlContext()'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp:(.text+0x1690): undefined reference to `glGetIntegerv@8'
d:/MinGW/SFML-2.0/lib-static/libsfml-graphics-s.a(GLCheck.cpp.obj):GLCheck.cpp:(.text+0xd): undefined reference to `glGetError@0Info: resolving typeinfo for std::basic_streambuf<char, std::char_traits<char> > by linking to __imp___ZTISt15basic_streambufIcSt11char_traitsIcEE (auto-import)
make[2]: Leaving directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'
'
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/MinGW-Windows/my_first_smfl.exe] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
make[1]: Leaving directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'

BUILD FAILED (exit value 2, total time: 1s)

Stupidmonkey

  • Newbie
  • *
  • Posts: 13
    • View Profile
0xc0000005
« Reply #4 on: April 03, 2011, 12:48:05 am »
BLAH foolish....

Didn't link lsfml-graphics-s correctly and lsfml-window-s at all ... have now.

Now compiler links -lsfml-graphics-s -lsfml-window-s -lsfml-system-s with SFML_STATIC

Code that access system works.

Code: [Select]
//    sf::Clock Clock;
//    while (Clock.GetElapsedTime() < 5.f)
//    {
//        std::cout << Clock.GetElapsedTime() << std::endl;
//        sf::Sleep(0.5f);
//    }


Code that tries to access graphics does not.

Everything compiles with code below and I have included console output, but again same issue occurs with original post.

No call stack info again and same 0xc0000005 error if executed from directory.

Code: [Select]

#include <cstdlib>
#include <iostream>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>

using namespace std;

int main(int argc, char *argv[]) {

     sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");

     // Create a graphical text to display
     sf::Font font;
     if (!font.LoadFromFile("arial.ttf"))
         return EXIT_FAILURE;
     sf::Text text("Hello SFML", font, 50);

     // Start the game loop
     while (window.IsOpened())
     {
         // Process events
         sf::Event event;
         while (window.GetEvent(event))
         {
             // Close window : exit
             if (event.Type == sf::Event::Closed)
                 window.Close();
         }

         // Clear screen
         window.Clear();

         // Draw the string
         window.Draw(text);

         // Update the window
         window.Display();
     }

    return 0;
}




Console output:

"/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf
make[1]: Entering directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'
rm -f -r build/Debug
rm -f dist/Debug/MinGW-Windows/my_first_smfl.exe
make[1]: Leaving directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'

CLEAN SUCCESSFUL (total time: 864ms)
"/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'
"/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/my_first_smfl.exe
make[2]: Entering directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'
mkdir -p build/Debug/MinGW-Windows
rm -f build/Debug/MinGW-Windows/main.o.d
g++.exe    -c -g -DSFML_STATIC -I/D/MinGW/SFML-2.0/include -MMD -MP -MF build/Debug/MinGW-Windows/main.o.d -o build/Debug/MinGW-Windows/main.o main.cpp
mkdir -p dist/Debug/MinGW-Windows
g++.exe     -o dist/Debug/MinGW-Windows/my_first_smfl build/Debug/MinGW-Windows/main.o -L/D/MinGW/SFML-2.0/lib-static -lsfml-graphics-s -lsfml-window-s -lsfml-system-s
Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking to __imp___ZTVN10__cxxabiv120__si_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__class_type_info by linking to __imp___ZTVN10__cxxabiv117__class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__vmi_class_type_info by linking to __imp___ZTVN10__cxxabiv121__vmi_class_type_infoE (auto-import)
Info: resolving std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSs4_Rep20_S_empty_rep_storageE (auto-import)
Info: resolving vtable for std::basic_ios<char, std::char_traits<char> > by linking to __imp___ZTVSt9basic_iosIcSt11char_traitsIcEE (auto-import)
Info: resolving VTT for std::basic_ifstream<char, std::char_traits<char> > by linking to __imp___ZTTSt14basic_ifstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_ifstream<char, std::char_traits<char> > by linking to __imp___ZTVSt14basic_ifstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_filebuf<char, std::char_traits<char> > by linking to __imp___ZTVSt13basic_filebufIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_streambuf<char, std::char_traits<char> > by linking to __imp___ZTVSt15basic_streambufIcSt11char_traitsIcEE (auto-import)
Info: resolving std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSbIwSt11char_traitsIwESaIwEE4_Rep20_S_empty_rep_storageE (auto-import)
Info: resolving vtable for std::basic_ostream<char, std::char_traits<char> > by linking to __imp___ZTVSo (auto-import)
d:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
Info: resolving typeinfo for std::basic_streambuf<char, std::char_traits<char> > by linking to __imp___ZTISt15basic_streambufIcSt11char_traitsIcEE (auto-import)
make[2]: Leaving directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'
make[1]: Leaving directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'

BUILD SUCCESSFUL (total time: 3s)

Stupidmonkey

  • Newbie
  • *
  • Posts: 13
    • View Profile
0xc0000005
« Reply #5 on: April 03, 2011, 01:19:22 am »
Removed iostream and cstdlib... used cmake on latest file: LaurentGomila-SFML-d53750f

Cmake produced following:

Not sure if the above is an issue or if standard when using cmake.

Sorry for such long posts

[ 90%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundBuffer.
cpp.obj
[ 92%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundBufferR
ecorder.cpp.obj
[ 93%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFile.cp
p.obj
[ 95%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundRecorde
r.cpp.obj
[ 96%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundSource.
cpp.obj
[ 98%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundStream.
cpp.obj
Linking CXX static library ..\..\..\lib\libsfml-audio-s.a
[ 98%] Built target sfml-audio
Scanning dependencies of target sfml-main
[100%] Building CXX object src/SFML/Main/CMakeFiles/sfml-main.dir/SFML_Main.cpp.
obj
Linking CXX static library ..\..\..\lib\libsfml-main.a
[100%] Built target sfml-main

C:\Users\Jason\Desktop\sfml2-static>mingw32-make
[ 20%] Built target sfml-system
[ 36%] Built target sfml-window
[ 52%] Built target sfml-network
[ 81%] Built target sfml-graphics
[ 98%] Built target sfml-audio
[100%] Built target sfml-main

C:\Users\Jason\Desktop\sfml2-static>mingw32-make
Scanning dependencies of target sfml-system
[  1%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.
obj
[  3%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Err.cpp.ob
j
[  4%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Lock.cpp.o
bj
[  6%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Mutex.cpp.
obj
[  7%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Randomizer
.cpp.obj
[  9%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Sleep.cpp.
obj
[ 10%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/String.cpp
.obj
[ 12%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Thread.cpp
.obj
[ 13%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/ThreadLoca
l.cpp.obj
[ 15%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/Mute
xImpl.cpp.obj
[ 16%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/Plat
form.cpp.obj
[ 18%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/Thre
adImpl.cpp.obj
[ 20%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/Thre
adLocalImpl.cpp.obj
Linking CXX shared library ..\..\..\lib\sfml-system-2.dll
Info: resolving vtable for std::basic_ostream<char, std::char_traits<char> > by
linking to __imp___ZTVSo (auto-import)
Info: resolving vtable for std::basic_ios<char, std::char_traits<char> > by link
ing to __imp___ZTVSt9basic_iosIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_streambuf<char, std::char_traits<char> > b
y linking to __imp___ZTVSt15basic_streambufIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking to __imp_
__ZTVN10__cxxabiv120__si_class_type_infoE (auto-import)
Info: resolving typeinfo for std::basic_streambuf<char, std::char_traits<char> >
 by linking to __imp___ZTISt15basic_streambufIcSt11char_traitsIcEE (auto-import)

Info: resolving std::basic_string<char, std::char_traits<char>, std::allocator<c
har> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSs4_Rep20_S_empty_rep
_storageE (auto-import)
Info: resolving std::basic_string<wchar_t, std::char_traits<wchar_t>, std::alloc
ator<wchar_t> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSbIwSt11char
_traitsIwESaIwEE4_Rep20_S_empty_rep_storageE (auto-import)
Creating library file: ..\..\..\lib\libsfml-system.a
d:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: a
uto-importing has been activated without --enable-auto-import specified on the c
ommand line.
This should work unless it involves constant data structures referencing symbols
 from auto-imported DLLs.
[ 20%] Built target sfml-system
Scanning dependencies of target sfml-window
[ 21%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Context.cp
p.obj
[ 23%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.
cpp.obj
[ 24%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlResource
.cpp.obj
[ 26%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Input.cpp.
obj
[ 27%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/VideoMode.
cpp.obj
[ 29%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Window.cpp
.obj
[ 30%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/WindowImpl
.cpp.obj
[ 32%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Win32/WglC
ontext.cpp.obj
[ 33%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Win32/Joys
tick.cpp.obj
[ 35%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Win32/Vide
oModeImpl.cpp.obj
[ 36%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Win32/Wind
owImplWin32.cpp.obj
Linking CXX shared library ..\..\..\lib\sfml-window-2.dll
Info: resolving vtable for __cxxabiv1::__vmi_class_type_info by linking to __imp
___ZTVN10__cxxabiv121__vmi_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__class_type_info by linking to __imp___Z
TVN10__cxxabiv117__class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking to __imp_
__ZTVN10__cxxabiv120__si_class_type_infoE (auto-import)
Creating library file: ..\..\..\lib\libsfml-window.a
d:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: a
uto-importing has been activated without --enable-auto-import specified on the c
ommand line.
This should work unless it involves constant data structures referencing symbols
 from auto-imported DLLs.
[ 36%] Built target sfml-window
Scanning dependencies of target sfml-network
[ 38%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Ftp.cpp.
obj
[ 40%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Http.cpp
.obj
[ 41%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/IpAddres
s.cpp.obj
[ 43%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Packet.c
pp.obj
[ 44%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Socket.c
pp.obj
[ 46%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/SocketSe
lector.cpp.obj
[ 47%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/TcpListe
ner.cpp.obj
[ 49%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/TcpSocke
t.cpp.obj
[ 50%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/UdpSocke
t.cpp.obj
[ 52%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Win32/So
cketImpl.cpp.obj
Linking CXX shared library ..\..\..\lib\sfml-network-2.dll
Info: resolving std::basic_string<char, std::char_traits<char>, std::allocator<c
har> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSs4_Rep20_S_empty_rep
_storageE (auto-import)
Info: resolving vtable for std::basic_stringbuf<char, std::char_traits<char>, st
d::allocator<char> > by linking to __imp___ZTVSt15basic_stringbufIcSt11char_trai
tsIcESaIcEE (auto-import)
Info: resolving vtable for std::basic_streambuf<char, std::char_traits<char> > b
y linking to __imp___ZTVSt15basic_streambufIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_ios<char, std::char_traits<char> > by link
ing to __imp___ZTVSt9basic_iosIcSt11char_traitsIcEE (auto-import)
Info: resolving VTT for std::basic_istringstream<char, std::char_traits<char>, s
td::allocator<char> > by linking to __imp___ZTTSt19basic_istringstreamIcSt11char
_traitsIcESaIcEE (auto-import)
Info: resolving vtable for std::basic_istringstream<char, std::char_traits<char>
, std::allocator<char> > by linking to __imp___ZTVSt19basic_istringstreamIcSt11c
har_traitsIcESaIcEE (auto-import)
Info: resolving VTT for std::basic_ostringstream<char, std::char_traits<char>, s
td::allocator<char> > by linking to __imp___ZTTSt19basic_ostringstreamIcSt11char
_traitsIcESaIcEE (auto-import)
Info: resolving vtable for std::basic_ostringstream<char, std::char_traits<char>
, std::allocator<char> > by linking to __imp___ZTVSt19basic_ostringstreamIcSt11c
har_traitsIcESaIcEE (auto-import)
Info: resolving VTT for std::basic_ifstream<char, std::char_traits<char> > by li
nking to __imp___ZTTSt14basic_ifstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_ifstream<char, std::char_traits<char> > by
 linking to __imp___ZTVSt14basic_ifstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_filebuf<char, std::char_traits<char> > by
linking to __imp___ZTVSt13basic_filebufIcSt11char_traitsIcEE (auto-import)
Info: resolving VTT for std::basic_ofstream<char, std::char_traits<char> > by li
nking to __imp___ZTTSt14basic_ofstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_ofstream<char, std::char_traits<char> > by
 linking to __imp___ZTVSt14basic_ofstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking to __imp_
__ZTVN10__cxxabiv120__si_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__vmi_class_type_info by linking to __imp
___ZTVN10__cxxabiv121__vmi_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__class_type_info by linking to __imp___Z
TVN10__cxxabiv117__class_type_infoE (auto-import)
Info: resolving std::basic_string<wchar_t, std::char_traits<wchar_t>, std::alloc
ator<wchar_t> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSbIwSt11char
_traitsIwESaIwEE4_Rep20_S_empty_rep_storageE (auto-import)
Creating library file: ..\..\..\lib\libsfml-network.a
d:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: a
uto-importing has been activated without --enable-auto-import specified on the c
ommand line.
This should work unless it involves constant data structures referencing symbols
 from auto-imported DLLs.
[ 52%] Built target sfml-network
Scanning dependencies of target sfml-graphics
[ 53%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Color.
cpp.obj
[ 55%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Drawab
le.cpp.obj
[ 56%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Font.c
pp.obj
[ 58%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/GLChec
k.cpp.obj
[ 60%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Image.
cpp.obj
[ 61%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/ImageL
oader.cpp.obj
[ 63%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Matrix
3.cpp.obj
[ 64%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Render
er.cpp.obj
[ 66%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Render
Image.cpp.obj
[ 67%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Render
ImageImpl.cpp.obj
[ 69%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Render
ImageImplFBO.cpp.obj
[ 70%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Render
Target.cpp.obj
[ 72%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Render
Window.cpp.obj
[ 73%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Shader
.cpp.obj
[ 75%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Shape.
cpp.obj
[ 76%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Sprite
.cpp.obj
[ 78%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Text.c
pp.obj
[ 80%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/View.c
pp.obj
[ 81%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Win32/
RenderImageImplPBuffer.cpp.obj
Linking CXX shared library ..\..\..\lib\sfml-graphics-2.dll
Info: resolving vtable for __cxxabiv1::__vmi_class_type_info by linking to __imp
___ZTVN10__cxxabiv121__vmi_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__class_type_info by linking to __imp___Z
TVN10__cxxabiv117__class_type_infoE (auto-import)
Info: resolving std::basic_string<char, std::char_traits<char>, std::allocator<c
har> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSs4_Rep20_S_empty_rep
_storageE (auto-import)
Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking to __imp_
__ZTVN10__cxxabiv120__si_class_type_infoE (auto-import)
Info: resolving vtable for std::basic_ios<char, std::char_traits<char> > by link
ing to __imp___ZTVSt9basic_iosIcSt11char_traitsIcEE (auto-import)
Info: resolving VTT for std::basic_ifstream<char, std::char_traits<char> > by li
nking to __imp___ZTTSt14basic_ifstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_ifstream<char, std::char_traits<char> > by
 linking to __imp___ZTVSt14basic_ifstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_filebuf<char, std::char_traits<char> > by
linking to __imp___ZTVSt13basic_filebufIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_streambuf<char, std::char_traits<char> > b
y linking to __imp___ZTVSt15basic_streambufIcSt11char_traitsIcEE (auto-import)
Creating library file: ..\..\..\lib\libsfml-graphics.a
d:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: a
uto-importing has been activated without --enable-auto-import specified on the c
ommand line.
This should work unless it involves constant data structures referencing symbols
 from auto-imported DLLs.
[ 81%] Built target sfml-graphics
Scanning dependencies of target sfml-audio
[ 83%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/ALCheck.cpp.
obj
[ 84%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/AudioDevice.
cpp.obj
[ 86%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/Listener.cpp
.obj
[ 87%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/Music.cpp.ob
j
[ 89%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/Sound.cpp.ob
j
[ 90%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundBuffer.
cpp.obj
[ 92%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundBufferR
ecorder.cpp.obj
[ 93%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFile.cp
p.obj
[ 95%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundRecorde
r.cpp.obj
[ 96%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundSource.
cpp.obj
[ 98%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundStream.
cpp.obj
Linking CXX shared library ..\..\..\lib\sfml-audio-2.dll
Info: resolving std::basic_string<char, std::char_traits<char>, std::allocator<c
har> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSs4_Rep20_S_empty_rep
_storageE (auto-import)
Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking to __imp_
__ZTVN10__cxxabiv120__si_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__class_type_info by linking to __imp___Z
TVN10__cxxabiv117__class_type_infoE (auto-import)
Creating library file: ..\..\..\lib\libsfml-audio.a
d:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: a
uto-importing has been activated without --enable-auto-import specified on the c
ommand line.
This should work unless it involves constant data structures referencing symbols
 from auto-imported DLLs.
[ 98%] Built target sfml-audio
Scanning dependencies of target sfml-main
[100%] Building CXX object src/SFML/Main/CMakeFiles/sfml-main.dir/SFML_Main.cpp.
obj
Linking CXX static library ..\..\..\lib\libsfml-main.a
[100%] Built target sfml-main

C:\Users\Jason\Desktop\sfml2-static>

Stupidmonkey

  • Newbie
  • *
  • Posts: 13
    • View Profile
0xc0000005
« Reply #6 on: April 03, 2011, 01:43:37 am »
This is my last post for a bit ...

One the project where I have linked statically - this is the error output to the console after I used cmake with SFML2 with no iostream or cstdlib.

Dynamic linking compiles with the below, but I again return back to my original post of the 0xc0000005 error when executed from the directory and console opens from Netbeans, but fails to execute.

No call stack info available.

Sorry again for the rambling - I don't know what to do. 1.6 SFML before ATI issue worked perfectly on same system.

STATIC LINK:

Code: [Select]
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>

using namespace std;

int main(int argc, char *argv[]) {

     sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");

     // Create a graphical text to display
     sf::Font font;
     if (!font.LoadFromFile("arial.ttf"))
         return EXIT_FAILURE;
     sf::Text text("Hello SFML", font, 50);

     // Start the game loop
     while (window.IsOpened())
     {
         // Process events
         sf::Event event;
         while (window.GetEvent(event))
         {
             // Close window : exit
             if (event.Type == sf::Event::Closed)
                 window.Close();
         }

         // Clear screen
         window.Clear();

         // Draw the string
         window.Draw(text);

         // Update the window
         window.Display();
     }

    return 0;
}



"/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf
make[1]: Entering directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'
rm -f -r build/Debug
rm -f dist/Debug/MinGW-Windows/my_first_smfl.exe
make[1]: Leaving directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'

CLEAN SUCCESSFUL (total time: 704ms)
"/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'
"/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/my_first_smfl.exe
make[2]: Entering directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'
mkdir -p build/Debug/MinGW-Windows
rm -f build/Debug/MinGW-Windows/main.o.d
g++.exe    -c -g -DSFML_STATIC -I/D/MinGW/SFML-2.0/include -MMD -MP -MF build/Debug/MinGW-Windows/main.o.d -o build/Debug/MinGW-Windows/main.o main.cpp
mkdir -p dist/Debug/MinGW-Windows
g++.exe     -o dist/Debug/MinGW-Windows/my_first_smfl build/Debug/MinGW-Windows/main.o -L/D/MinGW/SFML-2.0/lib-static -lsfml-graphics-s -lsfml-window-s -lsfml-system-s
Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking to __imp___ZTVN10__cxxabiv120__si_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__class_type_info by linking to __imp___ZTVN10__cxxabiv117__class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__vmi_class_type_info by linking to __imp___ZTVN10__cxxabiv121__vmi_class_type_infoE (auto-import)
Info: resolving std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSs4_Rep20_S_empty_rep_storageE (auto-import)
Info: resolving vtable for std::basic_ios<char, std::char_traits<char> > by linking to __imp___ZTVSt9basic_iosIcSt11char_traitsIcEE (auto-import)
Info: resolving VTT for std::basic_ifstream<char, std::char_traits<char> > by linking to __imp___ZTTSt14basic_ifstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_ifstream<char, std::char_traits<char> > by linking to __imp___ZTVSt14basic_ifstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_filebuf<char, std::char_traits<char> > by linking to __imp___ZTVSt13basic_filebufIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_streambuf<char, std::char_traits<char> > by linking to __imp___ZTVSt15basic_streambufIcSt11char_traitsIcEE (auto-import)
Info: resolving std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSbIwSt11char_traitsIwESaIwEE4_Rep20_S_empty_rep_storageE (auto-import)
Info: resolving vtable for std::basic_ostream<char, std::char_traits<char> > by linking to __imp___ZTVSo (auto-import)
d:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
Info: resolving typeinfo for std::basic_streambuf<char, std::char_traits<char> > by linking to __imp___ZTISt15basic_streambufIcSt11char_traitsIcEE (auto-import)
make[2]: Leaving directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'
make[1]: Leaving directory `/c/Users/Jason/Documents/NetBeansProjects/My First SMFL'

BUILD SUCCESSFUL (total time: 1s)

DYNAMIC LINK

Code: [Select]
#include <SFML/Graphics.hpp>

 int main(int argc, char *argv[])
{
     // Create the main window
     sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");

     // Create a graphical text to display
     sf::Font font;
     if (!font.LoadFromFile("arial.ttf"))
         return EXIT_FAILURE;
     sf::Text text("Hello SFML", font, 50);

     // Start the game loop
     while (window.IsOpened())
     {
         // Process events
         sf::Event event;
         while (window.GetEvent(event))
         {
             // Close window : exit
             if (event.Type == sf::Event::Closed)
                 window.Close();
         }

         // Clear screen
         window.Clear();

         // Draw the string
         window.Draw(text);

         // Update the window
         window.Display();
     }

     return 0;
}


Stupidmonkey

  • Newbie
  • *
  • Posts: 13
    • View Profile
0xc0000005
« Reply #7 on: April 06, 2011, 09:58:29 am »
Just an update...

Tried updating my ATI graphics driver to the latest still no luck... might try to compile in Code::Blocks and see if that will work.

Stupidmonkey

  • Newbie
  • *
  • Posts: 13
    • View Profile
0xc0000005
« Reply #8 on: April 06, 2011, 01:38:00 pm »
Not sure what to do...

Loaded Code:Blocks

Placed under Compiler Settings - #Defines

SFML_DYNAMIC

Placed under linker settings

-lsfml-graphics
-lsfml-window
-lsfml-system

Placed under Search Directories - Compiler

D:\MinGW\SFML-2.0\include

Placed under  Search Directories - Linker

D:\MinGW\SFML-2.0\lib

I'm not too sure what to do as I have tried under two compilers, but still end up with the 0xc0000005 error - I'm not pulling anyone's leg - I cannot get this to work - any help would be appreciated.


Code: [Select]
/*
 * File:   main.cpp
 * Author: Jason
 *
 * Created on 4 April 2011, 7:17 PM
 */

#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>

/*
 *
 */
int main(int argc, char** argv) {

     // Create the main window
     sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");

     // Create a graphical text to display
     // sf::Font font;
     // if (!font.LoadFromFile("arial.ttf"))
     //     return EXIT_FAILURE;
     // sf::Text text("Hello SFML", font, 50);

     // Start the game loop
     while (window.IsOpened())
     {
         // Process events
         sf::Event event;
         while (window.GetEvent(event))
         {
             // Close window : exit
             if (event.Type == sf::Event::Closed)
                 window.Close();
         }

         // Clear screen
         window.Clear();

         // Draw the string
         // window.Draw(text);

         // Update the window
         window.Display();
     }

     return 0;
}

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
0xc0000005
« Reply #9 on: April 06, 2011, 01:48:07 pm »
If you compile your app in debug mode, you must link to debug SFML libraries ("-d" suffix).

Also make sure that you used the same version of gcc to compile SFML and your project.
Laurent Gomila - SFML developer

Stupidmonkey

  • Newbie
  • *
  • Posts: 13
    • View Profile
0xc0000005
« Reply #10 on: April 07, 2011, 01:35:37 pm »
Thank you for your reply.

Out of some bizzare set of circumstances I managed to get SFML working in both Netbeans and Code::Blocks, but only by linking statically.

By trying a dynamically linked executable on a different computer I found that I was missing libstdc++-6.dll and libgcc_s_dw2-1.dll. After adding them to the directory on the other computer the 0xc0000005 error kept occurring.

Had one of those aha moments in regard to a few of the errors at compile were to do with std::blah blah and searched for libstdc++-6.dll via Google as I thought it might have to do with the std.

Found this site in which an individual advised that he thought there might be an issue with linking dynamically in Windows 7 with Mingw.

http://old.nabble.com/DLLs-dragging-in-LIBSTDC%2B%2B-6.DLL-and-LIBGCC_S_DW2-1.DLL--td30351366.html

Linked statically with -static-libgcc -static-libstdc++ as per the above advice of Chuck in the above site.

So the linked options appeared like this in Netbeans:

-static-libgcc -static-libstdc++ -lsfml-graphics-s -lsfml-window-s -lsfml-system-s

However, you do not need to static link -static-libgcc to make it work.

Netbeans Instructions:-

Under Project Properties:
Build -> C++ Compiler -> Include Directories -> Place your SFML /include directory here
Build ->  C++ Compiler -> Preprocessor Definitions -> Place SFML_STATIC (must do so)
Linker -> Additional Library Directories -> Place SFML /lib directory here
Linker -> Libraries -> Place static libraries here -static-libstdc++ -lsfml-graphics-s -lsfml-window-s -lsfml-system-s

Again you do not have to manually place /include and /lib if already included in Code Assistance options in Netbeans.

Code::Blocks Instructions:-

Follow the normal instructions on SFML site, but place -static-libstdc++ in Other Linker Options and SFML_STATIC in #defines.

I know this is not good advice, but Debug will work with libs that do not end in -d.

I know it is not ideal as I do not have the solution for dynamic linking, but the above will work and get past the 0xc0000005 error.

Random and lucky at the end of the day as my lack of knowledge in the matter is really poor.

Cheers,

Jason

System:
Windows 7 64bit
ATI HD 4870

 
Code: [Select]
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>

using namespace std;

int main(int argc, char *argv[]) {

     sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");
     window.SetFramerateLimit(5); // need to add this as no framerate causes noise from fan/hard disk.
     // Create a graphical text to display
     sf::Font font;
     if (!font.LoadFromFile("arial.ttf"))
         return EXIT_FAILURE;
     sf::Text text("Hello SFML", font, 50);

     // Start the game loop
     while (window.IsOpened())
     {
         // Process events
         sf::Event event;
         while (window.GetEvent(event))
         {
             // Close window : exit
             if (event.Type == sf::Event::Closed)
                 window.Close();
         }

         // Clear screen
         window.Clear();

         // Draw the string
         window.Draw(text);

         // Update the window
         window.Display();
     }

    return 0;
}