Jump to content
TrinityCore

Did something change in terms of the procedure to compile


obsidean
 Share

Recommended Posts

I am getting 344 errors now when i try to compile the solution under Visual Studios 19.  I am trying to debug the issue so was wondering if there have been recent changes to how to compile under Windows 10.  I know this is vague but I have to start somewhere...

Here is a sample of the errors.  Don't know if it has any value or not"

17>D:\Visual Studio\VC\Tools\MSVC\14.26.28801\include\ctime(21): message : see declaration of 'std' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/smart_ptr/shared_ptr.hpp(576,34): error C2039: 'auto_ptr': is not a member of 'std' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\Visual Studio\VC\Tools\MSVC\14.26.28801\include\ctime(21): message : see declaration of 'std' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/get_pointer.hpp(48,40): error C2039: 'auto_ptr': is not a member of 'std' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/dynamic_bitset/dynamic_bitset.hpp(2129): message : see declaration of 'std' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/get_pointer.hpp(48,19): error C2065: 'auto_ptr': undeclared identifier (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/get_pointer.hpp(48,19): error C2988: unrecognizable template declaration/definition (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/get_pointer.hpp(48,19): error C2059: syntax error: 'const' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/get_pointer.hpp(49,1): error C2143: syntax error: missing ';' before '{' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/get_pointer.hpp(49,1): error C2447: '{': missing function header (old-style formal list?) (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/smart_ptr/shared_ptr.hpp(484,1): error C2535: 'boost::shared_ptr<const boost::program_options::value_semantic>::shared_ptr(void)': member function already defined or declared (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/smart_ptr/shared_ptr.hpp(471): message : see declaration of 'boost::shared_ptr<const boost::program_options::value_semantic>::shared_ptr' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/smart_ptr/shared_ptr.hpp(484,1): error C2535: 'boost::shared_ptr<boost::program_options::option_description>::shared_ptr(void)': member function already defined or declared (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/smart_ptr/shared_ptr.hpp(471): message : see declaration of 'boost::shared_ptr<boost::program_options::option_description>::shared_ptr' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>Done building project "worldserver.vcxproj" -- FAILED.
18>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------
18>Building Custom Rule D:/trinity/CMakeLists.txt
========== Build: 12 succeeded, 6 failed, 0 up-to-date, 0 skipped ==========

Link to comment
Share on other sites

2 hours ago, obsidean said:

I am getting 344 errors now when i try to compile the solution under Visual Studios 19.  I am trying to debug the issue so was wondering if there have been recent changes to how to compile under Windows 10.  I know this is vague but I have to start somewhere...

Here is a sample of the errors.  Don't know if it has any value or not"

17>D:\Visual Studio\VC\Tools\MSVC\14.26.28801\include\ctime(21): message : see declaration of 'std' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/smart_ptr/shared_ptr.hpp(576,34): error C2039: 'auto_ptr': is not a member of 'std' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\Visual Studio\VC\Tools\MSVC\14.26.28801\include\ctime(21): message : see declaration of 'std' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/get_pointer.hpp(48,40): error C2039: 'auto_ptr': is not a member of 'std' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/dynamic_bitset/dynamic_bitset.hpp(2129): message : see declaration of 'std' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/get_pointer.hpp(48,19): error C2065: 'auto_ptr': undeclared identifier (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/get_pointer.hpp(48,19): error C2988: unrecognizable template declaration/definition (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/get_pointer.hpp(48,19): error C2059: syntax error: 'const' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/get_pointer.hpp(49,1): error C2143: syntax error: missing ';' before '{' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/get_pointer.hpp(49,1): error C2447: '{': missing function header (old-style formal list?) (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/smart_ptr/shared_ptr.hpp(484,1): error C2535: 'boost::shared_ptr<const boost::program_options::value_semantic>::shared_ptr(void)': member function already defined or declared (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/smart_ptr/shared_ptr.hpp(471): message : see declaration of 'boost::shared_ptr<const boost::program_options::value_semantic>::shared_ptr' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/smart_ptr/shared_ptr.hpp(484,1): error C2535: 'boost::shared_ptr<boost::program_options::option_description>::shared_ptr(void)': member function already defined or declared (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>D:\boost_1_72_0\boost/smart_ptr/shared_ptr.hpp(471): message : see declaration of 'boost::shared_ptr<boost::program_options::option_description>::shared_ptr' (compiling source file D:\trinity\src\server\worldserver\Main.cpp)
17>Done building project "worldserver.vcxproj" -- FAILED.
18>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------
18>Building Custom Rule D:/trinity/CMakeLists.txt
========== Build: 12 succeeded, 6 failed, 0 up-to-date, 0 skipped ==========

i suggest you to update VS to the latest stable version.

Link to comment
Share on other sites

well,  i uninstalled and reinstalled the dependencies one at a time and it turns out that my BOOST was somehow corrupted.  Looks like it works fine now.  This reminds me of the Microsoft CTRL+ALT+DEL solution to everything...

Case closed

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...