Hi, which "Additional Include Directories" & "Additional Dependencies" should be added to a flexsim project to compile the project? (Flexsim 16.1.1)
It would be great if someone can write down a guide for compiling a flexsim project .
Hi, which "Additional Include Directories" & "Additional Dependencies" should be added to a flexsim project to compile the project? (Flexsim 16.1.1)
It would be great if someone can write down a guide for compiling a flexsim project .
If you open up the Compiler Console (Debug menu), and then try and compile you'll probably get an error like this:
fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
This error is because Visual Studio 2015 doesn't install everything you need if you're not running on Windows 10. You'll need to install the Windows Software Development Kit (SDK)
The only setup you need to do in order to compile FlexSim is to set your Compiler settings in Global Preferences.
Open Global Preferences from the Start Page or the File Menu. Click on the Compiler tab. You'll need to set the compiler settings based upon your system and which version of Visual Studio you have. This will allow FlexSim to use Visual Studio to compile your model.
@Matt Long I did that, but because it prompts "The compiler detected syntax errors." I open up the project in Visual Studio Community 2015, to identify the syntax errors. But It seems I need to add to dependencies as well. I'm unsure of which files need to be linked.
Can you post the errors the compiler is giving you? I don't get any issues when compiling.
What happens when you do Compile Entire Session?
@Matt Long, I'm attaching a few gifs. compile-issue.gifvisual-studio-build.gif.
If the model compiles in Visual Studio and not inside FlexSim then then try and do a compile entire session instead (Build > Compile Entire Session). I believe this is needed whenever the compiler settings are changed. After this you should be ok with just a normal compile
Can I second the request for step by step instructions, or at least something a bit more detailed than what seems to exist now?
Also, would I be right in assuming that I need to have purchased and installed Visual Studio separately before I can compile a model (i.e. the compiler does not come with FlexSim)?
Thanks, Craig
yes, in a commercial environment. In the history of Flexsim was this absolutely normal. In the past Flexsim hasn't got precompiled objects. Each model run had to be compiled.
6 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved