-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expected a file name error #842
Comments
any solution for this bug would be appreciated!!!!! |
This is strange. MSVC 2015 doesn't have #if defined(__has_include)
# error __has_include
#else
# error no __has_include
#endif and posting the output here? |
Does the error occur at compile time, or just in the IDE? The Intellisense frontend is uses EDG which may have limited __has_include support partly enabled even in VS2015. |
@vitaut below is the output of the code you have supplied |
@vitaut below is the compilation error |
This is a bug in IntelliSense which you can safely ignore or report to Microsoft that will ignore it for you. I've implemented a tentative workaround in 38ee424, but haven't tested as I don't have a Windows machine at hand. |
@vitaut thanks a lot for the inputs!!!!! |
i am getting this error in core.h. does anyone have a solution for this issue, it is on visual studio C++ 2015.
Severity Code Description Project File Line
Error (active) expected a file name GExport c:\Users\JNP014\Documents\Visual Studio 2015\Projects\staticlogger\staticlogger\spdlog\fmt\bundled\core.h 183
It points to this code
// libc++ supports string_view in pre-c++17.
#if (FMT_HAS_INCLUDE(<string_view>) && (__cplusplus > 201402L || defined(_LIBCPP_VERSION))) ||
(defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910)
#include <string_view>
#define FMT_USE_STD_STRING_VIEW
#elif (FMT_HAS_INCLUDE(<experimental / string_view>) && __cplusplus >= 201402L)
#include <experimental/string_view>
#define FMT_USE_EXPERIMENTAL_STRING_VIEW
#endif
has anyone encountered this????
The text was updated successfully, but these errors were encountered: