How do you compile C++ code within FlexSim
I am trying to compile this code inside a Custom Code activity, it keeps asking me if I want to proceed without compiling it, the question is, how do I compile it?
How do you compile C++ code within FlexSim
I am trying to compile this code inside a Custom Code activity, it keeps asking me if I want to proceed without compiling it, the question is, how do I compile it?
Not sure why you are trying to enter C++ code directly into FlexSim. I'm pretty sure that you can use FlexSim's FlexScript (patterned after C++) to accomplish pretty much anything you need to do. If not, it may be better to create a .dll in C++ and link it to FlexSim.
I would suggest that you read the Reference>Coding in FlexSim area of the User Manual to better understand how to "code" within FlexSim.
Thanks.
You can compile using the options in the Build menu.
However, that code definitely won't compile.
Each node in the tree which contains code is treated as a single function, so you're trying to declare a function within another.
As Jeff said though, I wouldn't advise using C++ inside FlexSim models unless you actually need to for some reason (and even then, a DLL will likely be a better option), FlexScript can do pretty much everything you may need, is usually fast enough by a comfortable margin, and doesn't need to be compiled explicitly.
10 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