You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Slic3r failed to build with "error C2146: syntax error: missing ')' before identifier 'and'" with MSVC on Windows amd64. It can reproduce on latest version 026c138 on master branch.
Versions and configuration:
OS: Windows 10
VS: Visual Studio 2022(17.7.2)
It is required to use at least the C++11 standard, because of the line if (this->no_sort and preserve_ordering) {
I got it only to run with adding this line in src/CMakeLists.txt:
add_compile_options(-std=c++11)
Use of boost 1.67 does not work anyway. Version 1.63 would work, but fails with this:
C:\local\boost_1_63_0\boost\asio\detail\socket_types.hpp(24,1): error C1189: #error: WinSock.h has already been included [Slic3r\build_x64\slic3r.vcxproj]
Describe the bug
Slic3r failed to build with "error C2146: syntax error: missing ')' before identifier 'and'" with MSVC on Windows amd64. It can reproduce on latest version 026c138 on master branch.
Versions and configuration:
OS: Windows 10
VS: Visual Studio 2022(17.7.2)
To Reproduce
Steps to reproduce the behavior:
Error info:
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(227,23): error C2146: syntax error: missing ')' before identifier 'and' [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(227,23): error C2065: 'and': undeclared identifier [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(227,27): error C2146: syntax error: missing ';' before identifier 'preserve_ordering' [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(227,44): error C2059: syntax error: ')' [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(229,36): error C2065: 'unsortable': undeclared identifier [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(229,9): error C2275: 'Slic3r::ExtrusionEntityCollection': expected an expression instead of a type [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(229,85): error C2059: syntax error: ';' [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(230,25): error C2065: 'unsortable': undeclared identifier [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(231,9): error C2065: 'unsortable': undeclared identifier [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(235,37): error C2065: 'unsortable': undeclared identifier [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(238,17): error C2065: 'unsortable': undeclared identifier [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(241,7): error C2059: syntax error: 'else' [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(241,12): error C2143: syntax error: missing ';' before '{' [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(241,12): error C2447: '{': missing function header (old-style formal list?) [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(276,1): error C2059: syntax error: '}' [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\ExtrusionEntityCollection.cpp(276,1): error C2143: syntax error: missing ';' before '}' [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\GCodeSender.cpp(532,11): error C2039: 'serial_port_service': is not a member of 'boost::asio' [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\GCodeSender.cpp(532,11): error C3083: 'serial_port_service': the symbol to the left of a '::' must be a type [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\GCodeSender.cpp(532,32): error C2039: 'native_handle_type': is not a member of 'boost::asio' [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\GCodeSender.cpp(532,32): error C2065: 'native_handle_type': undeclared identifier [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\GCodeSender.cpp(532,51): error C2146: syntax error: missing ';' before identifier 'handle' [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\GCodeSender.cpp(532,51): error C2065: 'handle': undeclared identifier [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\GCodeSender.cpp(534,28): error C2065: 'handle': undeclared identifier [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
F:\gitP\Slic3r\xs\src\libslic3r\GCodeSender.cpp(536,28): error C2065: 'handle': undeclared identifier [F:\gitP\Slic3r\build_x64\libslic3r.vcxproj]
Error log:
build.log
The text was updated successfully, but these errors were encountered: