[問題] CUDA使用OpenGL發生錯誤
大家好
我目前試著在CUDA中加入OpenGL,
於是我將寫好的OpenGL可以執行的程式改成.cu檔,
並且加入的一些cuda的標頭檔,
編譯時於是發生以下的錯誤,
是否能請大大幫我看一下,
謝謝
"texture" has already been declared in the current scope
對應到的程式碼--->extern float *texture; -->在main外
declaration is incompatible with overloaded function "max"
對應到的程式碼--->float max -->在main外
declaration is incompatible with overloaded function "min"
對應到的程式碼--->float min -->在main外
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.122.192.147
→
06/28 01:27, , 1F
06/28 01:27, 1F
→
06/28 01:43, , 2F
06/28 01:43, 2F
→
06/28 01:44, , 3F
06/28 01:44, 3F
→
06/28 01:44, , 4F
06/28 01:44, 4F
→
06/28 01:46, , 5F
06/28 01:46, 5F
→
06/28 01:46, , 6F
06/28 01:46, 6F
→
06/28 01:46, , 7F
06/28 01:46, 7F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章