CppMicroServices icon indicating copy to clipboard operation
CppMicroServices copied to clipboard

build error with VS2017

Open michkrom opened this issue 8 years ago • 3 comments

Encountered a build error on VS2017. Looks like a premature template expansion by VS compiler.

C:\git\CppMicroServices\framework\include\cppmicroservices/ServiceInterface.h(145): error C2027: use of undefined type 'cppmicroservices::HttpServlet' (compiling source file C:\git\CppMicroServices\httpservice\src\ServletContext.cpp)

The workaround is to add the following #include to ServletContainerPrivate.h:

#include "cppmicroservices/httpservice/HttpServlet.h"

michkrom avatar Mar 28 '18 15:03 michkrom

Ran into the same issue using MSVC 15.6.5

zacklj89 avatar Apr 10 '18 14:04 zacklj89

Thank you for reporting this. We are going to set-up a Visual Studio 2017 build environment on AppVeyor to catch these problems and then fix this particular issue.

saschazelzer avatar Apr 25 '18 17:04 saschazelzer

Fixed in the development branch.

saschazelzer avatar May 13 '18 20:05 saschazelzer