Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Entry Point Not Found  (Read 2301 times)

0 Members and 1 Guest are viewing this topic.

STG2005

  • Newbie
  • *
  • Posts: 1
    • View Profile
Entry Point Not Found
« on: July 07, 2024, 02:10:05 pm »
I've been trying for three days to set up SFML 2.6.1 in VSCode but every time that I try to launch the test program this error appears:

The procedure entry point _ZNSt15basica_streambuflcSt11char_traitslcEE7seekposESt4fposliESt12_los_Openmode could not be located in the dynamic link library C:\Users\{user}\sfml-system-2.dll.

Followed quite a few tutorials that use cmake or makefiles and still cannot manage to run the program. It compiles without any errors.

Working on Windows 11 and tried both mingw32 and mingw64 with UCRT and MSVCRT.
This is my settings.json file:
 {
    "workbench.settings.applyToAllProfiles": [

    ],
    "C_Cpp.default.compilerPath": "C:/MinGW/mingw32/bin/g++.exe",
    "C_Cpp.default.includePath": ["${workspaceFolder}/src/include"]
}

And the makefile the last makefile that I tried:all: compile link

compile:
   g++ -Isrc/include -c main.cpp

link:
   g++ main.o -o main -Lsrc/lib -lsfml-graphics -lsfml-window -lsfml-system

I am quite new into programming and any help would be appreciated.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Entry Point Not Found
« Reply #1 on: July 08, 2024, 08:09:03 am »
You should really pick one approach and work on it until you get it working and understand why it didn't work originally. Jumping from one configuration to the next at the first sight of failure, will leave you confused and you'll most likely directly walk into the same kind of issue.

I recommend to use the SFML CMake Template, which has instructions in the ReadMe.
If for whatever reason you want to stick to VS Code, then you'll need the CMake extension. So you can run in VS Code all the CMake: commands like CMake: Configure, CMake: Build, CMake: Debug.
I would recommend to use MSVC instead of MinGW. If you don't want VS, you can just installed it as Build Tools.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/