0

I have IBM's CPLEX 12.7 and Embarcadero's C++Builder. I am trying to link to CPLEX but I am failing. So now I want to use the Callable Library (C API) instead. My question is, how can I setup C++Builder to call the CPLEX C API? How do I link to it?

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770
Rid AR
  • 1
  • 1
  • in what form the lib is shipped? *.dll, *.lib, *.obj or something else? for dll you need to create Intel compatible lib import file (with implib.exe from bin directory of BCB) and then add it to project ... for static *.lib and *.obj you can use `#pragma link "path\\blblabla.obj"` and do not forget to include header files. Also beware some libs need to have defined specific configuration `#define`s and or headers included to work/compile/link properly. – Spektre Feb 06 '17 at 12:09
  • can i ask you to specifie more how to do it – Rid AR Feb 08 '17 at 15:02
  • first specify what kind of lib files you have (file type/extension...)... – Spektre Feb 08 '17 at 15:14
  • look here [linking MS VC++ DLL into BCB](http://stackoverflow.com/a/18030748/2521214) – Spektre Feb 08 '17 at 15:22

0 Answers0