[MBDyn-users] mbdyn-1.3.11 build problem using mingw/msys

Subhasis Sarkar sarkar_s2 at comcast.net
Sat Feb 6 02:18:21 CET 2010


Building mbdyn-1.3.11 using mingw/msys in windows XP gives the following
error during make

 

g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I./../../include
-I./../../libraries/libmbutil -I./../../libraries/libmbmath
-I./../../libraries/libmbwrap -I./../../mbdyn -I./../../mbdyn/base
-I./../../mbdyn/struct -I./../../mbdyn/aero -I./../../mbdyn/elec
-I./../../mbdyn/hydr -g -O2 -MT modalext.lo -MD -MP -MF .deps/modalext.Tpo
-c modalext.cc  -DDLL_EXPORT -DPIC -o .libs/modalext.o

modalext.cc: In member function `virtual bool
ExtModalForce::Prepare(ExtFileHandlerBase*, bool, unsigned int)':

modalext.cc:75: error: `MBC_MODAL' was not declared in this scope

modalext.cc:85: error: `MBC_MODAL' was not declared in this scope

modalext.cc:93: error: `send' was not declared in this scope

modalext.cc:110: error: `MBC_MODAL' was not declared in this scope

modalext.cc:121: error: `recv' was not declared in this scope

modalext.cc:136: error: `MBC_MODAL' was not declared in this scope

 

To fix the problem, the following files need to be replaced

 

mbdyn\base\extforce.h

mbdyn\struct\modalext.cc

mbdyn\struct\strext.cc

 

You also need to ensure that USE_SOCKET remains undefined in
include\mbconfig.h

 

I would like to thank Masarati for proving me the patch to fix the problem.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mbdyn.org/pipermail/mbdyn-users/attachments/20100205/58ca2262/attachment-0001.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: extforce.h
URL: <http://mail.mbdyn.org/pipermail/mbdyn-users/attachments/20100205/58ca2262/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: modalext.cc
URL: <http://mail.mbdyn.org/pipermail/mbdyn-users/attachments/20100205/58ca2262/attachment-0001.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: strext.cc
URL: <http://mail.mbdyn.org/pipermail/mbdyn-users/attachments/20100205/58ca2262/attachment-0003.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mbdyn-1.3-11-use-socket.1.patch
Type: application/octet-stream
Size: 2484 bytes
Desc: not available
URL: <http://mail.mbdyn.org/pipermail/mbdyn-users/attachments/20100205/58ca2262/attachment-0001.obj>


More information about the MBDyn-users mailing list