Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我包含 math.h 和角度依赖项时,我得到一个未定义的参考消息。(因为,罪……)
您需要链接到数学库。
通过在行尾gcc添加来完成。-lm
gcc
-lm