Opened 14 years ago

Last modified 14 years ago

#1442 closed defect (fixed)

Problems to compile with the last versio - 8040

Reported by: faribasj Owned by: faribasj
Priority: critical Milestone:
Component: Simulation Code Generation Version: 1.6.0
Keywords: Cc: faribasj, Adrian Pop

Description

I was using the version 7763 (january/2011) and everything was OK to compile from a modelica file, as you can see bellow for file: frame.mo

loadFile("C:/OpenModelica1.6.0/tmp/frame.mo")
true
>> simulate(frame,iniTime=0,stopTime=1)
record SimulationResult
    resultFile = "frame_res.plt",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'frame', storeInTemp = false, noClean = false, options = '', outputFormat = 'plt'",
    messages = "",
    timeFrontend = 0.839800030450798,
    timeBackend = 0.956683321483596,
    timeSimCode = 0.295811059785531,
    timeTemplates = 0.26291581751312,
    timeCompile = 6.62549653657099,
    timeSimulation = 2.65721425488435,
    timeTotal = 11.6380467349901
end SimulationResult;

When I changed to 8040 version (march/2011) and tried to compile the same modelica file, and I got the following result:

 resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 10000.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'frame', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*'",
    messages = "Simulation failed for model: frame
Error: Error building simulator. Buildlog: perl C:\\OpenModelica1.6.0\\/share/omc/scripts/convert_lines.pl frame.cpp frame.conv.cpp.tmp
g++ -I. -o frame.exe frame.conv.cpp frame_functions.cpp -L\"C:/OpenModelica1.6.0/tmp\"  -lModelicaExternalC -lsim -linteractive -I\"C:\\OpenModelica1.6.0\\/include/omc\" -msse2 -mfpmath=sse  -lsendData -lQtNetwork-mingw -lQtCore-mingw -lQtGui-mingw -luuid -lole32 -lws2_32 -L\"C:\\OpenModelica1.6.0\\/lib/omc\" -lc_runtime -lregex -lf2c frame_records.c
frame.cpp:2326:26: warning: unknown escape sequence '\\O'
frame.cpp:2326:26: warning: unknown escape sequence '\\l'
frame.cpp:2326:26: warning: unknown escape sequence '\\o'
frame.cpp:2326:26: warning: unknown escape sequence '\\o'
frame.cpp:2326:26: warning: unknown escape sequence '\\m'
C:\\OpenModelica1.6.0\\MinGW\\bin\\..\\lib\\gcc\\mingw32\\3.4.5\\..\\..\\..\\..\\mingw32\\bin\\ld.exe: cannot find -lregex
collect2: ld returned 1 exit status
mingw32-make: *** [frame] Error 1
Error: Error building simulator. Buildlog: command g++ not found. Check $OPENMODELICAHOME
Error: Error building simulator. Buildlog: command \"C:\\OpenModelica1.6.0\\/share/omc/scripts/Compile\" not found. Check $OPENMODELICAHOME

Even with the most simple models get the same result.
I'm using a Windows XP 64bits, and I just removed the 7763 version and installed the 8040 version.

Change History (2)

comment:1 by Per Östlund, 14 years ago

Fixed formatting

Note: See TracTickets for help on using tickets.