SFML community forums
Help => General => Topic started by: Xiaodragon on January 12, 2019, 02:50:41 pm
-
I keep getting (0xC0000135) as an error when I try to run the program in Clion.
this is what i have as my cmakelists.txt
cmake_minimum_required(VERSION 3.6)
project(SFMLTest)
set(SFML_DIR "C:/Users/Josh/libraries/SFML/lib/cmake/SFML")
find_package(SFML 2.5.1 COMPONENTS graphics)
add_executable(SFMLTest main.cpp)
target_link_libraries(SFMLTest sfml-graphics sfml-audio)
-
Did you Google the error?
Afaik you didn't copy the needed SFML DLLs and it can't start your application without them. Launching the application through Explorer will tell you exactly what DLLs are missing.
-
I did google the erorr, and have also realised it might be a dll issue. But I did put the dll's in my project.
-
The DLLs need to be next to your executable and not next to your project.
-
Thanks for the reply. Did I do this correctly, I still get the issue.
-
No, not next to CLion's executable, but next to your compiled SFML executable ;)
-
I could not find the sfml executable, but I somehow actually got it working with it next to the clion executable. All i had to change was from debug to release. Thanks.