Opened 14 years ago
Last modified 14 years ago
#1465 closed defect (fixed)
Alias variables cause compilation errors
Reported by: | Martin Sjölund | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Martin Sjölund, Frenkel TUD, Willi Braun |
Description
$ omc alias.mos /home/marsj/dev/trunk/build//bin/omc 1.7.0 (r8421) true "class Alias Real x,y,z; equation connect(x,y); x = sin(time); z = -x; end Alias; " record SimulationResult resultFile = "", simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Alias', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false", messages = "Simulation failed for model: Alias Error: Error building simulator. Buildlog: perl /home/marsj/dev/trunk/build//share/omc/scripts/convert_lines.pl Alias.cpp Alias.conv.cpp.tmp g++ -I. -o Alias Alias.conv.cpp Alias_functions.cpp -lsim -linteractive -I\"/home/marsj/dev/trunk/build//include/omc\" -O3 -falign-functions -march=native -mfpmath=sse -lrt -lpthread -L\"/home/marsj/dev/trunk/build//lib/omc\" -lc_runtime -Wl,-Bstatic -lf2c -Wl,-Bdynamic Alias_records.c Alias.cpp: In function ‘void init_Alias(DATA*)’: Alias.cpp:99: error: ‘$Px’ was not declared in this scope make: *** [Alias] Error 1 ", timeFrontend = 0.0, timeBackend = 0.0, timeSimCode = 0.0, timeTemplates = 0.0, timeCompile = 0.0, timeSimulation = 0.0, timeTotal = 0.0 end SimulationResult;
Note:
See TracTickets
for help on using tickets.
We need some nice testcase with a lot of aliases for simulation :)