oatpp / oatpp-postgresql

PostgreSQL adapter for oatpp ORM.
https://oatpp.io/
Apache License 2.0
18 stars 25 forks source link

Can't build oatpp-postgres on windows mingw-w64 toolchain. #13

Open acidtonic opened 3 years ago

acidtonic commented 3 years ago

Can't build oatpp-postgres on windows mingw-w64 toolchain. I get lots of linker errors to the tune of 187mb error log. Here are a few to capture the spirit of the errors.

Steps to reproduce (I can be more detailed if needed) -> Windows -> msys2 -> pacman -S build-essential mingw-w64-x86_64-toolchain cmake git -> checkout oatpp -> build/install it using -G"MinGW Makefiles" or -G"MSYS Makefiles" -> build oatpp-postgresql and when the tests are built the following is produced...

I tried using postgresql from the offical pacman repository for mingw-w64 and thought maybe building postgresql from source with the same w64-toolchain instead would work but neither option changed anything. I also toyed with changing CXX EXTENSIONS to on/off between the projects and update the std flag for C++11 to c++14/c++17 and none of them built. I also tried adding -stdc++ to the build flags, and forcing the g++ compiler for linking.... Also tried using objdump/file/nm to inspect the .a files only to find they all were x86-64 as intended and nothing was 32-bit. All had the same seh/sjlj settings and endianness. I'm stuck :(

C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__cC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__class4C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__class4UuidEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__class4UuidEEENS4
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__class4UuidEEENS4_7__c
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__class4UuidEEENS4_7__class6
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__class4UuidEEENS4_7__class6Vecto
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__class4UuidEEENS4_7__class6VectorISD_
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS8_7__class4UuidEEESaISC_EESaISE_ELN9__gnu_cxx12_Lock_policyE2EEC1IJ
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSAC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSA_ISC_C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEENSA_
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEESaISG_EES
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSA_ISC_EEEESaISE_EESaISG_ELN9__gnu_cx
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEESaISC_EESaISE_ELN9__gnu_cxx12_Lock_policyE2
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type9PrimitiveIyNS4_7__class6UInt64EEESaIS8_EESaISA_ELN9__gnu_cxx12_Lock_policyE2EEC1IJEEESB_DpOT_[_ZNSt23_Sp_counted_ptr_inpl
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISE_EEEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISE_EEEENS8_
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISE_EEEESaISG_EES
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEESaISE_EESaISG_ELN9__gnu_cx
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEESaISC_EESaISE_ELN9__gnu_cxx12_Lock_policyE2
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSA_ISCC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSA_ISC_EEEEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_IC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEENSA
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEESaISG_EE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSA_ISC_EEEESaISE_EESaISG_ELN9__gnu_c
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSA_ISCC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSA_ISC_EEEEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_IC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEENSA
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEESaISG_EE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSA_ISC_EEEESaISE_EESaISG_ELN9__gnu_c
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_ISC_EC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEENSA_I
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEESaISG_EESa
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_ISC_EEEESaISE_EESaISG_ELN9__gnu_cxx
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_ISC_EC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEENSA_I
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEESaISG_EESa
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_ISC_EEEESaISE_EESaISG_ELN9__gnu_cxx
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_ISC_EC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEENSA_I
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEESaISG_EESa
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_ISC_EEEESaISE_EESaISG_ELN9__gnu_cxx
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENSC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISE_EEEEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISE_EEEENS8_I
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISE_EEEESaISG_EESa
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEESaISE_EESaISG_ELN9__gnu_cxx
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEESaISC_EESaISE_ELN9__gnu_cxx12_Lock_policyE2E
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_9PrimitiveIyNS5_7__class6UInt64EEENS8_6VectorISA_EEEESaISD_EESaISF_ELN9__
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt16allocator_traitsISaISt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_9PrimitiveIyNS5_7__class6UInt64EEENS8_6VectorISA_EEEESaISD_EESaISF_ELN9_
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEESaISC_EESaISE_ELN9__gnu_cxx12_Lock_policyE2
acidtonic commented 2 years ago

I'd also be open to a workaround that involves a lighter client-only oatpp-postgres library which would let me get the datatypes for postgresql in the DTO's imported such that API Client code can be generated.

On windows I really only need oatpp-postgresql for building the API Client calls and will not be using the server/dbclient code anyways. I'm trying to distribute a windows client that speaks to the oatpp-postgresql server on linux. Is there a lighter solution?

I spent more time toying with stdc++ and seh vs sjlj exception types along with various compiler flags and cannot make progress. Help!

lganzzzo commented 2 years ago

Hello @acidtonic ,

On windows I really only need oatpp-postgresql for building the API Client calls and will not be using the server/dbclient code anyways. I'm trying to distribute a windows client that speaks to the oatpp-postgresql server on linux. Is there a lighter solution?

Can you please give more details? As I understand, if you have a working oatpp-postgresql server on Linux, then all you need - is to expose REST API. Then on Windows, you can consume that REST API via oatpp ApiClient. Thus no oatpp-postgresql is needed on Windows (in your case)

acidtonic commented 2 years ago

That is indeed what I am trying to accomplish but the DTO headers point to postgresql types so the auto generated API client calls for the windows side cannot be compiled.

Am I missing something easier?

acidtonic commented 2 years ago

Linux -> Running oatpp server. DTO's defined with oatpp-postgresql types.

Windows -> Client only, will consume rest endpoints from server, autogenerated API Client from DTOs (fail to build since oatpp-postgres is needed to fulfill the header DTO types).

lganzzzo commented 2 years ago

Yes, So at the moment, I can think of two available workarounds: