hi,
I have just installed simile on a new computer (win 2000) everything seems to work but if you build the model in c++ no runtime environment window pops up. there is also no error message. I also tried to build another model in c++first the runtime window poped up, everything worked well. I closed the model, I opened it again, built it again in c++, no runtime window poping up anymore...
if you build it in tcl everything seems to work well.
does any one have an idee what the problem could be (and especially how it could be solved) ???
martin
no runtime-environment poping up
Just as a check, does compiling an empty model work OK? The runtime window should appear. If it doesn't, the C++ installation is probably faulty.
Simile 3 somtimes doesn't report failures to compile the model in C++ and the runtime window doesn't appear. (This is fixed in versio 4.) So, there is possibly something in the model preventing a runable version being compiled. Could you email the model to support @simulistics.com and we will check for compile error messages.
Jonathan.
no runtime-environment poping up
I don´t think it´s the model, because the same model runs without problems on my computer at home.
I have also tried to build other models in c++ on this computer, first it worked without problems, and then I tried again and no run time environment came up.
no runtime-environment poping up
i have tried to compile an empty model, it doesn´t work. I have also installed the GNU compiler again, still doesn´t work.
martin
no runtime-environment poping up
Hello Martin,
It sounds like there is a problem with using the GNU C Compiler on your new computer. It is possible that it could appear to succeed occasionally, because Simile stores a copy of the compiled code with the model, and only needs to re-compile it if the model changes. If the model has not changed, Simile uses the stored copy and does not use the C compiler.
The most common problem with the GNU C Compiler is that the PATH environment variable must be set to include the directory where g++ is installed.
Using Windows 2000, it is necessary to do this in a special dialogue box. Right-click the "My Computer" icon to produce a context menu, and select the "Properties" command. This is a tabbed dialogue box. Under the "Advanced" tab, there is a button labelled "Environment variables". Click this, and you can edit the PATH variable to include "C:\gcc-2.95.2\bin" or similar, depending on where you installed gcc.
To check this is the case, open a command prompt and type "g++ --version". If it responds with a version number, then you are in business. If Windows responds the g++ is not recognised, then you need to edit the PATH environment variable as described.
I hope this solves your problems, but let us know if not.
Kind regards,
Alastair Davies
no runtime-environment poping up
hi,
I still coudl not solve the problem. the path should be corect ( I checked several times) you also can see that the compiler works. it just does not make the run time environment.
as I have taken over this computer complete with a lot of installed software I am wondering if there could be a problem with some incompatibilities of simile with other software???
martin
no runtime-environment poping up
Hello Martin,
I am sorry your problem is so difficult for us to solve. Let me recap your observations, to make sure that we have understood correctly.
The problem is that the run-time environment window does not appear, and no error message is given, when you build a model.
The problem happens only when you build in C++. It does not happen when you build in Tcl. Furthermore, with some models, those built and run previously on other computers, the problem does not happen even when you build in C++.
If we are not missing something with these observations, then the problem is definitely caused by Simile's use of the C++ compiler.
You mention that there is much other software that came installed on the computer. Is it possible that there is a previous installation of a C++ compiler that Simile is finding, and this is not functioning correctly?
One way to check this, is the following procedure.
In the folder where you installed Simile (C:\Program Files\Simile33 by default) there is a directory called "System". Within this, is a directory called "bin". Use Windows Explorer to navigate to this directory, and execute (double-click) the program called "wish84.exe". It will produce a Console and a small grey square called wish84. Type into the Console the command:
exec g++ --version
This will search for g++ in the same path as visible to Simile and report the version. If there is an error message, or the version is not the one you just installed, then we have a better basis to fix the problem. The error message may even be helpful.
Record any error message, and close the Console by typing
exit
Apologies again for spending so long on this problem and thanks for your patience.
Kind regards,
Alastair
no runtime-environment poping up
it is working now. I found a folder called ".simile" ( containing 4 files "layout", "prefs", "recent" and "version"), after delating the folder everything worked well again...
thanks a lot for the help!!!
martin