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 - Nicolas Léonard

Pages: [1]
1
General / Re: SFML Hello World project
« on: Today at 01:44:11 pm »
Thanks for the reply eXpl0it3r.

Regarding the first, I was relying on the error messages
Severity   Code   Description   Project   File   Line   Suppression State
Error   C1001   An internal error has occurred in the compiler.   Project1   c:\sfml\sfml-3.0.0-windows-vc16-32-bit\sfml-3.0.0\include\sfml\system\string.hpp   1   

1>Generating code
1>c:\sfml\sfml-3.0.0-windows-vc16-32-bit\sfml-3.0.0\include\sfml\system\string.hpp(102): fatal error C1001: An internal error has occurred in the compiler.
1>(compiler file 'd:\agent\_work\1\s\src\vctools\compiler\utc\src\p2\main.c', line 187)

But it does seem to move on to trying to link:
1>LINK : fatal error LNK1000: Internal error during IMAGE::BuildImage

Regarding the failure to run:
I had dowloaded both the Win32 and x64 versions of Visual C++ 16 (2019) from the SFML download page.  I am using the Community version of VS 2019 if this makes a difference.  I restarted Windows too, just in case.

I tripled-checked that SFML-3.0.0-windows-vc16-32-bit/SFML-3.0.0\include was added to the include paths for the win32 versions and SFML-3.0.0-windows-vc16-32-bit\SFML-3.0.0\lib to the lib paths; while for the x64 versions the include paths point to SFML-3.0.0-windows-vc16-64-bit/SFML-3.0.0\include and the lib paths to SFML-3.0.0-windows-vc16-64-bit\SFML-3.0.0\lib

For the Debug configurations, additional library inputs are sfml-graphics-d.lib;sfml-window-d.lib;sfml-system-d.lib while for the Release ones the libraries are sfml-graphics.lib;sfml-window.lib;sfml-system.lib.

I also copied all win32 dlls to the win32 executable folder and same for x64.

These steps seem pretty standard to me for using an SDK in a project, and they should work in 10 minutes top, yet...  no success whatsoever.  Something in my environment?

2
General / SFML Hello World project
« on: May 10, 2025, 01:41:36 am »
Sorry guys.  Total newbie to SFML here.

I am trying to test if I can use SFML for a personal project.  Well, I cannot even get a basic project to run.

Using Microsoft Visual Studio Community 2017    Version 15.9.21 (installed latest updates) for C++ under Windows 10 Pro.

Followed instructions from https://www.sfml-dev.org/tutorials/3.0/getting-started/visual-studio/ 
They seem pretty straightforward:
- downloaded the SFML 3.0.0 for VS 2017 Visual C++ 16 (2019) in both 32 and 64b
- created a new "Empty Project" in VS.
- set the C++ language to ISO C++ 17 Standard
- set the include path
- set the lib path
- added the following lib dependencies: sfml-graphics.lib, sfml-window.lib and sfml-system.lib (and the -d version for Debug configurations).
- copied the dlls to the executable folder.

I used exactly the suggested code (to draw a green circle) in a file named main.cpp added to the project.

First problem: the Release versions, in either Win32 or x64 platform, fail to compile causing a compiler crash.
1>------ Rebuild All started: Project: Project1, Configuration: Release x64 ------
1>main.cpp
1>c:\sfml\sfml-3.0.0-windows-vc16-64-bit\sfml-3.0.0\include\sfml\system\exception.hpp(42): warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'sf::Exception'

Ignoring this for now and moving on to running the Debug versions.  They compile and link but crash at runtime.

Exception thrown at 0x007818ED in Project1.exe: 0xC0000005: Access violation writing location 0x7C013190.
static inline const std::size_t InvalidPos{std::u32string::npos};      [file String.hpp l. 102]

Does anyone know where the problem could be, or if there is a ready-made SFML Hello World project file somewhere?

Pages: [1]
anything