Skip to content

Link error when compile #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kingty opened this issue Jun 2, 2023 · 0 comments
Open

Link error when compile #7

kingty opened this issue Jun 2, 2023 · 0 comments

Comments

@kingty
Copy link

kingty commented Jun 2, 2023

Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/sample_ImGui_Demo.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -O3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/sample_ImGui_Demo.dir/main.cpp.o -o sample_ImGui_Demo imgui_application_build_for_sample_ImGui_Demo/libimgui_application.a -L/usr/local/Cellar/sdl2/2.0.14_1/lib -lSDL2 -lGL -ldl
ld: library not found for -lGL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [sample_ImGui_Demo] Error 1
make[1]: *** [CMakeFiles/sample_ImGui_Demo.dir/all] Error 2
make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant