GPUOpen-LibrariesAndSDKs / RadeonProRender-Baikal

MIT License
335 stars 78 forks source link

Error C2894 templates cannot be declared to have 'C' linkage #124

Closed SimonDanisch closed 6 years ago

SimonDanisch commented 6 years ago

I get lots of these when I set BAIKAL_ENABLE_RPR:

Error   C2894   templates cannot be declared to have 'C' linkage
 (compiling source file C:\Users\sdani\gpustuff\RadeonProRender-Baikal\RprTest\main.cpp)    
RprTest 
c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\xtr1common  16  
yozhijk commented 6 years ago

Hi @SimonDanisch ,

We are aware of this problem on VS2017 (VS2015 build is fine), working on it

yozhijk commented 6 years ago

Fixed here: https://github.com/GPUOpen-LibrariesAndSDKs/RadeonProRender-Baikal/commit/1c9d538f3a4d801785c3aedc9d4abba44133a622

SimonDanisch commented 6 years ago

Thanks, that fixes it!