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

Pages: 1 [2]
16
General / Visual Studio 2010 Express Problems [SOLVED]
« on: June 30, 2011, 03:00:19 pm »
Damnit!  I had written True/False instead of TRUE/FALSE :(

Omg... Everything seems to have built fine, you are a god my friend, a GOD.

Now to go through your First SFML project tutorial!  :D

17
General / Visual Studio 2010 Express Problems [SOLVED]
« on: June 30, 2011, 12:59:23 pm »
Tried your tutorial, I get this error when i run the "cmake -G "NMake Makefiles" -D CMAKE_BUILD_TYPE=Release" etc code:

"CMake error: Could not create named generator Nmake Makefiles"

Any ideas?

18
General / Visual Studio 2010 Express Problems [SOLVED]
« on: June 30, 2011, 12:31:48 pm »
Quote from: "Xander314"
Quote
I thought I only needed to link graphics since that's the only one i'm using in ze code, am I wrong?

You only need to link what you're using. However, graphics functionality relies on window and system functionality (the <sfml/graphics.hpp> header includes <sfml/window.hpp> and <sfml/system.hpp> implicitly).

As for your crash, did you build the binaries yourself? (I'm guessing not, as you're using SFML 1.6). I suggest getting SFML 2.0 and building the binaries yourself. That will avoid any inconsistencies due to mismatched compiler versions. Building the binaries may seem daunting if you've not done that kind of thing before, but for me it solved a lot of other problems.

Laurent's Tutorial
If you want a complete step by step list of instructions, you could also try my tutorial.


Ohai Xander, I do seem to recall you being on the C++ Forums, no? ;)

Thanks for the links, I'll check this out!

19
General / Visual Studio 2010 Express Problems [SOLVED]
« on: June 29, 2011, 02:19:27 pm »
Aha... I thought I only needed to link graphics since that's the only one i'm using in ze code, am I wrong?

Anyway, a console window pops up and then the .exe just stops working (standard windows "has stopped working" popup).

20
General / Visual Studio 2010 Express Problems [SOLVED]
« on: June 29, 2011, 01:48:20 pm »
Hiya...

So, once again I've attempted to get SFML to work, with no real success.

I run this code:

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

int main()
{
    // Create the main rendering window
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");
   
    // Start game loop
    while (App.IsOpened())
    {
        // Process events
        sf::Event Event;
        while (App.GetEvent(Event))
        {
            // Close window : exit
            if (Event.Type == sf::Event::Closed)
                App.Close();
        }

        // Clear the screen (fill it with black color)
        App.Clear();

        // Display window contents on screen
        App.Display();
    }

    return EXIT_SUCCESS;
}


And get this in my output:
Code: [Select]
1>------ Build started: Project: SFMLFixThisShit, Configuration: Release Win32 ------
1>SFMLFixThisShit.obj : error LNK2001: unresolved external symbol "public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ)
1>SFMLFixThisShit.obj : error LNK2001: unresolved external symbol "public: bool __thiscall sf::Window::GetEvent(class sf::Event &)" (?GetEvent@Window@sf@@QAE_NAAVEvent@2@@Z)
1>SFMLFixThisShit.obj : error LNK2001: unresolved external symbol "public: bool __thiscall sf::Window::IsOpened(void)const " (?IsOpened@Window@sf@@QBE_NXZ)
1>SFMLFixThisShit.obj : error LNK2001: unresolved external symbol "public: void __thiscall sf::Window::Close(void)" (?Close@Window@sf@@QAEXXZ)
1>SFMLFixThisShit.obj : error LNK2001: unresolved external symbol "public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (??0VideoMode@sf@@QAE@III@Z)
1>C:\Users\Ante\Documents\Visual Studio 2010\Projects\SFMLFixThisShit\Release\SFMLFixThisShit.exe : fatal error LNK1120: 5 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


