Vensim 10 Compile Error on Windows

Use this forum to post Vensim related questions.
Post Reply
aliakhavan89
Senior Member
Posts: 94
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

Vensim 10 Compile Error on Windows

Post by aliakhavan89 »

After installing Vensim 10, I get errors (c1: fatal error c1083: Cannot open source file: 'mdl.c': No such file or directory || Unable to compile - failed to set paths. Check the paths in mdldp.bat in vensim\comp) when I want to compile.

I replaced the settings according to the installation instructions. Also, I cannot compile anymore when I go back to previous versions (with previous mdl.bat settings). Is it related to 'dll' or other files replaced in system32 (I saw this path during the installation when files were being copied)? I assume this would be the case because I cannot compile based on the previously installed version (I don't have access to the previous builds; otherwise, I would've clean-installed an earlier version to test this).
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Vensim 10 Compile Error on Windows

Post by Administrator »

- Find MDLDP64.bat in \users\Public\Vensim\COMP
- Edit this in notepad and add pause to the end of the file.
- Try compiling and see what errors are being generated.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Vensim 10 Compile Error on Windows

Post by Administrator »

Please note. You need to use the new files provided in COMP in order for compiling to work in Vensim 10. It might be worth renaming your COMP folder to COMPOLD and re-installing to make sure you get the latest files.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
aliakhavan89
Senior Member
Posts: 94
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

Re: Vensim 10 Compile Error on Windows

Post by aliakhavan89 »

Same error I wrote here. I mentioned I used the new COMP files. The path to Visual Studio is also correct.
Attachments
Screenshot 2023-07-17 at 11.14.58.jpg
Screenshot 2023-07-17 at 11.14.58.jpg (390.78 KiB) Viewed 572 times
aliakhavan89
Senior Member
Posts: 94
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

Re: Vensim 10 Compile Error on Windows

Post by aliakhavan89 »

Also, mdl.c is fully generated and replaced each time I compile. In addition, I tried deleting mdl.c and mdl.obj but it didn't help. I haven't tried putting everything (the vensim model, mdl.c, etc.) in the COMP folder thou.
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Vensim 10 Compile Error on Windows

Post by Administrator »

Is your model stored in c:\windows?

That batch file that is compiling the model is running in c:\windows.

Also are you using the new GUI?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
aliakhavan89
Senior Member
Posts: 94
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

Re: Vensim 10 Compile Error on Windows

Post by aliakhavan89 »

Ah. I am using a virtual machine, and apparently I had a problem with the model stored on my macOS desktop. When I moved it to the local windows drive, it worked.

This was the original path: \\Mac\Home\Desktop\Model

This is the new path: C:\Users\[folder]\Model

It was unusual, but thank you.
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Vensim 10 Compile Error on Windows

Post by Administrator »

It was probably permissions related. Files on Windows (and MacOS) need to be placed in a folder where the user has permissions to read/write. C:\windows is definitely not allowed.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
aliakhavan89
Senior Member
Posts: 94
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

Re: Vensim 10 Compile Error on Windows

Post by aliakhavan89 »

To clarify, the (potential) problematic path was: \\Mac\Home\Desktop\Model (without any permission issues). I have never put the model in C:\windows.

There might be a problem with how the first path is handled by Vensim or the complier since it is not a Windows-friendly path.
Post Reply