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

Pages: [1]
1
General / pretty sure I set something up wrong.....again
« on: February 10, 2012, 12:25:03 am »
no actuailly I just double checked it..... but her solution did work after I re-did it all I didnt get the error.....so I still have no clue what caused it

2
General / pretty sure I set something up wrong.....again
« on: February 03, 2012, 02:10:59 am »
well it works when I click on the .exe without the error message and it runs just fine and after I click on the ok a bunch of times ( it pops up more then once ) when building and runing it in code:blocks it doesnt actuailly prevent me from doing anything -_- its just annoying

3
General / pretty sure I set something up wrong.....again
« on: February 03, 2012, 01:54:01 am »
alright -_- I have the program setup as a test to open and display a window nothing else and it does what its supposed to do but I have to rebuild it each time  

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

int main()
{
sf::RenderWindow Window(sf::VideoMode(800, 600, 32), "SFML Sample Application");

while (Window.IsOpen())
{
sf::Event Event;
while (Window.PollEvent(Event))
{
switch (Event.Type)
{
case sf::Event::Closed:
Window.Close();
break;
default:
break;
}
}

Window.Clear(sf::Color(0, 255, 255));
Window.Display();
}

return 0;
}


is the working code its just I get this weird error popup saying

scripts failed to load either because they dont exist or because they contain syntax errors:


c:\users\Tim.Tim-PC\Desktop\C++workspace\Test\\sfml-graphics-d ect ect

it has one for graphics as well and for system audio network  both with and without the -d I know I dont need all of those linked/included I just did it cuz this tutorial did it and I just wanted to follow it at first word for word
the file path is the same for each of the items listed been trying to find the answer all day

4
Window / odd error
« on: February 03, 2012, 12:33:23 am »
:shock:

5
Window / odd error
« on: February 01, 2012, 08:44:30 pm »
Ah I used them before without sfml and it worked fine now I'm trying to set up a user interface for a program I made that would automate clicks on the screen I know that code sample doesnt do much and yeah....no loop yet to keep it running I was gonna add that later after I got the errors worked out of what it actuailly did I also found out that sfml has some trouble with the graphics card that I'm using so I found a tutorial on youtube to build 2.0 with cmake .....anyway after I get sfml in a workable position on my computer I'll post the full source code in my thread =D

6
Window / odd error
« on: February 01, 2012, 07:39:37 pm »
yeah O.o thanks for the heads up I did a bit looking around that general area and found what I did wrong but a new problem showed up it compiled just fine with now errors but the window just showed up and did nothing I could re-size it and minimize it though when I tried to close it it froze for a moment before going away


not the window created by sfml but the standard cmd ish window that usuailly pops up

7
Window / odd error
« 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.........

 
Code: [Select]
#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

Pages: [1]
anything