Build and run project that use math.h in Clion [duplicate]

泪湿孤枕 提交于 2019-12-01 11:40:30
NiñoScript

You need to add target_link_libraries(YOUR_TARGET_NAME_HERE m) to your CMakeLists.txt file.

(If you've tried that, or don't know what's the name of your target, please add the contents of your CMakeLists.txt file to your question)


Edit: your target name is Assign2, so at the bottom of your CMakeLists.txt, you need to add:

target_link_libraries(Assign2 m)
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!