q
q copied to clipboard
Doesn't compile using mingw64 on Windows
Hi, I recently tried to use this library for a small project but got a compile error for q/pp.hp on line 126 stating :
error: '__FUNCSIG__' was not declared in this scope
# define LIBQ_FUNCTION __FUNCSIG__
After some digging, it seems that it detects that I'm compiling on Windows but uses __FUNCSIG__ which is part of Visual C++ even though I'm compiling using mingw64's toolchain.
- Language version : C++17
- Compiler : g++ v8.1.0
- Compiler details : x86_64-posix-seh-rev0
- Platform : Windows 10
On gcc (and therefore g++) and clang, there is __PRETTY_FUNCTION__ that would serve a similar purpose.
you solve this? I have this problem
Sadly no, I'd have to dive into how to parse __PRETTY_FUNCTION__ and add that to the lib