To use subroutines, you need to supply your own appropriate compilers and linkers. Typically you write your user subroutine in C/C++ or Fortran, compile it, and create a Dynamically Linked Library (DLL).
Both Fortran and C/C++ routines are directly supported in the creation of a custom DLL. In other words, you do not have to write Fortran-to-C wrapper routines. For C/C++ routines, you do need to include the following header file:
msolvsub_c_include.h
The compiler requirements to build MotionSolve C++ and Fortran user subroutine DLLs are:
Windows 32/64:
• | C/C++: Microsoft Visual C++ 2005 SP1 (v14.0) |
• | Fortran: Intel Fortran Compiler v10.0.026 |
Linux 64:
• | C/C++: Intel Compiler (ICC) v10.0 |
• | Fortran: Intel Compiler (IFORT) v10.0 |
MacOSX 64:
• | C/C++: Intel Compiler (ICC) v10.1 |
• | Fortran: Intel Compiler (IFORT) v10.1 |
For more information about supported compilers and linkers, and for a list of system requirements, please refer to the HyperWorks Installation Guide.
Within this help system, see the links below for more information on this topic.