#354 Broken x64 build on Visual C++ 2010

Development_Branch
closed-fixed
nobody
OPAL (214)
5
2012-07-15
2012-06-04
No

Can't build OPAL x64 with Visual C++ 2010.

Error 1 error C2371: 'INT' : redefinition; different basic types d:\libs\opaltest\ptlib\include\ptlib\msos\ptlib\platform.h 157 1 PTLib Static
Error 238 error C2668: 'PXMLRPCStructBase::GetVariable' : ambiguous call to overloaded function d:\Libs\OPALTEST\ptlib\src\ptclib\pxmlrpc.cxx 747 1 PTLib Static

After blind fixes of this errors (removed typedef and added cast to PINDEX) I'd got:

Error 317 error C2780: 'const _Ty &std::max(const _Ty &,const _Ty &,_Pr)' : expects 3 arguments - 2 provided d:\Libs\OPALTEST\opal\src\codec\opalpluginmgr.cxx 888 1 OPAL Static
Error 318 error C2782: 'const _Ty &std::max(const _Ty &,const _Ty &)' : template parameter '_Ty' is ambiguous d:\Libs\OPALTEST\opal\src\codec\opalpluginmgr.cxx 888 1 OPAL Static
Error 319 error C2668: 'RTP_DataFrame::RTP_DataFrame' : ambiguous call to overloaded function d:\Libs\OPALTEST\opal\src\codec\opalpluginmgr.cxx 895 1 OPAL Static
Error 322 error C2668: 'RTP_DataFrame::RTP_DataFrame' : ambiguous call to overloaded function d:\Libs\OPALTEST\opal\src\codec\opalpluginmgr.cxx 974 1 OPAL Static
Error 323 error C2668: 'RTP_DataFrame::RTP_DataFrame' : ambiguous call to overloaded function d:\Libs\OPALTEST\opal\src\codec\opalpluginmgr.cxx 1023 1 OPAL Static
Error 380 error LNK1118: syntax error in 'NONAME' statement d:\Libs\OPALTEST\ptlib\Lib\x64\Release\ptlib64.def 3 1 PTLib DLL
Error 481 error C1083: Cannot open include file: 'srtp.h': No such file or directory d:\Libs\OPALTEST\opal\src\rtp\srtp_session.cxx 63 1 OPAL Static

I'm using OPAL trunk.

Discussion

  • Patch applied to SVN trunk, thank you very much!

     
    • status: open --> closed-fixed
     
  • Very good blog! Do you have any tips for aspiring writers? I'm planning to start my own blog soon but I'm a little lost on everything. Would you advise starting with a free platform like Wordpress or go for a paid option? There are so many choices out there that I'm completely confused .. Any recommendations? Many thanks!
    cheap north face coats http://northfacewomenbootenhanced.webspawner.com/