cppgraphqlgen icon indicating copy to clipboard operation
cppgraphqlgen copied to clipboard

Build fail on linux

Open jimwang118 opened this issue 1 year ago • 0 comments
trafficstars

When I use vcpkg to compile the cppgraphqlgen library, a compilation error occurs using the following command. ./vcpkg install cppgraphqlgen[core,rapidjson]:x64-linux

error:

/usr/include/c++/13/bits/unique_ptr.h:99:9: error: ‘void operator delete(void*, std::size_t)’ called on unallocated object ‘<anonymous>’ [-Werror=free-nonheap-object]
   99 |         delete __ptr;
      |         ^~~~~~~~~~~~
/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/GraphQLResponse.cpp: In constructor ‘graphql::response::Value::Value(graphql::response::Type)’:
/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/GraphQLResponse.cpp:931:47: note: declared here
  931 |                         _data = { EnumData {} };
      |                                               ^
cc1plus: all warnings being treated as errors

jimwang118 avatar Jul 03 '24 02:07 jimwang118