Hi,
I'm really interested in SFML but I've been having some problems getting some of the tutorials to work. I'm using Visual Studio 2005 Professional. For example with the font tutorial I've a few questions.
What libraries should I be specifying in the Linker/Input settings and in what order?
Does the arial.ttf file need to be in the same folder as the .exe?
I can get the program to compile ok but it won't run - see below.
--
1>------ Rebuild All started: Project: sftest2, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'sftest2', configuration 'Debug|Win32'
1>Compiling...
1>main.cpp
1>Compiling manifest to resources...
1>Linking...
1>sfml-graphics.lib(RenderWindow.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Generating code
1>Finished generating code
1>Embedding manifest...
1>sfml-graphics.lib(RenderWindow.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Generating code
1>Finished generating code
1>Build log was saved at "file://c:\Files\sftest2\sftest2\sftest2\Debug\BuildLog.htm"
1>sftest2 - 0 error(s), 4 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
Are these warnings anything to worry about?
If I try to run the compiled program without debugging I get a sftest.exe failed to run / encountered an error style Windows message.
If I run it in debug mode I get an unhandled exception and memcpy.asm appears along with call stack information.
Unhandled exception at 0x10232014 (msvcr80d.dll) in sftest2.exe: 0xC0000005: Access violation writing location 0xcccccc00.
Sorry for all the questions but I'm not that familiar with VS2005 either but I seem to be able to use it with SDL/OpenGL without any major problems and I'm keen to try SFML properly.
Thanks.