Adrian Pop
Thu, 12 Nov 2009 04:22:26 -0800
Hi, Have you rebuild the MetaModelica (RML) compiler after you switched to 64 bit? rml_sint_t should be defined as long on 64 bit in rml.h so it has the same size as void*. Cheers, Adrian Pop/ Filippo Donida wrote:
Dear all,I encountered the following problem when rebuilding the OMC (trunk version) with linux (Ubuntu) 64 bit:g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_VPRINTF=1 -DHAVE_GETCWD=1 -DHAVE_SELECT=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_SCANDIR=1 -DUSE_CORBA -O3 -I/home/fildo/Work/OpenModelica/externalTools/mmc/include/plain -I../../c_runtime -I../../c_runtime/superlu/include -I../ -I. -I/home/fildo/Work/OpenModelica/externalTools/mico//include -I../ -Ilpsolve -c -o unitparserext.o unitparserext.cppunitparserext.cpp: In function ‘void* UnitParserExt__unit2str(rml_state*)’:unitparserext.cpp:134: error: cast from ‘void*’ to ‘rml_sint_t’ loses precision unitparserext.cpp:135: error: cast from ‘void*’ to ‘rml_sint_t’ loses precision unitparserext.cpp:142: error: cast from ‘void*’ to ‘rml_sint_t’ loses precision unitparserext.cpp:143: error: cast from ‘void*’ to ‘rml_sint_t’ loses precisionmake[3]: *** [unitparserext.o] Error 1 Does anyone of you know why? Thanks, Filippo. ------------------------------------------ Filippo Donida Politecnico di Milano Dipartimento di Elettronica e Informazione Piazza Leonardo da Vinci 32 20133 Milano - Italia Phone +39 02 2399 3497 (Milano) Phone +39 02 2399 7760 (Cremona) Fax +39 02 2399 3412 (Milano) e-mail: don...@elet.polimi.it