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

Pages: [1]
1
General / SFML2 and Visual Studio 2010
« on: April 24, 2010, 02:39:11 pm »
yes

2
General / SFML2 and Visual Studio 2010
« on: April 24, 2010, 02:26:04 pm »
only if i run the release exe. the debug exe runs as it should.

3
General / SFML2 and Visual Studio 2010
« on: April 24, 2010, 01:10:38 pm »
Yes, i did.

I compiled the samples without errors. When i used them they ran flawlessly too. So i copied the code from the sample window to my project and it worked  :shock: I deleted the opengl code and libs and the result was what i had previously, the window tutorial. It ran without a problem... AFAIK there was no change.

This was all in debug mode so i tried it with release mode. I got this error:

Quote
error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Window::Window(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::WindowSettings const &)" (__imp_??0Window@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KABUWindowSettings@1@@Z)


I don't think this is equal to the error that brought me here in the first place but i could be wrong.

And now i removed the comments to paste the code, built and it ran without a problem. i didn't change absolutely anything :?

Now it just crashes in release mode, and only if i start without debugging (CTRL + F5). I debug it and it runs perfectly. Only a few times in debug mode i can see it crashes in

Code: [Select]
sf::Window window(sf::VideoMode(640, 480, 32), "SFML Window");

This is getting too strange... These crashes appear almost randomly.
Any ideas?

4
General / SFML2 and Visual Studio 2010
« on: April 24, 2010, 10:44:14 am »
Sorry, I didn't explain myself clearly.

I have no problem compiling, just using what i compiled. I compile everything but the samples and got no errors.

When i try to build the first window tutorial i got an error like the one in this post :  http://www.sfml-dev.org/forum/viewtopic.php?t=2478
but instead of errors with string, i got errors with the functions of Window.hpp that i use.

5
General / SFML2 and Visual Studio 2010
« on: April 24, 2010, 12:08:07 am »
Not everything, i left the samples. Just rebuilt the sfml-*  packages.

I was just using Window.hpp so only got a linker error regarding

sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");

and App.Display(), IsOpened() and, Close().

If you need the exact message and code i will try to reproduce it.

Thanks.

6
General / SFML2 and Visual Studio 2010
« on: April 23, 2010, 09:13:24 pm »
I compiled the packages with vs2010 and got linker errors.
I changed the platform toolset from v100 to v90 and it ran without a problem.
If i change the platform toolset again it compiles but it gives me an acess violation exception in WindowImplWin32.cpp line 140:

Code: [Select]
int count = MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, title.c_str(), static_cast<int>(title.size()), wTitle, sizeof(wTitle) / sizeof(*wTitle));

My question is:
Is this a common problem? How do i use sfml2 or 1.6 with visual studio 2010?
Thanks

7
Window / Create SubWindows?
« on: November 20, 2009, 09:53:39 pm »
Thank you for the fast reply

8
Window / Create SubWindows?
« on: November 20, 2009, 07:37:30 pm »
Hi, i've searched in the tutorials, docs and forum and found nothing...

Is it possible to create sub windows like in glut:

Code: [Select]

glutCreateSubWindow(win, 0, 0, WINDOW_W/2, WINDOW_H);


Thanks

Pages: [1]
anything