Reputation: 101
I'm trying to write simple OpenGL application, but I bumped into this strange problem. When I tries launch my app, it crashes with exit code -1073741515 (0xC0000135). I downloaded and unpacked all the libraries I needed into the win
folder. Here my CMakeLists:
cmake_minimum_required(VERSION 3.14)
project(test)
set(CMAKE_CXX_STANDARD 14)
add_subdirectory(win/glfw)
add_subdirectory(win/assimp)
add_definitions(-DGLEW_STATIC)
add_subdirectory(win/glew/build/cmake)
include_directories(win/glew/include)
include_directories(win/glfw/include)
include_directories("win/glm")
include_directories("win/assimp/include")
link_libraries(assimp glew glfw opengl32 pthread)
add_executable(test ...)
What am I doing wrong? I'm using CLion and Windows 10
Upvotes: 1
Views: 722
Reputation: 101
Instead of glew
I should use glew_s
target. So, link_libraries(assimp glew_s glfw opengl32 pthread)
solved my problem
Upvotes: 1