It's configured for release, I have Linker->Input = sfml-graphics.lib, in the VC++ Directories I have the Include folder and lib folder from the VC++ install directories added in, whereas the SFML files are.

What did I miss? I'm going crazy here.

21
General discussions / Microsoft Visual C++ 2010 Express problems.
« on: December 01, 2010, 02:03:51 pm »
Okay... I set them all to release-dll in the "SFML" project, saved all the project files... Umm, still aint working  :(

22
General discussions / Microsoft Visual C++ 2010 Express problems.
« on: December 01, 2010, 01:48:07 pm »
Through the configuration manager?

If so, i have 4 options, release-static, release-dll, debug-static and debug-dll.

23
General discussions / Microsoft Visual C++ 2010 Express problems.
« on: December 01, 2010, 12:51:08 pm »
Quote from: "Laurent"
Quote
It's still not working?

 What errors do you get, still the same?


Yes, the same.

Quote from: "Laurent"
Did you compile the release-dynamic configuration?


I wish I could answer that - Umm, I'm gonna have to go with "No" though  :o

24
General discussions / Microsoft Visual C++ 2010 Express problems.
« on: December 01, 2010, 12:21:24 pm »
Well, it says that it successfully converted the main/window and whatnot, so how come It's still not working?

25
General discussions / Microsoft Visual C++ 2010 Express problems.
« on: December 01, 2010, 11:59:00 am »
Ah, yes, which I was intending to ask about how to do...

Sorry if I'm comming out as a complete retard - I'm doing my best  :?


I followed the instructions on the bottom of the VC Getting Started tutorial, when I run the SFML.sln it just asks which program to open it with, I pick VC C++ Express 2010 (obviously) and then it starts "converting" the files, which it fails at with pretty much everything except for the sfml-main/window/graphics/audio/network etc.

I'm assuming this is not how it was meant to be played out, so what am I doing wrong?


Sincerely,

AngelHoof

26
General discussions / Microsoft Visual C++ 2010 Express problems.
« on: December 01, 2010, 08:35:10 am »
Oh crap, I'm embarassed now.

Sorry Laurent! I'm really bad with this kind of stuff, I realize that it was an unbelievably stupid miss  :oops:

I changed the #pragma to sfml-window-d (as the tutorial stated), and put the -d .dll's in my system32 folder... It compiles fines, fires the console but gives me this now;

"Unhandled exception at 0x76bbcdeb in GameRPG.exe: 0xC0000005: Access violation reading location 0xcc007265."


But... You say that I should use -s?

sfml-window-s.lib doesn't even let me compile :/

27
General discussions / Microsoft Visual C++ 2010 Express problems.
« on: December 01, 2010, 05:43:41 am »
Hi!

Firstly, sorry if I'm just being stupid - I've always wanted and tried to be a computer geek but sometimes I just think it may not be for me...


Anyway, my problem is this: When I build/compile (whichever is the proper word) the following code

Code: [Select]

#pragma comment (lib, "sfml-window.lib")
#include <SFML/Window.hpp>
#include <iostream>

#define width 800
#define length 600
#define depth 32


int main()
{
sf::Window MainWindow(sf::VideoMode(width, length, depth), "Tester");
bool running = false;
while (running);
{
MainWindow.Display();

}
return 0;
}


works fine - I had big problems with getting the libs and linkers and whatnot to work correctly, so I was pretty bummed to see that when I actually run this I get an error saying

"Run-Time check failure #2 - Stack around the variable "MainWindow" was corrupted."

If I hit the Continue button after this, I get another message telling me that the .exe has been "buffer overrun, corrupting the internal state of the program".


I could do the tutorials fine on Bloodshed Dev-Cpp, which leads me to believe that I've done something wrong, or have forgotten something.

Not being able to finish even the first tutorial makes me a sad panda, truly.


Thanks for any replies!

Sincerely,

AngelHoof

Pages: 1 [2]
anything