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.

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!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.