我試圖在code::blocks
鏈接glew
到我的項目通過執行以下操作:未定義的參考`glewInit @ 0'
//1- copied all the header files(glew.h....) to C:\Program Files (x86)\CodeBlocks\MinGW\include and
//the libs to C:\Program Files (x86)\CodeBlocks\MinGW\lib
//2-added the libs to the compiler Build Options > Linker Settings > add (considered to add glew32s.lib at the top)
|undefined reference to `[email protected]'|
不知道什麼是缺少在這裏!
有同樣的問題,您的解決方案不起作用。我不知道lib文件必須與可執行文件在同一個目錄中。從來沒有必要這樣做。由於這是一個相對老的問題, @MixedCoder,你找到了另一個解決方案嗎? – Ludwik