Skip to content

error C3861: '__builtin_FILE': identifier not found (MSVC 19) #808

@MasonAngelio

Description

@MasonAngelio

Describe the bug
When compiling the project using MSVC, and macro-free mode I get the following errors:

D:\CLion Projects\Proj\lib\quill\include\quill/core/SourceLocation.h(44): error C3861: '__builtin_LINE': identifier not found [D:\CLion Projects\Proj\build\deb\Proj.vcxproj]
D:\CLion Projects\Proj\lib\quill\include\quill/core/SourceLocation.h(43): error C3861: '__builtin_FUNCTION': identifier not found [D:\CLion Projects\Proj\build\deb\Proj.vcxproj]
D:\CLion Projects\Proj\lib\quill\include\quill/core/SourceLocation.h(42): error C3861: '__builtin_FILE': identifier not found [D:\CLion Projects\Proj\build\deb\Proj.vcxproj]

To Reproduce
Install MSVC
Set QUILL_X86ARCH to ON (using CMake as the build system)
Compile the project

Expected Behaviour
No error

Environment Details

  • Library Version: master
  • Operating System: Windows 11
  • Compiler: MSVC 19.16.27054.0

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions