7
« on: February 01, 2012, 07:07:25 pm »
have no idea what this error means, I probably did something wrong while setting up sfml spent about 30 minutes searching for the answer, basically I want the program to open a window click on an area then click on a second area. Right now I cant even get it to open up the window.........
#include<iostream>
#include<windows.h>
#include<SFML/Window.hpp>
#include<SFML/Graphics.hpp>
using namespace std;
int main ()
{
sf::Window App (sf::VideoMode(800, 600 , 32), "SFML window");
cout << "Hi, now the mouse is on X = 450 and Y = 780 :)";
SetCursorPos(450, 780);
mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); // Left click
mouse_event(MOUSEEVENTF_RIGHTDOWN | MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0); // Right click
return 0;
}
Compiling: main.cpp
Linking console executable: bin\Debug\test.exe
obj\Debug\main.o: In function `main':
C:/Users/Tim.Tim-PC/Desktop/testing stuff/test/main.cpp:12: undefined reference to `_imp___ZN2sf9VideoModeC1Ejjj'
C:/Users/Tim.Tim-PC/Desktop/testing stuff/test/main.cpp:12: undefined reference to `_imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKSsmRKNS_14WindowSettingsE'
C:/Users/Tim.Tim-PC/Desktop/testing stuff/test/main.cpp:12: undefined reference to `_imp___ZN2sf12RenderWindowD1Ev'
C:/Users/Tim.Tim-PC/Desktop/testing stuff/test/main.cpp:22: undefined reference to `_imp___ZN2sf12RenderWindowD1Ev'
C:/Users/Tim.Tim-PC/Desktop/testing stuff/test/main.cpp:22: undefined reference to `_imp___ZN2sf12RenderWindowD1Ev'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
5 errors, 0 warnings