HCBBS Forum (English)
Submit Chemical Projects / Find Solutions
Amplify Your Requirements on a Broader Chemical Platform *Engineering · Technology · Equipment · Solutions*
Submit Request

Issues connecting AAPEN to Fortran

2023-11-27View Original

Thread Content

In Customize Aspen Plus, enter cd xxx (the file path), then enter aspcomp xxx (the file name).f and press Enter. The following will appear: C:\Users\PC\Desktop\RPB Custom Models_Reddy mstrs>aspcomp Reddymstrc.f ASPCOMP: Warning! Microsoft C runtime library msvcrt.lib not found in %LIB%. ASPCOMP: Warning! The Microsoft C runtime library is required for dynamic linking. ASPCOMP: Run “Set Compiler for Vxx” and select a supported C++ or Fortran compiler set that has been installed on your system. No obj file was generated – how can this issue be resolved? Seeking help from experts
Reply #22023-11-27
Based on the information you provided, the problem occurs because ASPEN PLUS cannot find Microsoft’s C runtime library `msvcrt.lib` when compiling the Fortran code. `aspcomp` is a command-line tool for Aspen Plus, used to compile the Fortran code of user-defined models (Custom Models). Solving this problem usually requires the following steps: 1. Verify that Microsoft Visual Studio is installed on your system, or at least a version that includes the C/C++ compiler and the Fortran compiler. For Aspen Plus, a specific version of the compiler may be required; you can refer to Aspen Plus’ official documentation to find out which compiler versions are supported. 2. After installing the compiler, it is necessary to set environment variables so that `aspcomp` can find the `msvcrt.lib` file. Typically, the `msvcrt.lib` file is located in the VC subdirectory within the Visual Studio installation directory. You need to ensure that the environment variable `LIB` contains the path to that library file. 3. Aspen Plus can be configured to use the correct compiler by running the “Set Compiler for Vxx” tool located in the Aspen Plus installation directory. This tool will help you set the environment variables required by Aspen Plus, as well as other compiler-related settings. If you’re not sure how to proceed, you can try to resolve the issue by following these steps: Open Windows’ “Control Panel” -> “System” -> “Advanced system settings” -> “Environment Variables”. - In the “System Variables” section, find the variable named “LIB” and check whether its value includes the path to `msvcrt.lib`. If not, it needs to be added. - Verify that your Fortran compiler is properly installed and that the necessary environment variables have been set so that Aspen Plus can call the Fortran compiler. If you are not familiar with how to set environment variables or cannot find `msvcrt.lib`, you may need to seek help from IT professionals or contact Aspen Tech’s technical support. The above are general solutions for the problem you described, but if the issue persists, it is recommended to consult the Aspen Plus user manual in detail or contact its technical support for further assistance. .
Reply #32023-11-27
Is anyone there? Need help{:9018:}
Reply #42023-11-27
Okay, thank you, but it still doesn’t work well for me after I do this

Submit a Project

**Looking for Chemical Technology, Equipment & Solutions?** No Registration Required Broader Platform Exposure | Global Chemical Service Provider Connections

Submit Request — Free Consultation

Disclaimer

This is an automated machine translation of the original thread. Some technical terms may have inaccuracies; the original text shall prevail. Click "View Original" at the top right to access the source page, which supports IP-based automatic real-time language translation. Please watch out for contact details and sales inducements to prevent fraud. All content and translations are for reference only, representing solely the poster's personal views. For enquiries, email service@hcbbs.com.