VC 的乙個奇怪的C2732錯誤

2021-07-10 02:40:34 字數 1272 閱讀 3553

原來編譯都正常的(scaleform 3.3的**)

公升級了vs2015編譯後,就出問題了。nvtt編譯錯誤如下:

1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\stdarg.h(20): warning c4005: 'va_copy': macro redefinition

1>  d:\sdk\gfx sdk 3.3\3rdparty\nvtt\src\nvcore\defsvcwin32.h(32): note: see previous definition of 'va_copy'

1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtgmath.h(88): error c2732: linkage specification contradicts earlier specification for 'acos_assert'

1>  c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtgmath.h(88): note: see declaration of 'acos_assert'

1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtgmath.h(89): error c2732: linkage specification contradicts earlier specification for 'asin_assert'

1>  c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtgmath.h(89): note: see declaration of 'asin_assert'

1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtgmath.h(109): error c2732: linkage specification contradicts earlier specification for 'sqrt_assert'

1>  c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtgmath.h(109): note: see declaration of 'sqrt_assert'

非常奇怪的問題。

解決方法是,讓等包含標頭檔案盡量在前面包含。

乙個奇怪的listview

一般情況下listview就是乙個頭有控制代碼 用spy看看任務管理器 就是 程序 這個有個控制代碼 就知道了 再就是整個listview乙個控制代碼 一共2個控制代碼 分別是 主控制代碼 syslistview32 和頭控制代碼 sysheader32 這個奇怪的listview被分成了3個控制代...

乙個奇怪的Exception

環境大概是,jdk8 tomcat8,為了進行強加密,使用了bouncycastle的庫。但是在啟動的時候總報告乙個錯誤 must be passed recipient s private ec key for decryption 錯誤出在乙個instance of的判斷 if var2 ins...

乙個奇怪的國家

有乙個奇怪的國家,裡面的國民對於事情的態度永遠只有兩面。當兩個人遇到一起討論乙個事情的時候 兩個持贊同觀點的人遇到一起後會對這個事情都繼續贊同 乙個持贊同觀點的人遇到乙個持不贊同觀點的人的時候,兩人都會不再繼續贊同 兩個持不贊同觀點的人遇到一起討論後反而會對這個事情開始贊同。輸入包括兩行,每行包括n...