0

Hi,

I have just installed CPLEX, and this has installed correctly. It put it's header files under: /home/dorien/ILOG/..../include/

Now I am trying to compile an example, which has:

#include <ilcplex/ilocplex.h>

but I got:

/home/dorien/C++/cplex-build-desktop/../cplex/main.cpp:35: error: ilcplex/ilocplex.h: No such file or directory

First thing I did was lose the .h... to no effect.
Then I tried specifying the entire path to the header
#include </home/dorien/ILOG/CPLEX_Studio_AcademicResearch122/cplex/include/ilcplex/ilocplex.h>

Same message.

The CPLEX documentation said

To exploit a C++ library like ILOG CPLEX in Concert Technology, you need to tell your compiler where to find the ILOG CPLEX and Concert include files (that is, the header files), and you also need to tell the linker where to find the ILOG CPLEX and Concert libraries.

Any clues?

My environment is OpenSuse 64bit, using Qt Creator.

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by dorien
0

EDIT

After restarting Qt creator, It now finds the files with the long precise location...

However, is there a way that I don't need to specify the entire location?

Thanks!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.