tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.49k stars 418 forks source link

xlint project files throw compiler errors. #605

Closed seccpur closed 2 years ago

seccpur commented 2 years ago

Host Environment

Steps To Reproduce Installed xlint package using vcpkg ./vcpkg install xlint:x64-windows and then ./vcpkg integrate install and ran the demo example on this site.

Failure logs 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(50,61): error C2146: syntax error: missing ')' before identifier 'lval' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(50,61): error C2365: 'NumberL': redefinition; previous definition was 'template parameter' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(50): message : see declaration of 'NumberL' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(50,61): error C2061: syntax error: identifier 'lval' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(50,1): error C2059: syntax error: ')' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(50,61): error C2146: syntax error: missing ')' before identifier 'rval' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(50,61): error C2146: syntax error: missing ';' before identifier 'rval' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(51,1): error C2143: syntax error: missing ';' before '{' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(51,1): error C2447: '{': missing function header (old-style formal list?) 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(59,61): error C2146: syntax error: missing ')' before identifier 'lval' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(59,61): error C2365: 'NumberL': redefinition; previous definition was 'template parameter' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(59): message : see declaration of 'NumberL' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(59,61): error C2061: syntax error: identifier 'lval' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(59,1): error C2059: syntax error: ')' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(59,61): error C2146: syntax error: missing ')' before identifier 'rval' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(59,61): error C2146: syntax error: missing ';' before identifier 'rval' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(60,1): error C2143: syntax error: missing ';' before '{' 1>D:\Repo\vcpkg-master\installed\x64-windows\include\xlnt\utils\numeric.hpp(60,1): error C2447: '{': missing function header (old-style formal list?)

seccpur commented 2 years ago

I restored to using the files created by an older version of vcpkg and now my project is compiling without any issue.