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

Pages: [1]
1
General / [C++] exception handling problem
« on: December 31, 2008, 02:40:28 pm »
sorry i saw other posts who were not sfml specific, so i asked my question here. Thank you very much for the answer!

2
General / Access Violation at Program Close
« on: December 31, 2008, 01:57:03 am »
Did you test running the same code with static libraries?

3
General / [C++] exception handling problem
« on: December 30, 2008, 04:20:32 pm »
I get a bad exit code on closure, but the catch-block didnt get executed on me or do i have to code myself the throwing of an exception?

im using gcc version 4.3.2 on mingw/msys

Code: [Select]
#include <iostream>
#include <stdexcept>
#include <vector>

using std::vector;
using std::cout;
using std::cerr;
using std::endl;
using std::out_of_range;

int main()
{
    vector<int> intVec;
    try {
        int integer = intVec[-1];
        cout << "This won't get executed :)" << endl;
    }
    catch(out_of_range &e)
    {
        cout << "This won't get executed too :( on my machine" << endl;
        cerr << e.what() << endl;
    }
    catch(...)
    {
        cerr << "unhandled exception" << endl;
    }
}

4
Graphics / svn: undefined reference to sf::RenderWindow::RenderWindow()
« on: December 30, 2008, 03:38:50 pm »
okay i solved the problem, if s.o. has the same problem, go install the stable 8.02 codeblocks, not the nightly build. Then just rebuild the SFML - libs  :D

5
Graphics / Failed to load image
« on: December 30, 2008, 02:07:19 am »
or try to load the image with the absolute path like Image.LoadFromFile("C:\myproject\sprite.png") then you can figure out, if the image-place is wrong

6
Graphics / svn: undefined reference to sf::RenderWindow::RenderWindow()
« on: December 29, 2008, 10:09:03 pm »
hi there comes another problem, when i try to build the program with the svn libraries i get:

Quote
build/Release/MinGW-Windows/main.o:main.cpp:(.text+0xab): undefined reference to `sf::RenderWindow::RenderWindow()'

build/Release/MinGW-Windows/main.o:main.cpp:(.text+0x2d1): undefined reference to `sf::RenderWindow::~RenderWindow()'


the linkorder of the library is " -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lsfml-main " i also tried changing the order but i can't get it working...
I think the problems lies on the sfml-graphics-s lib, i also tried recompiling from the svn sources but it still wont help

EDIT: i built the libraries with code::blocks before

7
Graphics / MinGW / MSYS Compiling problems with wchar_t in Font.hpp
« on: December 29, 2008, 07:25:10 pm »
okay thanks, the svn version works fine  :D

8
Graphics / MinGW / MSYS Compiling problems with wchar_t in Font.hpp
« on: December 29, 2008, 03:49:41 pm »
hi i have problems with compiling my sourcecode, which includes the graphics c++ header, the problem:

lib/SFML-1.3/include/SFML/Graphics/Font.hpp:113: error: using-declaration for non-member at class scope

lib/SFML-1.3/include/SFML/Graphics/Font.hpp:113: error: expected `;' before '<' token

In file included from lib/SFML-1.3/include/SFML/Graphics.hpp:36,

Code: [Select]
std::map<wchar_t, Character> myCharacters; ///< Rendering settings of each character

it sounds like the gcc compiler have problems with wchar_t but is there a workaround out yet?, i already researched a bit and i found out, that the wide-character parts of the GCC Standard C++ Library have not yet been fully ported to Windows ( http://www.mingw.org/wiki/FAQ )

Pages: [1]
anything