Missing symbols when cross-compiled without PETSC
When cross-compiling v. 2.0.0 under Linux for Win32 platform, the compilation ends with the following error:
i586-mingw32msvc-g++ -g -O2 -o bin/getdp Main/Main.o -Llib -lGetDPLegacy -lGetDPInterface -lGetDPLegacy -lGetDPNumeric -lGetDPCommon -lgsl -lgslcblas -lgfortran -lm
lib/libGetDPLegacy.a(DofData.o): In function _Z16Dof_WriteFileRESPcP7DofDataiddi': /tmp/getdp-2.0.0/Legacy/DofData.cpp:503: undefined reference to
LinAlg_PrintVector(_iobuf*, gVector*, bool)'
lib/libGetDPLegacy.a(DofData.o): In function _Z25Dof_WriteFileRES_MHtoTimePcP7DofDataiP6List_T': /tmp/getdp-2.0.0/Legacy/DofData.cpp:477: undefined reference to
LinAlg_PrintVector(_iobuf*, gVector*, bool)'
lib/libGetDPLegacy.a(DofData.o): In function _Z25Dof_WriteFileRES_ExtendMHPcP7DofDataii': /tmp/getdp-2.0.0/Legacy/DofData.cpp:432: undefined reference to
LinAlg_PrintVector(_iobuf*, gVector*, bool)'
lib/libGetDPLegacy.a(SolvingOperations.o): In function _Z19Treatment_OperationP10ResolutionP6List_TP7DofDataP7GeoDataS0_S4_': /tmp/getdp-2.0.0/Legacy/SolvingOperations.cpp:3139: undefined reference to
LinAlg_PrintMatrix(_iobuf*, gMatrix*, bool)'
/tmp/getdp-2.0.0/Legacy/SolvingOperations.cpp:3140: undefined reference to LinAlg_PrintVector(_iobuf*, gVector*, bool)' lib/libGetDPCommon.a(Message.o): In function
_ZN10GmshSocket9_SendDataEPKvi':
/tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to _send@16' /tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to
_send@16'
/tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to _send@16' /tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to
_send@16'
/tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to _send@16' lib/libGetDPCommon.a(Message.o):/tmp/getdp-2.0.0/Common/GmshSocket.h:91: more undefined references to
_send@16' follow
lib/libGetDPCommon.a(Message.o): In function _ZN10GmshSocket11CloseSocketEi': /tmp/getdp-2.0.0/Common/GmshSocket.h:221: undefined reference to
_closesocket@4'
lib/libGetDPCommon.a(Message.o): In function ~GmshSocket': /tmp/getdp-2.0.0/Common/GmshSocket.h:143: undefined reference to
_WSACleanup@0'
lib/libGetDPCommon.a(Message.o): In function _ZN10GmshSocket9_SendDataEPKvi': /tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to
_send@16'
/tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to _send@16' /tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to
_send@16'
/tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to _send@16' /tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to
_send@16'
lib/libGetDPCommon.a(Message.o):/tmp/getdp-2.0.0/Common/GmshSocket.h:91: more undefined references to _send@16' follow lib/libGetDPCommon.a(Message.o): In function
GmshSocket':
/tmp/getdp-2.0.0/Common/GmshSocket.h:137: undefined reference to _WSAStartup@8' lib/libGetDPCommon.a(Message.o): In function
~GmshSocket':
/tmp/getdp-2.0.0/Common/GmshSocket.h:143: undefined reference to _WSACleanup@0' lib/libGetDPCommon.a(Message.o): In function
_ZN10GmshClient7ConnectEPKc':
/tmp/getdp-2.0.0/Common/GmshSocket.h:263: undefined reference to _socket@12' /tmp/getdp-2.0.0/Common/GmshSocket.h:274: undefined reference to
_gethostbyname@4'
/tmp/getdp-2.0.0/Common/GmshSocket.h:282: undefined reference to _htons@4' /tmp/getdp-2.0.0/Common/GmshSocket.h:284: undefined reference to
_connect@12'
lib/libGetDPCommon.a(Message.o): In function _ZN10GmshSocket11CloseSocketEi': /tmp/getdp-2.0.0/Common/GmshSocket.h:221: undefined reference to
_closesocket@4'
lib/libGetDPCommon.a(Message.o): In function _ZN10GmshSocket9_SendDataEPKvi': /tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to
_send@16'
/tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to _send@16' /tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to
_send@16'
lib/libGetDPCommon.a(Message.o): In function _ZN10GmshSocket11CloseSocketEi': /tmp/getdp-2.0.0/Common/GmshSocket.h:221: undefined reference to
_closesocket@4'
lib/libGetDPCommon.a(Message.o): In function _ZN10GmshSocket9_SendDataEPKvi': /tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to
_send@16'
/tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to _send@16' /tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to
_send@16'
/tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to _send@16' /tmp/getdp-2.0.0/Common/GmshSocket.h:91: undefined reference to
_send@16'
lib/libGetDPCommon.a(Message.o):/tmp/getdp-2.0.0/Common/GmshSocket.h:91: more undefined references to `_send@16' follow
collect2: ld returned 1 exit status
make: *** [link] Error 1
The ./configure parameters are: ./configure --host=i586-mingw32msvc --prefix=/usr/i586-mingw32msvc --enable-shared --enable-petsc=no --enable-gsl