argtable / argtable3

A single-file, ANSI C, command-line parsing library that parses GNU-style command-line options.
http://www.argtable.org
Other
372 stars 65 forks source link

Build failed on msys2/mingw64 #102

Open star-hengxing opened 1 week ago

star-hengxing commented 1 week ago

I package the library to xmake-repo, and I got the error. https://github.com/xmake-io/xmake-repo/actions/runs/10766932084/job/29853487444?pr=5186

C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2409/a/argtable3/v3.2.2/source/argtable3/build_53247387/src/version.rc:33:10: fatal error: verrsrc.h: No such file or directory
   33 | #include <verrsrc.h>
      |          ^~~~~~~~~~~

I tried to remove the header, and msvc/mingw both build successfully. What is this header file doing?

tomghuang commented 1 week ago

Hi @star-hengxing , verrsrc.h is a Win32 API header file, which is used when we want to build argtable3 as a DLL file and embed the version information in that file.

It is weird that you cannot find this header file even when you are in MSVC.