简体   繁体   中英

How to link and use remote cplex in my C++ program

I can access to remote server of my university using SSH, and i want to use the cplex which is in the server in my c++ local program.

The solver is installed in the server, so I tried to connect to the server and include the cplex file in my C++ program but the compilation doesn't work!

#include <cplex/bin/cplex>

Please how can i use a remote solver in local? and how can i compile my C++ program in this case?!

Thank you.

There is no magic involved in a #include statement - just about any contemporary implementation consists of reading a file from the filesystem. The paths it considers are influenced with compiler arguments.

However, your description makes it sound like the files you want are residing on a remote system. Unless you are able to mount the remote directories to appear as part of your local filesystem, you need to either copy them to your local machine, or compile it on the remote server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM