Topic
  • 44 replies
  • Latest Post - ‏2015-03-12T06:14:07Z by DanielJunglas
SystemAdmin
SystemAdmin
7929 Posts

Pinned topic Cplex and C++ eclipse On Mac OS

‏2011-04-19T06:41:48Z |
Hi
I am new to c++ and Cplex. I want to know how I can link Cplex header files in c++ programs ? I use Eclipse for C++ coding in Mac OS. I include the cplex and concert files but I got this error:

Build of configuration Debug for project test ****

make all
Building file: ../src/test.cpp
Invoking: GCC C++ Compiler
g++ -I/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/include -I/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test.d" -MT"src/test.d" -o"src/test.o" "../src/test.cpp"
In file included from /usr/include/c++/4.0.0/backward/iostream.h:31,
from /Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ilconcert/ilosys.h:394,
from /Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ilconcert/iloenv.h:21,
from /Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ilconcert/iloalg.h:21,
from /Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ilconcert/ilomodel.h:21,
from /Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/include/ilcplex/ilocplex.h:27,
from ../src/test.cpp:10:
/usr/include/c++/4.0.0/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from /Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ilconcert/iloenv.h:21,
from /Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ilconcert/iloalg.h:21,
from /Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ilconcert/ilomodel.h:21,
from /Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/include/ilcplex/ilocplex.h:27,
from ../src/test.cpp:10:
/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ilconcert/ilosys.h:402:23: error: strstream.h: No such file or directory
/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ilconcert/ilosys.h:708: error: 'ostringstream' was not declared in this scope
/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ilconcert/ilosys.h:708: error: 'stream' was not declared in this scope
make: *** http://src/test.o Error 1
Thank you for your helps in advance !
Updated on 2011-05-16T16:08:17Z at 2011-05-16T16:08:17Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-19T07:31:11Z  
    Try adding -DIL_STD to the command line.
    Also see here.
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-19T16:11:20Z  
    Try adding -DIL_STD to the command line.
    Also see here.
    I did the following but nothing happened

    select GCC C compiler->Symbols and add IL_STD
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-19T16:13:56Z  
    I did the following but nothing happened

    select GCC C compiler->Symbols and add IL_STD
    Can you please post the console output of the compile command again?
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-19T16:14:24Z  
    I did the following but nothing happened

    select GCC C compiler->Symbols and add IL_STD
    and this is the new error
    • Build of configuration Debug for project test ****

    make all
    Building file: ../src/test.cpp
    Invoking: GCC C++ Compiler
    g++ -DIL_STD -I/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ -I/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/include/ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test.d" -MT"src/test.d" -o"src/test.o" "../src/test.cpp"
    Finished building: ../src/test.cpp

    Building target: test
    Invoking: MacOS X C++ Linker
    g++ -L/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/lib/x86-64_darwin9_gcc4.0/static_pic/ -L/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86-64_darwin9_gcc4.0/static_pic/ -o "test" ./src/test.o -l/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86-64_darwin9_gcc4.0/static_pic/libcplex.a -l/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86-64_darwin9_gcc4.0/static_pic/libilocplex.a -l/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/lib/x86-64_darwin9_gcc4.0/static_pic/libconcert.a
    ld: library not found for -l/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86-64_darwin9_gcc4.0/static_pic/libcplex.a
    collect2: ld returned 1 exit status
    make: *** test Error 1
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-19T16:18:57Z  
    and this is the new error
    • Build of configuration Debug for project test ****

    make all
    Building file: ../src/test.cpp
    Invoking: GCC C++ Compiler
    g++ -DIL_STD -I/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ -I/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/include/ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test.d" -MT"src/test.d" -o"src/test.o" "../src/test.cpp"
    Finished building: ../src/test.cpp

    Building target: test
    Invoking: MacOS X C++ Linker
    g++ -L/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/lib/x86-64_darwin9_gcc4.0/static_pic/ -L/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86-64_darwin9_gcc4.0/static_pic/ -o "test" ./src/test.o -l/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86-64_darwin9_gcc4.0/static_pic/libcplex.a -l/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86-64_darwin9_gcc4.0/static_pic/libilocplex.a -l/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/lib/x86-64_darwin9_gcc4.0/static_pic/libconcert.a
    ld: library not found for -l/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86-64_darwin9_gcc4.0/static_pic/libcplex.a
    collect2: ld returned 1 exit status
    make: *** test Error 1
    I think you need to specify the libraries in a way so that the link line reads
    -lconcert -lilocplex -lcplex
    

    instead of
    -l/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86-64_darwin9_gcc4.0/static_pic/libcplex.a
    -l/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86-64_darwin9_gcc4.0/static_pic/libilocplex.a
    -l/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/lib/x86-64_darwin9_gcc4.0/static_pic/libconcert.a
    

    This is also described in the thread I referred to in one of my previous posts.
    Updated on 2014-03-25T00:09:17Z at 2014-03-25T00:09:17Z by iron-man
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-19T17:20:41Z  
    I think you need to specify the libraries in a way so that the link line reads
    <pre class="java dw" data-editor-lang="java" data-pbcklang="java" dir="ltr">-lconcert -lilocplex -lcplex </pre>
    instead of
    <pre class="java dw" data-editor-lang="java" data-pbcklang="java" dir="ltr">-l/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86-64_darwin9_gcc4.0/static_pic/libcplex.a -l/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86-64_darwin9_gcc4.0/static_pic/libilocplex.a -l/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/lib/x86-64_darwin9_gcc4.0/static_pic/libconcert.a </pre>
    This is also described in the thread I referred to in one of my previous posts.
    Thank you for your help. now I want to run the following simple program
    #include <iostream>
    #include <ilcplex/ilocplex.h>

    ILOSTLBEGIN

    using namespace std;

    int main() {
    IloEnv env;
    cout << "!!!Hello World!!!" << endl;
    return 0;
    }

    but I get the following error which says
    ld: symbol(s) not found

    Thank you for your time in advance

    • Build of configuration Debug for project test ****

    make all
    Building file: ../src/test.cpp
    Invoking: GCC C++ Compiler
    g++ -DIL_STD -I/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ -I/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/include/ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test.d" -MT"src/test.d" -o"src/test.o" "../src/test.cpp"
    Finished building: ../src/test.cpp

    Building target: test
    Invoking: MacOS X C++ Linker
    g++ -L/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/lib/x86-64_darwin9_gcc4.0/static_pic/ -L/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86-64_darwin9_gcc4.0/static_pic/ -o "test" ./src/test.o
    Undefined symbols:
    "IloEnv::IloEnv()", referenced from:
    _main in test.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make: *** test Error 1
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-19T17:43:07Z  
    Thank you for your help. now I want to run the following simple program
    #include <iostream>
    #include <ilcplex/ilocplex.h>

    ILOSTLBEGIN

    using namespace std;

    int main() {
    IloEnv env;
    cout << "!!!Hello World!!!" << endl;
    return 0;
    }

    but I get the following error which says
    ld: symbol(s) not found

    Thank you for your time in advance

    • Build of configuration Debug for project test ****

    make all
    Building file: ../src/test.cpp
    Invoking: GCC C++ Compiler
    g++ -DIL_STD -I/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ -I/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/include/ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test.d" -MT"src/test.d" -o"src/test.o" "../src/test.cpp"
    Finished building: ../src/test.cpp

    Building target: test
    Invoking: MacOS X C++ Linker
    g++ -L/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/concert/lib/x86-64_darwin9_gcc4.0/static_pic/ -L/Users/eh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86-64_darwin9_gcc4.0/static_pic/ -o "test" ./src/test.o
    Undefined symbols:
    "IloEnv::IloEnv()", referenced from:
    _main in test.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make: *** test Error 1
    OK, the -L arguments on the linker line are now correct. But you no longer have any libraries on that line. You need to specify that you want to link with libraries concert, ilocplex, cplex, pthread and m. The linker line should contain these flags
    -lconcert -lilocplex -lcplex -lpthread -lm
    

    These libraries defined the symbols you are missing. Here is the stuff from the thread I mentioned before:
    In my eclipse version 3.4.0 with CDT 5.0.2 this is all done via roject->Properties->C/C++ Build->Settings.
    On this tab
    • select GCC C compiler->Symbols and add IL_STD (only if you want to do C++)
    • select GCC C compiler->Directories and add CPXINST/cplex/include and CPXINST/concert/include (the latter only for C++)
    • select GCC C Linker->Libraries and add CPXINST/cplex/lib/x86-64_sles10_4.1/static_pic and CPXINST/concert/lib/x86-64_sles10_4.1/static_pic to "Library search path (-L)"
    • select GCC C Linker->Libraries and add ilocplex concert cplex pthread m to "libraries (-l)"
    You are missing the last step.
    Updated on 2014-03-25T00:09:09Z at 2014-03-25T00:09:09Z by iron-man
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-19T18:03:26Z  
    OK, the -L arguments on the linker line are now correct. But you no longer have any libraries on that line. You need to specify that you want to link with libraries concert, ilocplex, cplex, pthread and m. The linker line should contain these flags
    <pre class="java dw" data-editor-lang="java" data-pbcklang="java" dir="ltr">-lconcert -lilocplex -lcplex -lpthread -lm </pre>
    These libraries defined the symbols you are missing. Here is the stuff from the thread I mentioned before:
    In my eclipse version 3.4.0 with CDT 5.0.2 this is all done via roject->Properties->C/C++ Build->Settings.
    On this tab
    • select GCC C compiler->Symbols and add IL_STD (only if you want to do C++)
    • select GCC C compiler->Directories and add CPXINST/cplex/include and CPXINST/concert/include (the latter only for C++)
    • select GCC C Linker->Libraries and add CPXINST/cplex/lib/x86-64_sles10_4.1/static_pic and CPXINST/concert/lib/x86-64_sles10_4.1/static_pic to "Library search path (-L)"
    • select GCC C Linker->Libraries and add ilocplex concert cplex pthread m to "libraries (-l)"
    You are missing the last step.
    I did that and I got the following error message
    make: *** missing separator. Stop.
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-19T18:12:37Z  
    I did that and I got the following error message
    make: *** missing separator. Stop.
    That is everything you get? Can you attach screenshots of the different configuration settings you applied. I.e., screenshots of the different tabs and windows in the project configuration that configure the C/C++ build? In particular of
    Project->Properties->C/C++ Build->Settings->GCC C Linker->Libraries
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-19T19:07:34Z  
    That is everything you get? Can you attach screenshots of the different configuration settings you applied. I.e., screenshots of the different tabs and windows in the project configuration that configure the C/C++ build? In particular of
    Project->Properties->C/C++ Build->Settings->GCC C Linker->Libraries
    Okay, these are the screenshots of the last configuration with last error which is again missing symbol(s) !

    Attachments

  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-19T19:40:57Z  
    Okay, these are the screenshots of the last configuration with last error which is again missing symbol(s) !
    Does it help to replace x86-64_darwin9_gcc4.0 by x86_darwin9_gcc4.0?
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-19T20:10:10Z  
    Does it help to replace x86-64_darwin9_gcc4.0 by x86_darwin9_gcc4.0?
    That is weird !! I changed x86-64 to x86 and that is worked now for the following simple program:
    #include <iostream>
    #include <ilcplex/ilocplex.h>
    ILOSTLBEGIN

    using namespace std;

    int main() {
    IloEnv env;
    cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
    return 0;
    }

    but for this program which is facility.cpp example in Cplex examples directory :

    #include <ilcplex/ilocplex.h>

    ILOSTLBEGIN

    typedef IloArray<IloNumArray> FloatMatrix;
    typedef IloArray<IloNumVarArray> NumVarMatrix;

    int main(int argc, char **argv) {
    IloEnv env;
    try {
    IloInt i, j;

    IloNumArray capacity(env), fixedCost(env);
    FloatMatrix cost(env);
    IloInt nbLocations;
    IloInt nbClients;

    const char* filename = "../../../examples/data/facility.dat";
    if (argc > 1)
    filename = argv[1];
    ifstream file(filename);
    if (!file) {
    cerr << "ERROR: could not open file '" << filename
    << "' for reading" << endl;
    cerr << "usage: " << argv[0] << " <file>" << endl;
    throw(-1);
    }

    file >> capacity >> fixedCost >> cost;
    nbLocations = capacity.getSize();
    nbClients = cost.getSize();

    IloBool consistentData = (fixedCost.getSize() == nbLocations);
    for(i = 0; consistentData && (i < nbClients); i++)
    consistentData = (cost[i].getSize() == nbLocations);
    if (!consistentData) {
    cerr << "ERROR: data file '"
    << filename << "' contains inconsistent data" << endl;
    throw(-1);
    }

    IloNumVarArray open(env, nbLocations, 0, 1, ILOINT);
    NumVarMatrix supply(env, nbClients);
    for(i = 0; i < nbClients; i++)
    supply[i] = IloNumVarArray(env, nbLocations, 0, 1, ILOINT);

    IloModel model(env);
    for(i = 0; i < nbClients; i++)
    model.add(IloSum(supply[i]) == 1);
    for(j = 0; j < nbLocations; j++) {
    IloExpr v(env);
    for(i = 0; i < nbClients; i++)
    v += supply[i][j];
    model.add(v <= capacity[j] * open[j]);
    v.end();
    }

    IloExpr obj = IloScalProd(fixedCost, open);
    for(i = 0; i < nbClients; i++) {
    obj += IloScalProd(cost[i], supply[i]);
    }
    model.add(IloMinimize(env, obj));
    obj.end();

    IloCplex cplex(env);
    cplex.extract(model);
    cplex.solve();

    IloNum tolerance = cplex.getParam(IloCplex::EpInt);
    cplex.out() << "Optimal value: " << cplex.getObjValue() << endl;
    for(j = 0; j < nbLocations; j++) {
    if (cplex.getValue(open[j]) >= 1 - tolerance) {
    cplex.out() << "Facility " << j << " is open, it serves clients ";
    for(i = 0; i < nbClients; i++) {
    if (cplex.getValue(supply[i][j]) >= 1 - tolerance)
    cplex.out() << i << " ";
    }
    cplex.out() << endl;
    }
    }
    }
    catch(IloException& e) {
    cerr << " ERROR: " << e << endl;
    }
    catch(...) {
    cerr << " ERROR" << endl;
    }
    env.end();
    return 0;
    }

    I got the following error:
    • Build of configuration Debug for project test ****

    make all
    Building target: test
    Invoking: MacOS X C++ Linker
    g++ -L/Users/ehsaniranmanesh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86_darwin9_gcc4.0/static_pic -L/Users/ehsaniranmanesh/ilog/CPLEX_Studio_AcademicResearch122/concert/lib/x86_darwin9_gcc4.0/static_pic -o "test" ./src/test.o -lconcert -lilocplex -lcplex -lpthread -lm
    Undefined symbols:
    "_CFDataGetBytePtr", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFDataGetTypeID", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_IORegistryEntryCreateCFProperty", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_IOServiceMatching", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_IOObjectRelease", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_kIOMasterPortDefault", referenced from:
    _kIOMasterPortDefault$non_lazy_ptr in libcplex.a(env.o)
    (maybe you meant: _kIOMasterPortDefault$non_lazy_ptr)
    "_CFStringGetCString", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFGetTypeID", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFDataGetLength", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "___CFStringMakeConstantString", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFStringGetTypeID", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFRelease", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_kCFAllocatorDefault", referenced from:
    _kCFAllocatorDefault$non_lazy_ptr in libcplex.a(env.o)
    (maybe you meant: _kCFAllocatorDefault$non_lazy_ptr)
    "_IOServiceGetMatchingService", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make: *** test Error 1
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-20T02:23:11Z  
    That is weird !! I changed x86-64 to x86 and that is worked now for the following simple program:
    #include <iostream>
    #include <ilcplex/ilocplex.h>
    ILOSTLBEGIN

    using namespace std;

    int main() {
    IloEnv env;
    cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
    return 0;
    }

    but for this program which is facility.cpp example in Cplex examples directory :

    #include <ilcplex/ilocplex.h>

    ILOSTLBEGIN

    typedef IloArray<IloNumArray> FloatMatrix;
    typedef IloArray<IloNumVarArray> NumVarMatrix;

    int main(int argc, char **argv) {
    IloEnv env;
    try {
    IloInt i, j;

    IloNumArray capacity(env), fixedCost(env);
    FloatMatrix cost(env);
    IloInt nbLocations;
    IloInt nbClients;

    const char* filename = "../../../examples/data/facility.dat";
    if (argc > 1)
    filename = argv[1];
    ifstream file(filename);
    if (!file) {
    cerr << "ERROR: could not open file '" << filename
    << "' for reading" << endl;
    cerr << "usage: " << argv[0] << " <file>" << endl;
    throw(-1);
    }

    file >> capacity >> fixedCost >> cost;
    nbLocations = capacity.getSize();
    nbClients = cost.getSize();

    IloBool consistentData = (fixedCost.getSize() == nbLocations);
    for(i = 0; consistentData && (i < nbClients); i++)
    consistentData = (cost[i].getSize() == nbLocations);
    if (!consistentData) {
    cerr << "ERROR: data file '"
    << filename << "' contains inconsistent data" << endl;
    throw(-1);
    }

    IloNumVarArray open(env, nbLocations, 0, 1, ILOINT);
    NumVarMatrix supply(env, nbClients);
    for(i = 0; i < nbClients; i++)
    supply[i] = IloNumVarArray(env, nbLocations, 0, 1, ILOINT);

    IloModel model(env);
    for(i = 0; i < nbClients; i++)
    model.add(IloSum(supply[i]) == 1);
    for(j = 0; j < nbLocations; j++) {
    IloExpr v(env);
    for(i = 0; i < nbClients; i++)
    v += supply[i][j];
    model.add(v <= capacity[j] * open[j]);
    v.end();
    }

    IloExpr obj = IloScalProd(fixedCost, open);
    for(i = 0; i < nbClients; i++) {
    obj += IloScalProd(cost[i], supply[i]);
    }
    model.add(IloMinimize(env, obj));
    obj.end();

    IloCplex cplex(env);
    cplex.extract(model);
    cplex.solve();

    IloNum tolerance = cplex.getParam(IloCplex::EpInt);
    cplex.out() << "Optimal value: " << cplex.getObjValue() << endl;
    for(j = 0; j < nbLocations; j++) {
    if (cplex.getValue(open[j]) >= 1 - tolerance) {
    cplex.out() << "Facility " << j << " is open, it serves clients ";
    for(i = 0; i < nbClients; i++) {
    if (cplex.getValue(supply[i][j]) >= 1 - tolerance)
    cplex.out() << i << " ";
    }
    cplex.out() << endl;
    }
    }
    }
    catch(IloException& e) {
    cerr << " ERROR: " << e << endl;
    }
    catch(...) {
    cerr << " ERROR" << endl;
    }
    env.end();
    return 0;
    }

    I got the following error:
    • Build of configuration Debug for project test ****

    make all
    Building target: test
    Invoking: MacOS X C++ Linker
    g++ -L/Users/ehsaniranmanesh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86_darwin9_gcc4.0/static_pic -L/Users/ehsaniranmanesh/ilog/CPLEX_Studio_AcademicResearch122/concert/lib/x86_darwin9_gcc4.0/static_pic -o "test" ./src/test.o -lconcert -lilocplex -lcplex -lpthread -lm
    Undefined symbols:
    "_CFDataGetBytePtr", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFDataGetTypeID", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_IORegistryEntryCreateCFProperty", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_IOServiceMatching", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_IOObjectRelease", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_kIOMasterPortDefault", referenced from:
    _kIOMasterPortDefault$non_lazy_ptr in libcplex.a(env.o)
    (maybe you meant: _kIOMasterPortDefault$non_lazy_ptr)
    "_CFStringGetCString", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFGetTypeID", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFDataGetLength", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "___CFStringMakeConstantString", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFStringGetTypeID", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFRelease", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_kCFAllocatorDefault", referenced from:
    _kCFAllocatorDefault$non_lazy_ptr in libcplex.a(env.o)
    (maybe you meant: _kCFAllocatorDefault$non_lazy_ptr)
    "_IOServiceGetMatchingService", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make: *** test Error 1
    See the following example:

    #include <ilcplex/ilocplex.h>
    ILOSTLBEGIN
    int main (int argc, char **argv)
    {
    IloEnv env;
    try {
    IloModel model(env);
    IloNumVarArray vars(env);
    vars.add(IloNumVar(env, 0.0, 40.0));
    vars.add(IloNumVar(env));
    vars.add(IloNumVar(env));
    model.add(IloMaximize(env, vars[0] + 2 * vars[1] + 3 * vars[2]));
    model.add( - vars[0] + vars[1] + vars[2] <= 20);
    model.add( vars[0] - 3 * vars[1] + vars[2] <= 30);
    IloCplex cplex(model);
    if ( !cplex.solve() ) {
    env.error() << "Failed to optimize LP." << endl;
    throw(-1);
    }
    IloNumArray vals(env);
    env.out() << "Solution status = " << cplex.getStatus() << endl;
    env.out() << "Solution value = " << cplex.getObjValue() << endl;
    cplex.getValues(vals, vars);
    env.out() << "Values = " << vals << endl;
    }
    catch (IloException& e) {
    cerr << "Concert exception caught: " << e << endl;
    }
    catch (...) {
    cerr << "Unknown exception caught" << endl;
    }
    env.end();
    return 0;
    } // END main
    The error "missing symbol(s)" cane up with the following line :

    IloCplex cplex(model);

    and this is the command output:
    • Build of configuration Debug for project test ****

    make all
    Building file: ../src/test.cpp
    Invoking: GCC C++ Compiler
    g++ -DIL_STD -I/Users/ehsaniranmanesh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ -I/Users/ehsaniranmanesh/ilog/CPLEX_Studio_AcademicResearch122/cplex/include/ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test.d" -MT"src/test.d" -o"src/test.o" "../src/test.cpp"
    Finished building: ../src/test.cpp

    Building target: test
    Invoking: MacOS X C++ Linker
    g++ -L/Users/ehsaniranmanesh/ilog/CPLEX_Studio_AcademicResearch122/concert/lib/x86_darwin9_gcc4.0/static_pic -L/Users/ehsaniranmanesh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86_darwin9_gcc4.0/static_pic -o "test" ./src/test.o -lcplex -lilocplex -lconcert -lpthread -lm
    Undefined symbols:
    "_CFDataGetBytePtr", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFDataGetTypeID", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_IORegistryEntryCreateCFProperty", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_IOServiceMatching", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_IOObjectRelease", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_kIOMasterPortDefault", referenced from:
    _kIOMasterPortDefault$non_lazy_ptr in libcplex.a(env.o)
    (maybe you meant: _kIOMasterPortDefault$non_lazy_ptr)
    "_CFStringGetCString", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFGetTypeID", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFDataGetLength", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "___CFStringMakeConstantString", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFStringGetTypeID", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFRelease", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_kCFAllocatorDefault", referenced from:
    _kCFAllocatorDefault$non_lazy_ptr in libcplex.a(env.o)
    (maybe you meant: _kCFAllocatorDefault$non_lazy_ptr)
    "_IOServiceGetMatchingService", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make: *** test Error 1

    I got totally confused :( !!!
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-20T04:55:59Z  
    See the following example:

    #include <ilcplex/ilocplex.h>
    ILOSTLBEGIN
    int main (int argc, char **argv)
    {
    IloEnv env;
    try {
    IloModel model(env);
    IloNumVarArray vars(env);
    vars.add(IloNumVar(env, 0.0, 40.0));
    vars.add(IloNumVar(env));
    vars.add(IloNumVar(env));
    model.add(IloMaximize(env, vars[0] + 2 * vars[1] + 3 * vars[2]));
    model.add( - vars[0] + vars[1] + vars[2] <= 20);
    model.add( vars[0] - 3 * vars[1] + vars[2] <= 30);
    IloCplex cplex(model);
    if ( !cplex.solve() ) {
    env.error() << "Failed to optimize LP." << endl;
    throw(-1);
    }
    IloNumArray vals(env);
    env.out() << "Solution status = " << cplex.getStatus() << endl;
    env.out() << "Solution value = " << cplex.getObjValue() << endl;
    cplex.getValues(vals, vars);
    env.out() << "Values = " << vals << endl;
    }
    catch (IloException& e) {
    cerr << "Concert exception caught: " << e << endl;
    }
    catch (...) {
    cerr << "Unknown exception caught" << endl;
    }
    env.end();
    return 0;
    } // END main
    The error "missing symbol(s)" cane up with the following line :

    IloCplex cplex(model);

    and this is the command output:
    • Build of configuration Debug for project test ****

    make all
    Building file: ../src/test.cpp
    Invoking: GCC C++ Compiler
    g++ -DIL_STD -I/Users/ehsaniranmanesh/ilog/CPLEX_Studio_AcademicResearch122/concert/include/ -I/Users/ehsaniranmanesh/ilog/CPLEX_Studio_AcademicResearch122/cplex/include/ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test.d" -MT"src/test.d" -o"src/test.o" "../src/test.cpp"
    Finished building: ../src/test.cpp

    Building target: test
    Invoking: MacOS X C++ Linker
    g++ -L/Users/ehsaniranmanesh/ilog/CPLEX_Studio_AcademicResearch122/concert/lib/x86_darwin9_gcc4.0/static_pic -L/Users/ehsaniranmanesh/ilog/CPLEX_Studio_AcademicResearch122/cplex/lib/x86_darwin9_gcc4.0/static_pic -o "test" ./src/test.o -lcplex -lilocplex -lconcert -lpthread -lm
    Undefined symbols:
    "_CFDataGetBytePtr", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFDataGetTypeID", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_IORegistryEntryCreateCFProperty", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_IOServiceMatching", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_IOObjectRelease", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_kIOMasterPortDefault", referenced from:
    _kIOMasterPortDefault$non_lazy_ptr in libcplex.a(env.o)
    (maybe you meant: _kIOMasterPortDefault$non_lazy_ptr)
    "_CFStringGetCString", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFGetTypeID", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFDataGetLength", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "___CFStringMakeConstantString", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFStringGetTypeID", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_CFRelease", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    "_kCFAllocatorDefault", referenced from:
    _kCFAllocatorDefault$non_lazy_ptr in libcplex.a(env.o)
    (maybe you meant: _kCFAllocatorDefault$non_lazy_ptr)
    "_IOServiceGetMatchingService", referenced from:
    _ilm_fun_000 in libcplex.a(env.o)
    _ilm_fun_121 in libcplex.a(env.o)
    _ilm_api_004 in libcplex.a(env.o)
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make: *** test Error 1

    I got totally confused :( !!!
    OK, let's take a step back.
    In your CPLEX installation there should be directories
    cplex/examples/x86-64_darwin9_gcc4.0/static_pic and cplex/examples/x86_darwin9_gcc4.0/static_pic. In any of them, can you run 'make all_cpp' successfully?
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-20T07:13:47Z  
    OK, let's take a step back.
    In your CPLEX installation there should be directories
    cplex/examples/x86-64_darwin9_gcc4.0/static_pic and cplex/examples/x86_darwin9_gcc4.0/static_pic. In any of them, can you run 'make all_cpp' successfully?
    yes I can successfully run 'make all_cpp' . this is the terminal output

    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/blend.cpp -o blend.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include blend.o -o blend -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/cutstock.cpp -o cutstock.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include cutstock.o -o cutstock -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/etsp.cpp -o etsp.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include etsp.o -o etsp -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/facility.cpp -o facility.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include facility.o -o facility -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/fixcost1.cpp -o fixcost1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include fixcost1.o -o fixcost1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/foodmanufact.cpp -o foodmanufact.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include foodmanufact.o -o foodmanufact -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloadmipex1.cpp -o iloadmipex1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloadmipex1.o -o iloadmipex1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloadmipex2.cpp -o iloadmipex2.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloadmipex2.o -o iloadmipex2 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloadmipex3.cpp -o iloadmipex3.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloadmipex3.o -o iloadmipex3 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloadmipex4.cpp -o iloadmipex4.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloadmipex4.o -o iloadmipex4 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloadmipex5.cpp -o iloadmipex5.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloadmipex5.o -o iloadmipex5 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloadmipex6.cpp -o iloadmipex6.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloadmipex6.o -o iloadmipex6 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilodiet.cpp -o ilodiet.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilodiet.o -o ilodiet -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilolpex1.cpp -o ilolpex1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilolpex1.o -o ilolpex1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilolpex2.cpp -o ilolpex2.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilolpex2.o -o ilolpex2 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilolpex3.cpp -o ilolpex3.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilolpex3.o -o ilolpex3 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilolpex4.cpp -o ilolpex4.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilolpex4.o -o ilolpex4 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilolpex6.cpp -o ilolpex6.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilolpex6.o -o ilolpex6 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilolpex7.cpp -o ilolpex7.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilolpex7.o -o ilolpex7 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilomipex1.cpp -o ilomipex1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilomipex1.o -o ilomipex1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilomipex2.cpp -o ilomipex2.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilomipex2.o -o ilomipex2 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilomipex3.cpp -o ilomipex3.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilomipex3.o -o ilomipex3 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilomipex4.cpp -o ilomipex4.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilomipex4.o -o ilomipex4 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilomiqpex1.cpp -o ilomiqpex1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilomiqpex1.o -o ilomiqpex1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilogoalex1.cpp -o ilogoalex1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilogoalex1.o -o ilogoalex1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilogoalex2.cpp -o ilogoalex2.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilogoalex2.o -o ilogoalex2 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilogoalex3.cpp -o ilogoalex3.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilogoalex3.o -o ilogoalex3 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloqcpex1.cpp -o iloqcpex1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloqcpex1.o -o iloqcpex1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloqpex1.cpp -o iloqpex1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloqpex1.o -o iloqpex1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloqpex2.cpp -o iloqpex2.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloqpex2.o -o iloqpex2 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/inout1.cpp -o inout1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include inout1.o -o inout1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/inout3.cpp -o inout3.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include inout3.o -o inout3 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/mixblend.cpp -o mixblend.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include mixblend.o -o mixblend -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/rates.cpp -o rates.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include rates.o -o rates -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/transport.cpp -o transport.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include transport.o -o transport -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilosteel.cpp -o ilosteel.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilosteel.o -o ilosteel -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/warehouse.cpp -o warehouse.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include warehouse.o -o warehouse -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilopopulate.cpp -o ilopopulate.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilopopulate.o -o ilopopulate -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilotuneset.cpp -o ilotuneset.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilotuneset.o -o ilotuneset -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-20T15:39:48Z  
    OK, let's take a step back.
    In your CPLEX installation there should be directories
    cplex/examples/x86-64_darwin9_gcc4.0/static_pic and cplex/examples/x86_darwin9_gcc4.0/static_pic. In any of them, can you run 'make all_cpp' successfully?
    yes I can
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-21T09:41:50Z  
    yes I can successfully run 'make all_cpp' . this is the terminal output

    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/blend.cpp -o blend.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include blend.o -o blend -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/cutstock.cpp -o cutstock.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include cutstock.o -o cutstock -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/etsp.cpp -o etsp.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include etsp.o -o etsp -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/facility.cpp -o facility.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include facility.o -o facility -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/fixcost1.cpp -o fixcost1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include fixcost1.o -o fixcost1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/foodmanufact.cpp -o foodmanufact.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include foodmanufact.o -o foodmanufact -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloadmipex1.cpp -o iloadmipex1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloadmipex1.o -o iloadmipex1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloadmipex2.cpp -o iloadmipex2.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloadmipex2.o -o iloadmipex2 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloadmipex3.cpp -o iloadmipex3.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloadmipex3.o -o iloadmipex3 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloadmipex4.cpp -o iloadmipex4.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloadmipex4.o -o iloadmipex4 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloadmipex5.cpp -o iloadmipex5.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloadmipex5.o -o iloadmipex5 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloadmipex6.cpp -o iloadmipex6.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloadmipex6.o -o iloadmipex6 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilodiet.cpp -o ilodiet.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilodiet.o -o ilodiet -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilolpex1.cpp -o ilolpex1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilolpex1.o -o ilolpex1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilolpex2.cpp -o ilolpex2.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilolpex2.o -o ilolpex2 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilolpex3.cpp -o ilolpex3.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilolpex3.o -o ilolpex3 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilolpex4.cpp -o ilolpex4.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilolpex4.o -o ilolpex4 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilolpex6.cpp -o ilolpex6.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilolpex6.o -o ilolpex6 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilolpex7.cpp -o ilolpex7.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilolpex7.o -o ilolpex7 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilomipex1.cpp -o ilomipex1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilomipex1.o -o ilomipex1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilomipex2.cpp -o ilomipex2.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilomipex2.o -o ilomipex2 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilomipex3.cpp -o ilomipex3.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilomipex3.o -o ilomipex3 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilomipex4.cpp -o ilomipex4.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilomipex4.o -o ilomipex4 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilomiqpex1.cpp -o ilomiqpex1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilomiqpex1.o -o ilomiqpex1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilogoalex1.cpp -o ilogoalex1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilogoalex1.o -o ilogoalex1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilogoalex2.cpp -o ilogoalex2.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilogoalex2.o -o ilogoalex2 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilogoalex3.cpp -o ilogoalex3.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilogoalex3.o -o ilogoalex3 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloqcpex1.cpp -o iloqcpex1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloqcpex1.o -o iloqcpex1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloqpex1.cpp -o iloqpex1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloqpex1.o -o iloqpex1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/iloqpex2.cpp -o iloqpex2.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include iloqpex2.o -o iloqpex2 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/inout1.cpp -o inout1.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include inout1.o -o inout1 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/inout3.cpp -o inout3.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include inout3.o -o inout3 -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/mixblend.cpp -o mixblend.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include mixblend.o -o mixblend -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/rates.cpp -o rates.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include rates.o -o rates -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/transport.cpp -o transport.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include transport.o -o transport -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilosteel.cpp -o ilosteel.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilosteel.o -o ilosteel -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/warehouse.cpp -o warehouse.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include warehouse.o -o warehouse -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilopopulate.cpp -o ilopopulate.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilopopulate.o -o ilopopulate -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -c -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/ilotuneset.cpp -o ilotuneset.o
    MACOSX_DEPLOYMENT_TARGET=10.5 g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ilotuneset.o -o ilotuneset -L../../../lib/x86_darwin9_gcc4.0/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86_darwin9_gcc4.0/static_pic -lconcert -m32 -lm -lpthread -framework CoreFoundation -framework IOKit
    Good. Basically, what you have to do is to configure eclipse so that it produces the same commands. I don't know whether the -m32 switches are mandatory. But I guess you need the
    -framework CoreFoundation -framework IOKit
    

    on the linker line. Does it help to add these? And if that is not sufficient, does it help to add -m32 to compile and link commands?
    Updated on 2014-03-25T00:08:38Z at 2014-03-25T00:08:38Z by iron-man
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-21T18:16:12Z  
    Good. Basically, what you have to do is to configure eclipse so that it produces the same commands. I don't know whether the -m32 switches are mandatory. But I guess you need the
    <pre class="java dw" data-editor-lang="java" data-pbcklang="java" dir="ltr">-framework CoreFoundation -framework IOKit </pre>
    on the linker line. Does it help to add these? And if that is not sufficient, does it help to add -m32 to compile and link commands?
    Yeah That works. Thank you very much Daniel, you have been a great help to me , thank you again :), I really appreciate your time.
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-21T18:22:38Z  
    Yeah That works. Thank you very much Daniel, you have been a great help to me , thank you again :), I really appreciate your time.
    Could you explain what was the problem?
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-04-28T12:50:48Z  
    Could you explain what was the problem?
    The problem were the missing '-framework' options. On MAC OS you have to specify these options or your binary will have missing symbols.
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-05-02T21:09:32Z  
    The problem were the missing '-framework' options. On MAC OS you have to specify these options or your binary will have missing symbols.
    I followed what Rivaas uploaded in the zip file in the first page.
    But I see different error!

    "The program file specified in the launch configuration does not exist
    /Users/mahdinoorizadegan/Documents/workspace/test2/Debug/test2 not found"

    any help!?
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-05-02T21:20:13Z  
    The problem were the missing '-framework' options. On MAC OS you have to specify these options or your binary will have missing symbols.
    It might be helpful.

    In cplex/examples/x86-64_darwin9_gcc4.0/static_pic or cplex/examples/x86_darwin9_gcc4.0/static_pic, there is only one file: "Makefile".
    When I run it, many errors like the below one appears:

    /Users/mahdi/ILOG/CPLEX_Studio_AcademicResearch122/cplex/examples/x86-64_darwin9_gcc4.0/static_pic/Makefile: line 718: JCFLAGS: command not found
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-05-03T11:55:12Z  
    The problem were the missing '-framework' options. On MAC OS you have to specify these options or your binary will have missing symbols.
    Now I got the same errors that Rivaas had when he ran facility.cpp.
    But, I think I have some problem with license or installation as when I run "makefile" I am receiving the above error. When I run "cat makefile" in the terminal, this is the output:

    SYSTEM = x86-64_darwin9_gcc4.0LIBFORMAT = static_pic

    #------------------------------------------------------------
    #
    1. When you adapt this makefile to compile your CPLEX programs
    2. please copy this makefile and set CPLEXDIR and CONCERTDIR to
    3. the directories where CPLEX and CONCERT are installed.
    #
    #------------------------------------------------------------

    CPLEXDIR = ../../..
    CONCERTDIR = ../../../../concert
    #
    1. Compiler selection
    #

    CCC = MACOSX_DEPLOYMENT_TARGET=10.5 g++
    CC = gcc
    JAVAC = javac

    #
    1. Compiler options
    #

    CCOPT = -m64 -O -fPIC -fexceptions -DNDEBUG -DIL_STD
    COPT = -m64 -fPIC
    JOPT = -classpath $(CPLEXDIR)/lib/cplex.jar -O

    #
    1. Link options and libraries
    #

    CPLEXBINDIR = $(CPLEXDIR)/bin/$(BINDIST)
    CPLEXJARDIR = $(CPLEXDIR)/lib/cplex.jar
    CPLEXLIBDIR = $(CPLEXDIR)/lib/$(SYSTEM)/$(LIBFORMAT)
    CONCERTLIBDIR = $(CONCERTDIR)/lib/$(SYSTEM)/$(LIBFORMAT)

    CCLNFLAGS = -L$(CPLEXLIBDIR) -lilocplex -lcplex -L$(CONCERTLIBDIR) -lconcert -m64 -lm -lpthread -framework CoreFoundation -framework IOKit
    CLNFLAGS = -L$(CPLEXLIBDIR) -lcplex -m64 -lm -lpthread -framework CoreFoundation -framework IOKit
    JAVA = java -d64 -Djava.library.path=$(CPLEXDIR)/bin/x86-64_darwin9_gcc4.0 -classpath $(CPLEXJARDIR):
    all:
    make all_c
    make all_cpp
    make all_java

    execute: all
    make execute_c
    make execute_cpp
    make execute_java
    CONCERTINCDIR = $(CONCERTDIR)/include
    CPLEXINCDIR = $(CPLEXDIR)/include

    EXDIR = $(CPLEXDIR)/examples
    EXINC = $(EXDIR)/include
    EXDATA = $(EXDIR)/data
    EXSRCC = $(EXDIR)/src/c
    EXSRCCPP = $(EXDIR)/src/cpp
    EXSRCJAVA = $(EXDIR)/src/java

    CFLAGS = $(COPT) -I$(CPLEXINCDIR)
    CCFLAGS = $(CCOPT) -I$(CPLEXINCDIR) -I$(CONCERTINCDIR)
    JCFLAGS = $(JOPT)
    #------------------------------------------------------------
    1. make all : to compile the examples.
    2. make execute : to compile and execute the examples.
    #------------------------------------------------------------
    C_EX = lpex1 lpex2 lpex3 lpex4 lpex5 lpex6 lpex7 lpex8 \
    mipex1 mipex2 mipex3 mipex4 miqpex1 netex1 netex2 \
    qcpex1 qpex1 qpex2 \
    steel diet fixnet foodmanu adpreex1 \
    admipex1 admipex2 admipex3 admipex4 admipex5 admipex6 admipex7 \
    populate tuneset

    CPP_EX = blend cutstock etsp facility fixcost1 foodmanufact \
    iloadmipex1 iloadmipex2 iloadmipex3 iloadmipex4 \
    iloadmipex5 iloadmipex6 ilodiet \
    ilolpex1 ilolpex2 ilolpex3 ilolpex4 ilolpex6 ilolpex7 \
    ilomipex1 ilomipex2 ilomipex3 ilomipex4 ilomiqpex1 \
    ilogoalex1 ilogoalex2 ilogoalex3 iloqcpex1 iloqpex1 iloqpex2 \
    inout1 inout3 mixblend rates transport ilosteel \
    warehouse ilopopulate ilotuneset

    JAVA_EX = Blend.class MixBlend.class CutStock.class Diet.class \
    Etsp.class Facility.class FixCost1.class \
    FoodManufact.class InOut1.class InOut3.class \
    Rates.class Steel.class Transport.class \
    LPex1.class LPex2.class LPex3.class LPex4.class \
    LPex6.class LPex7.class \
    MIPex1.class MIPex2.class MIPex3.class MIPex4.class MIQPex1.class \
    AdMIPex1.class AdMIPex2.class AdMIPex3.class \
    AdMIPex4.class AdMIPex5.class AdMIPex6.class QCPex1.class \
    QPex1.class QPex2.class Goalex1.class Goalex2.class \
    TuneSet.class \
    Goalex3.class Populate.class Warehouse.class CplexServer.class

    all_c: $(C_EX)

    all_cpp: $(CPP_EX)

    all_java: $(JAVA_EX)

    execute_c: $(C_EX)
    ./lpex1 -r
    ./lpex2 $(EXDATA)/example.mps p
    ./lpex3
    ./lpex4
    ./lpex5
    ./lpex6
    ./lpex7 $(EXDATA)/afiro.mps p
    ./lpex8
    ./mipex1
    ./mipex2 $(EXDATA)/mexample.mps
    ./mipex3
    ./mipex4 $(EXDATA)/p0033.mps l
    ./miqpex1
    ./netex1
    ./netex2 $(EXDATA)/infnet.net
    ./qcpex1
    ./qpex1
    ./qpex2 $(EXDATA)/qpex.lp o
    ./steel -r
    ./steel -c
    ./diet -r $(EXDATA)/diet.dat
    ./fixnet
    ./foodmanu
    ./populate $(EXDATA)/location.lp
    ./tuneset $(EXDATA)/p0033.mps
    ./adpreex1
    ./admipex1 $(EXDATA)/mexample.mps
    ./admipex2 $(EXDATA)/p0033.mps
    ./admipex3 $(EXDATA)/sosex3.lp
    ./admipex4
    ./admipex5
    ./admipex6 $(EXDATA)/mexample.mps
    ./admipex7 $(EXDATA)/mexample.mps

    execute_cpp: $(CPP_EX)
    ./blend
    ./cutstock
    ./etsp
    ./facility
    ./fixcost1
    ./foodmanufact
    ./iloadmipex1 $(EXDATA)/mexample.mps
    ./iloadmipex2 $(EXDATA)/p0033.mps
    ./iloadmipex3 $(EXDATA)/sosex3.lp
    ./iloadmipex4
    ./iloadmipex5
    ./iloadmipex6 $(EXDATA)/mexample.mps
    ./ilodiet
    ./ilogoalex1 $(EXDATA)/mexample.mps
    ./ilogoalex2
    ./ilogoalex3 $(EXDATA)/mexample.mps
    ./ilolpex1 -r
    ./ilolpex2 $(EXDATA)/example.mps p
    ./ilolpex3
    ./ilolpex4
    ./ilolpex6
    ./ilolpex7 $(EXDATA)/afiro.mps p
    ./ilomipex1
    ./ilomipex2 $(EXDATA)/mexample.mps
    ./ilomipex3
    ./ilomipex4 $(EXDATA)/p0033.mps l
    ./ilomiqpex1
    ./ilopopulate $(EXDATA)/location.lp
    ./iloqcpex1
    ./iloqpex1
    ./iloqpex2 $(EXDATA)/qpex.lp o
    ./ilotuneset $(EXDATA)/p0033.mps
    ./inout1
    ./inout3
    ./mixblend
    ./rates
    ./ilosteel
    ./transport 1
    ./warehouse

    execute_java: $(JAVA_EX)
    $(JAVA) Goalex1 $(EXDATA)/mexample.mps
    $(JAVA) Goalex2
    $(JAVA) Goalex3 $(EXDATA)/mexample.mps
    $(JAVA) LPex1 -r
    $(JAVA) LPex2 $(EXDATA)/example.mps p
    $(JAVA) LPex3
    $(JAVA) LPex4
    $(JAVA) LPex6
    $(JAVA) LPex7 $(EXDATA)/afiro.mps p
    $(JAVA) MIPex1
    $(JAVA) MIPex2 $(EXDATA)/mexample.mps
    $(JAVA) MIPex3
    $(JAVA) MIPex4 $(EXDATA)/p0033.mps l
    $(JAVA) MIQPex1
    $(JAVA) QCPex1
    $(JAVA) QPex1
    $(JAVA) QPex2 $(EXDATA)/qpex.lp o
    $(JAVA) Blend
    $(JAVA) CplexServer
    $(JAVA) CutStock
    $(JAVA) Diet
    $(JAVA) Etsp
    $(JAVA) Facility
    $(JAVA) FixCost1
    $(JAVA) FoodManufact
    $(JAVA) InOut1
    $(JAVA) InOut3
    $(JAVA) MixBlend
    $(JAVA) Populate $(EXDATA)/location.lp
    $(JAVA) Rates
    $(JAVA) Steel
    $(JAVA) Transport 1
    $(JAVA) TuneSet $(EXDATA)/p0033.mps
    $(JAVA) Warehouse
    $(JAVA) AdMIPex1 $(EXDATA)/mexample.mps
    $(JAVA) AdMIPex2 $(EXDATA)/p0033.mps
    $(JAVA) AdMIPex3 $(EXDATA)/sosex3.lp
    $(JAVA) AdMIPex4
    $(JAVA) AdMIPex5
    $(JAVA) AdMIPex6 $(EXDATA)/mexample.mps

    #

    clean :
    /bin/rm -rf *.o *~ *.class
    /bin/rm -rf $(C_EX) $(CPP_EX)
    /bin/rm -rf *.mps *.ord *.sos *.lp *.sav *.net *.msg *.log *.clp

    #
    #
    1. The examples
    #

    lpex1: lpex1.o
    $(CC) $(CFLAGS) lpex1.o -o lpex1 $(CLNFLAGS)
    lpex1.o: $(EXSRCC)/lpex1.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/lpex1.c -o lpex1.o

    lpex2: lpex2.o
    $(CC) $(CFLAGS) lpex2.o -o lpex2 $(CLNFLAGS)
    lpex2.o: $(EXSRCC)/lpex2.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/lpex2.c -o lpex2.o

    lpex3: lpex3.o
    $(CC) $(CFLAGS) lpex3.o -o lpex3 $(CLNFLAGS)
    lpex3.o: $(EXSRCC)/lpex3.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/lpex3.c -o lpex3.o

    lpex4: lpex4.o
    $(CC) $(CFLAGS) lpex4.o -o lpex4 $(CLNFLAGS)
    lpex4.o: $(EXSRCC)/lpex4.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/lpex4.c -o lpex4.o

    lpex5: lpex5.o
    $(CC) $(CFLAGS) lpex5.o -o lpex5 $(CLNFLAGS)
    lpex5.o: $(EXSRCC)/lpex5.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/lpex5.c -o lpex5.o

    lpex6: lpex6.o
    $(CC) $(CFLAGS) lpex6.o -o lpex6 $(CLNFLAGS)
    lpex6.o: $(EXSRCC)/lpex6.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/lpex6.c -o lpex6.o

    lpex7: lpex7.o
    $(CC) $(CFLAGS) lpex7.o -o lpex7 $(CLNFLAGS)
    lpex7.o: $(EXSRCC)/lpex7.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/lpex7.c -o lpex7.o

    lpex8: lpex8.o
    $(CC) $(CFLAGS) lpex8.o -o lpex8 $(CLNFLAGS)
    lpex8.o: $(EXSRCC)/lpex8.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/lpex8.c -o lpex8.o

    mipex1: mipex1.o
    $(CC) $(CFLAGS) mipex1.o -o mipex1 $(CLNFLAGS)
    mipex1.o: $(EXSRCC)/mipex1.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/mipex1.c -o mipex1.o

    mipex2: mipex2.o
    $(CC) $(CFLAGS) mipex2.o -o mipex2 $(CLNFLAGS)
    mipex2.o: $(EXSRCC)/mipex2.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/mipex2.c -o mipex2.o

    mipex3: mipex3.o
    $(CC) $(CFLAGS) mipex3.o -o mipex3 $(CLNFLAGS)
    mipex3.o: $(EXSRCC)/mipex3.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/mipex3.c -o mipex3.o

    mipex4: mipex4.o
    $(CC) $(CFLAGS) mipex4.o -o mipex4 $(CLNFLAGS)
    mipex4.o: $(EXSRCC)/mipex4.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/mipex4.c -o mipex4.o

    miqpex1: miqpex1.o
    $(CC) $(CFLAGS) miqpex1.o -o miqpex1 $(CLNFLAGS)
    miqpex1.o: $(EXSRCC)/miqpex1.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/miqpex1.c -o miqpex1.o

    netex1: netex1.o
    $(CC) $(CFLAGS) netex1.o -o netex1 $(CLNFLAGS)
    netex1.o: $(EXSRCC)/netex1.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/netex1.c -o netex1.o

    netex2: netex2.o
    $(CC) $(CFLAGS) netex2.o -o netex2 $(CLNFLAGS)
    netex2.o: $(EXSRCC)/netex2.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/netex2.c -o netex2.o

    qcpex1: qcpex1.o
    $(CC) $(CFLAGS) qcpex1.o -o qcpex1 $(CLNFLAGS)
    qcpex1.o: $(EXSRCC)/qcpex1.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/qcpex1.c -o qcpex1.o

    qpex1: qpex1.o
    $(CC) $(CFLAGS) qpex1.o -o qpex1 $(CLNFLAGS)
    qpex1.o: $(EXSRCC)/qpex1.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/qpex1.c -o qpex1.o

    qpex2: qpex2.o
    $(CC) $(CFLAGS) qpex2.o -o qpex2 $(CLNFLAGS)
    qpex2.o: $(EXSRCC)/qpex2.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/qpex2.c -o qpex2.o

    steel: steel.o
    $(CC) $(CFLAGS) steel.o -o steel $(CLNFLAGS)
    steel.o: $(EXSRCC)/steel.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/steel.c -o steel.o

    diet: diet.o
    $(CC) $(CFLAGS) diet.o -o diet $(CLNFLAGS)
    diet.o: $(EXSRCC)/diet.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/diet.c -o diet.o

    fixnet: fixnet.o
    $(CC) $(CFLAGS) fixnet.o -o fixnet $(CLNFLAGS)
    fixnet.o: $(EXSRCC)/fixnet.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/fixnet.c -o fixnet.o

    foodmanu: foodmanu.o
    $(CC) $(CFLAGS) foodmanu.o -o foodmanu $(CLNFLAGS)
    foodmanu.o: $(EXSRCC)/foodmanu.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/foodmanu.c -o foodmanu.o

    adpreex1: adpreex1.o
    $(CC) $(CFLAGS) adpreex1.o -o adpreex1 $(CLNFLAGS)
    adpreex1.o: $(EXSRCC)/adpreex1.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/adpreex1.c -o adpreex1.o

    admipex1: admipex1.o
    $(CC) $(CFLAGS) admipex1.o -o admipex1 $(CLNFLAGS)
    admipex1.o: $(EXSRCC)/admipex1.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/admipex1.c -o admipex1.o

    admipex2: admipex2.o
    $(CC) $(CFLAGS) admipex2.o -o admipex2 $(CLNFLAGS)
    admipex2.o: $(EXSRCC)/admipex2.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/admipex2.c -o admipex2.o

    admipex3: admipex3.o
    $(CC) $(CFLAGS) admipex3.o -o admipex3 $(CLNFLAGS)
    admipex3.o: $(EXSRCC)/admipex3.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/admipex3.c -o admipex3.o

    admipex4: admipex4.o
    $(CC) $(CFLAGS) admipex4.o -o admipex4 $(CLNFLAGS)
    admipex4.o: $(EXSRCC)/admipex4.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/admipex4.c -o admipex4.o

    admipex5: admipex5.o
    $(CC) $(CFLAGS) admipex5.o -o admipex5 $(CLNFLAGS)
    admipex5.o: $(EXSRCC)/admipex5.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/admipex5.c -o admipex5.o

    admipex6: admipex6.o
    $(CC) $(CFLAGS) admipex6.o -o admipex6 $(CLNFLAGS)
    admipex6.o: $(EXSRCC)/admipex6.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/admipex6.c -o admipex6.o

    admipex7: admipex7.o
    $(CC) $(CFLAGS) admipex7.o -o admipex7 $(CLNFLAGS)
    admipex7.o: $(EXSRCC)/admipex7.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/admipex7.c -o admipex7.o

    populate: populate.o
    $(CC) $(CFLAGS) populate.o -o populate $(CLNFLAGS)
    populate.o: $(EXSRCC)/populate.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/populate.c -o populate.o

    tuneset: tuneset.o
    $(CC) $(CFLAGS) tuneset.o -o tuneset $(CLNFLAGS)
    tuneset.o: $(EXSRCC)/tuneset.c
    $(CC) -c $(CFLAGS) $(EXSRCC)/tuneset.c -o tuneset.o

    blend: blend.o
    $(CCC) $(CCFLAGS) blend.o -o blend $(CCLNFLAGS)
    blend.o: $(EXSRCCPP)/blend.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/blend.cpp -o blend.o

    cutstock: cutstock.o
    $(CCC) $(CCFLAGS) cutstock.o -o cutstock $(CCLNFLAGS)
    cutstock.o: $(EXSRCCPP)/cutstock.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/cutstock.cpp -o cutstock.o

    etsp: etsp.o
    $(CCC) $(CCFLAGS) etsp.o -o etsp $(CCLNFLAGS)
    etsp.o: $(EXSRCCPP)/etsp.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/etsp.cpp -o etsp.o

    facility: facility.o
    $(CCC) $(CCFLAGS) facility.o -o facility $(CCLNFLAGS)
    facility.o: $(EXSRCCPP)/facility.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/facility.cpp -o facility.o

    fixcost1: fixcost1.o
    $(CCC) $(CCFLAGS) fixcost1.o -o fixcost1 $(CCLNFLAGS)
    fixcost1.o: $(EXSRCCPP)/fixcost1.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/fixcost1.cpp -o fixcost1.o

    foodmanufact: foodmanufact.o
    $(CCC) $(CCFLAGS) foodmanufact.o -o foodmanufact $(CCLNFLAGS)
    foodmanufact.o: $(EXSRCCPP)/foodmanufact.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/foodmanufact.cpp -o foodmanufact.o

    iloadmipex1: iloadmipex1.o
    $(CCC) $(CCFLAGS) iloadmipex1.o -o iloadmipex1 $(CCLNFLAGS)
    iloadmipex1.o: $(EXSRCCPP)/iloadmipex1.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/iloadmipex1.cpp -o iloadmipex1.o

    iloadmipex2: iloadmipex2.o
    $(CCC) $(CCFLAGS) iloadmipex2.o -o iloadmipex2 $(CCLNFLAGS)
    iloadmipex2.o: $(EXSRCCPP)/iloadmipex2.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/iloadmipex2.cpp -o iloadmipex2.o

    iloadmipex3: iloadmipex3.o
    $(CCC) $(CCFLAGS) iloadmipex3.o -o iloadmipex3 $(CCLNFLAGS)
    iloadmipex3.o: $(EXSRCCPP)/iloadmipex3.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/iloadmipex3.cpp -o iloadmipex3.o

    iloadmipex4: iloadmipex4.o
    $(CCC) $(CCFLAGS) iloadmipex4.o -o iloadmipex4 $(CCLNFLAGS)
    iloadmipex4.o: $(EXSRCCPP)/iloadmipex4.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/iloadmipex4.cpp -o iloadmipex4.o

    iloadmipex5: iloadmipex5.o
    $(CCC) $(CCFLAGS) iloadmipex5.o -o iloadmipex5 $(CCLNFLAGS)
    iloadmipex5.o: $(EXSRCCPP)/iloadmipex5.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/iloadmipex5.cpp -o iloadmipex5.o

    iloadmipex6: iloadmipex6.o
    $(CCC) $(CCFLAGS) iloadmipex6.o -o iloadmipex6 $(CCLNFLAGS)
    iloadmipex6.o: $(EXSRCCPP)/iloadmipex6.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/iloadmipex6.cpp -o iloadmipex6.o

    ilodiet: ilodiet.o
    $(CCC) $(CCFLAGS) ilodiet.o -o ilodiet $(CCLNFLAGS)
    ilodiet.o: $(EXSRCCPP)/ilodiet.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilodiet.cpp -o ilodiet.o

    ilolpex1: ilolpex1.o
    $(CCC) $(CCFLAGS) ilolpex1.o -o ilolpex1 $(CCLNFLAGS)
    ilolpex1.o: $(EXSRCCPP)/ilolpex1.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilolpex1.cpp -o ilolpex1.o

    ilolpex2: ilolpex2.o
    $(CCC) $(CCFLAGS) ilolpex2.o -o ilolpex2 $(CCLNFLAGS)
    ilolpex2.o: $(EXSRCCPP)/ilolpex2.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilolpex2.cpp -o ilolpex2.o

    ilolpex3: ilolpex3.o
    $(CCC) $(CCFLAGS) ilolpex3.o -o ilolpex3 $(CCLNFLAGS)
    ilolpex3.o: $(EXSRCCPP)/ilolpex3.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilolpex3.cpp -o ilolpex3.o

    ilolpex4: ilolpex4.o
    $(CCC) $(CCFLAGS) ilolpex4.o -o ilolpex4 $(CCLNFLAGS)
    ilolpex4.o: $(EXSRCCPP)/ilolpex4.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilolpex4.cpp -o ilolpex4.o

    ilolpex6: ilolpex6.o
    $(CCC) $(CCFLAGS) ilolpex6.o -o ilolpex6 $(CCLNFLAGS)
    ilolpex6.o: $(EXSRCCPP)/ilolpex6.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilolpex6.cpp -o ilolpex6.o

    ilolpex7: ilolpex7.o
    $(CCC) $(CCFLAGS) ilolpex7.o -o ilolpex7 $(CCLNFLAGS)
    ilolpex7.o: $(EXSRCCPP)/ilolpex7.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilolpex7.cpp -o ilolpex7.o

    ilomipex1: ilomipex1.o
    $(CCC) $(CCFLAGS) ilomipex1.o -o ilomipex1 $(CCLNFLAGS)
    ilomipex1.o: $(EXSRCCPP)/ilomipex1.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilomipex1.cpp -o ilomipex1.o

    ilomipex2: ilomipex2.o
    $(CCC) $(CCFLAGS) ilomipex2.o -o ilomipex2 $(CCLNFLAGS)
    ilomipex2.o: $(EXSRCCPP)/ilomipex2.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilomipex2.cpp -o ilomipex2.o

    ilomipex3: ilomipex3.o
    $(CCC) $(CCFLAGS) ilomipex3.o -o ilomipex3 $(CCLNFLAGS)
    ilomipex3.o: $(EXSRCCPP)/ilomipex3.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilomipex3.cpp -o ilomipex3.o

    ilomipex4: ilomipex4.o
    $(CCC) $(CCFLAGS) ilomipex4.o -o ilomipex4 $(CCLNFLAGS)
    ilomipex4.o: $(EXSRCCPP)/ilomipex4.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilomipex4.cpp -o ilomipex4.o

    inout1: inout1.o
    $(CCC) $(CCFLAGS) inout1.o -o inout1 $(CCLNFLAGS)
    inout1.o: $(EXSRCCPP)/inout1.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/inout1.cpp -o inout1.o

    inout3: inout3.o
    $(CCC) $(CCFLAGS) inout3.o -o inout3 $(CCLNFLAGS)
    inout3.o: $(EXSRCCPP)/inout3.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/inout3.cpp -o inout3.o

    ilomiqpex1: ilomiqpex1.o
    $(CCC) $(CCFLAGS) ilomiqpex1.o -o ilomiqpex1 $(CCLNFLAGS)
    ilomiqpex1.o: $(EXSRCCPP)/ilomiqpex1.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilomiqpex1.cpp -o ilomiqpex1.o

    ilogoalex1: ilogoalex1.o
    $(CCC) $(CCFLAGS) ilogoalex1.o -o ilogoalex1 $(CCLNFLAGS)
    ilogoalex1.o: $(EXSRCCPP)/ilogoalex1.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilogoalex1.cpp -o ilogoalex1.o

    ilogoalex2: ilogoalex2.o
    $(CCC) $(CCFLAGS) ilogoalex2.o -o ilogoalex2 $(CCLNFLAGS)
    ilogoalex2.o: $(EXSRCCPP)/ilogoalex2.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilogoalex2.cpp -o ilogoalex2.o

    ilogoalex3: ilogoalex3.o
    $(CCC) $(CCFLAGS) ilogoalex3.o -o ilogoalex3 $(CCLNFLAGS)
    ilogoalex3.o: $(EXSRCCPP)/ilogoalex3.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilogoalex3.cpp -o ilogoalex3.o

    iloqcpex1: iloqcpex1.o
    $(CCC) $(CCFLAGS) iloqcpex1.o -o iloqcpex1 $(CCLNFLAGS)
    iloqcpex1.o: $(EXSRCCPP)/iloqcpex1.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/iloqcpex1.cpp -o iloqcpex1.o

    iloqpex1: iloqpex1.o
    $(CCC) $(CCFLAGS) iloqpex1.o -o iloqpex1 $(CCLNFLAGS)
    iloqpex1.o: $(EXSRCCPP)/iloqpex1.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/iloqpex1.cpp -o iloqpex1.o

    iloqpex2: iloqpex2.o
    $(CCC) $(CCFLAGS) iloqpex2.o -o iloqpex2 $(CCLNFLAGS)
    iloqpex2.o: $(EXSRCCPP)/iloqpex2.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/iloqpex2.cpp -o iloqpex2.o

    mixblend: mixblend.o
    $(CCC) $(CCFLAGS) mixblend.o -o mixblend $(CCLNFLAGS)
    mixblend.o: $(EXSRCCPP)/mixblend.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/mixblend.cpp -o mixblend.o

    rates: rates.o
    $(CCC) $(CCFLAGS) rates.o -o rates $(CCLNFLAGS)
    rates.o: $(EXSRCCPP)/rates.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/rates.cpp -o rates.o

    transport: transport.o
    $(CCC) $(CCFLAGS) transport.o -o transport $(CCLNFLAGS)
    transport.o: $(EXSRCCPP)/transport.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/transport.cpp -o transport.o

    warehouse: warehouse.o
    $(CCC) $(CCFLAGS) warehouse.o -o warehouse $(CCLNFLAGS)
    warehouse.o: $(EXSRCCPP)/warehouse.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/warehouse.cpp -o warehouse.o

    ilopopulate: ilopopulate.o
    $(CCC) $(CCFLAGS) ilopopulate.o -o ilopopulate $(CCLNFLAGS)
    ilopopulate.o: $(EXSRCCPP)/ilopopulate.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilopopulate.cpp -o ilopopulate.o

    ilotuneset: ilotuneset.o
    $(CCC) $(CCFLAGS) ilotuneset.o -o ilotuneset $(CCLNFLAGS)
    ilotuneset.o: $(EXSRCCPP)/ilotuneset.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilotuneset.cpp -o ilotuneset.o

    ilosteel: ilosteel.o
    $(CCC) $(CCFLAGS) ilosteel.o -o ilosteel $(CCLNFLAGS)
    ilosteel.o: $(EXSRCCPP)/ilosteel.cpp
    $(CCC) -c $(CCFLAGS) $(EXSRCCPP)/ilosteel.cpp -o ilosteel.o

    LPex1.class: $(EXSRCJAVA)/LPex1.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/LPex1.java

    LPex2.class: $(EXSRCJAVA)/LPex2.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/LPex2.java

    LPex3.class: $(EXSRCJAVA)/LPex3.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/LPex3.java

    LPex4.class: $(EXSRCJAVA)/LPex4.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/LPex4.java

    LPex6.class: $(EXSRCJAVA)/LPex6.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/LPex6.java

    LPex7.class: $(EXSRCJAVA)/LPex7.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/LPex7.java

    MIPex1.class: $(EXSRCJAVA)/MIPex1.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/MIPex1.java

    MIPex2.class: $(EXSRCJAVA)/MIPex2.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/MIPex2.java

    MIPex3.class: $(EXSRCJAVA)/MIPex3.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/MIPex3.java

    MIPex4.class: $(EXSRCJAVA)/MIPex4.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/MIPex4.java

    MIQPex1.class: $(EXSRCJAVA)/MIQPex1.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/MIQPex1.java

    Goalex1.class: $(EXSRCJAVA)/Goalex1.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/Goalex1.java

    Goalex2.class: $(EXSRCJAVA)/Goalex2.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/Goalex2.java

    Goalex3.class: $(EXSRCJAVA)/Goalex3.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/Goalex3.java

    AdMIPex1.class: $(EXSRCJAVA)/AdMIPex1.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/AdMIPex1.java

    AdMIPex2.class: $(EXSRCJAVA)/AdMIPex2.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/AdMIPex2.java

    AdMIPex3.class: $(EXSRCJAVA)/AdMIPex3.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/AdMIPex3.java

    AdMIPex4.class: $(EXSRCJAVA)/AdMIPex4.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/AdMIPex4.java

    AdMIPex5.class: $(EXSRCJAVA)/AdMIPex5.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/AdMIPex5.java

    AdMIPex6.class: $(EXSRCJAVA)/AdMIPex6.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/AdMIPex6.java

    QCPex1.class: $(EXSRCJAVA)/QCPex1.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/QCPex1.java

    QPex1.class: $(EXSRCJAVA)/QPex1.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/QPex1.java

    QPex2.class: $(EXSRCJAVA)/QPex2.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/QPex2.java

    Diet.class: $(EXSRCJAVA)/Diet.java $(EXSRCJAVA)/InputDataReader.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/Diet.java \
    $(EXSRCJAVA)/InputDataReader.java

    Etsp.class: $(EXSRCJAVA)/Etsp.java $(EXSRCJAVA)/InputDataReader.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/Etsp.java \
    $(EXSRCJAVA)/InputDataReader.java

    Blend.class: $(EXSRCJAVA)/Blend.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/Blend.java

    MixBlend.class: $(EXSRCJAVA)/MixBlend.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/MixBlend.java

    CplexServer.class: $(EXSRCJAVA)/CplexServer.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/CplexServer.java

    CutStock.class: $(EXSRCJAVA)/CutStock.java $(EXSRCJAVA)/InputDataReader.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/InputDataReader.java \
    $(EXSRCJAVA)/CutStock.java

    Facility.class: $(EXSRCJAVA)/Facility.java $(EXSRCJAVA)/InputDataReader.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/InputDataReader.java \
    $(EXSRCJAVA)/Facility.java

    FixCost1.class: $(EXSRCJAVA)/FixCost1.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/FixCost1.java

    FoodManufact.class: $(EXSRCJAVA)/FoodManufact.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/FoodManufact.java

    InOut1.class: $(EXSRCJAVA)/InOut1.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/InOut1.java

    InOut3.class: $(EXSRCJAVA)/InOut3.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/InOut3.java

    Populate.class: $(EXSRCJAVA)/Populate.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/Populate.java

    TuneSet.class: $(EXSRCJAVA)/TuneSet.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/TuneSet.java

    Rates.class: $(EXSRCJAVA)/Rates.java $(EXSRCJAVA)/InputDataReader.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/InputDataReader.java \
    $(EXSRCJAVA)/Rates.java

    Steel.class: $(EXSRCJAVA)/Steel.java $(EXSRCJAVA)/InputDataReader.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/InputDataReader.java \
    $(EXSRCJAVA)/Steel.java

    Transport.class: $(EXSRCJAVA)/Transport.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/Transport.java

    Warehouse.class: $(EXSRCJAVA)/Warehouse.java
    $(JAVAC) $(JCFLAGS) -d . $(EXSRCJAVA)/Warehouse.java

    1. Local Variables:
    2. mode: makefile
    3. End:
    mahdis-MacBook-Pro:static_pic mahdi$
  • SystemAdmin
    SystemAdmin
    7929 Posts

    Re: Cplex and C++ eclipse On Mac OS

    ‏2011-05-05T21:05:18Z  
    The problem were the missing '-framework' options. On MAC OS you have to specify these options or your binary will have missing symbols.
    No idea?!