q icon indicating copy to clipboard operation
q copied to clipboard

Doesn't compile using mingw64 on Windows

Open Voltra opened this issue 6 years ago • 2 comments

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.

Voltra avatar May 08 '19 17:05 Voltra

you solve this? I have this problem

guypystin avatar Sep 07 '21 11:09 guypystin

Sadly no, I'd have to dive into how to parse __PRETTY_FUNCTION__ and add that to the lib

Voltra avatar Sep 29 '21 21:09 Voltra