CLion undefined reference to ‘gluOrtho2D‘ 問題解決辦法

這個我到處搜都沒找到解決方法,結果發現在 CMakeLists.txt 的 每個target_link_libraries 的參數中加上 glu32.dll 就行了 如圖: 下面的寫法會導致 gluOrtho2D 無法使用,因爲沒有鏈接到 glu 庫,將 target_link_libraries 改成上面的形式就可以了
相關文章
相關標籤/搜索