-
Notifications
You must be signed in to change notification settings - Fork 428
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
Problem Using g++ on Max OS : Undefined symbols for architecture x86_64 #185
Comments
You need to compile
Can you show me your build setup or verify that |
Yes you are right! I didn't tell g++ to compile
I still have a concern that I just put (PS: Honestly, I'm a rookie on C/Cpp. It's my first time using third party lib and compiler without IDE like VS, Do you know some resources online(book/video lecture) on learning how to use complier like g++,gcc, etc?) |
Having You want to move The reasoning is, the creation of a binary is split into two phases 1) compilation and 2) linking, normally you'd need a compiler to compile the files (usually done with Personally I'd look for a very simple and basic |
Thank you for your advice and detailed explanation. You resolved my problem perfectly! |
Basic Info:
Question Description:
Recently, I'm learning to do some Computer Graphics related work. Everything is going smooth. However, when i create a window to test the env.Link error happened:
It seems I have not link some third party file. I
have fixed exactly the same problem by add "-lglfw" args to g++ when using functions in glfw3.h.
But when meeting glad related function : gladLoadGLLoader, I don't know how to do.
Something I have done:
Can find the head file.
Have put the file "glad.c" in workspace.
Add "g++ -L or I /usr/lib or /usr/local/lib or /usr/local/include", But doesn't work.
Thanks in advance!
The text was updated successfully, but these errors were encountered: