Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Problems configuration CPLEX 121 with NeatBeans

    Posted 09/02/11 10:30 AM

    Originally posted by: Zele


    Hi all,
    I have a long time using cplex with Visual Studio in windows, but now, I have Mac Os with Net Beans 6.8. I am doing a big .cpp program and whe I compile, I have the following output:
    "Undefined symbols:
    "_CFRelease", referenced from:
    __ad918f68152890f5d396c114d5a8f7d1 in libcplex.a(env.o)
    __0db551a717f7c3cad7f7426fdb5cf72b in libcplex.a(env.o)
    __74b2744bdd4d6c720842acc15d9ed210 in libcplex.a(env.o)
    "_IOServiceMatching", referenced from:
    __ad918f68152890f5d396c114d5a8f7d1 in libcplex.a(env.o)
    __0db551a717f7c3cad7f7426fdb5cf72b in libcplex.a(env.o)
    __74b2744bdd4d6c720842acc15d9ed210 in libcplex.a(env.o)
    "_IORegistryEntryCreateCFProperty", referenced from:
    __ad918f68152890f5d396c114d5a8f7d1 in libcplex.a(env.o)
    __0db551a717f7c3cad7f7426fdb5cf72b in libcplex.a(env.o)
    __74b2744bdd4d6c720842acc15d9ed210 in libcplex.a(env.o)
    "_CFStringGetTypeID", referenced from:
    __ad918f68152890f5d396c114d5a8f7d1 in libcplex.a(env.o)
    __0db551a717f7c3cad7f7426fdb5cf72b in libcplex.a(env.o)
    __74b2744bdd4d6c720842acc15d9ed210 in libcplex.a(env.o)
    "_IOObjectRelease", referenced from:
    __ad918f68152890f5d396c114d5a8f7d1 in libcplex.a(env.o)
    __0db551a717f7c3cad7f7426fdb5cf72b in libcplex.a(env.o)
    __74b2744bdd4d6c720842acc15d9ed210 in libcplex.a(env.o)
    "_IOServiceGetMatchingService", referenced from:
    __ad918f68152890f5d396c114d5a8f7d1 in libcplex.a(env.o)
    __0db551a717f7c3cad7f7426fdb5cf72b in libcplex.a(env.o)
    __74b2744bdd4d6c720842acc15d9ed210 in libcplex.a(env.o)
    "_CFStringGetCString", referenced from:
    __ad918f68152890f5d396c114d5a8f7d1 in libcplex.a(env.o)
    __0db551a717f7c3cad7f7426fdb5cf72b in libcplex.a(env.o)
    __74b2744bdd4d6c720842acc15d9ed210 in libcplex.a(env.o)
    "_CFGetTypeID", referenced from:
    __ad918f68152890f5d396c114d5a8f7d1 in libcplex.a(env.o)
    __ad918f68152890f5d396c114d5a8f7d1 in libcplex.a(env.o)
    __0db551a717f7c3cad7f7426fdb5cf72b in libcplex.a(env.o)
    __0db551a717f7c3cad7f7426fdb5cf72b in libcplex.a(env.o)
    __74b2744bdd4d6c720842acc15d9ed210 in libcplex.a(env.o)
    __74b2744bdd4d6c720842acc15d9ed210 in libcplex.a(env.o)
    "_CFDataGetLength", referenced from:
    __ad918f68152890f5d396c114d5a8f7d1 in libcplex.a(env.o)
    __0db551a717f7c3cad7f7426fdb5cf72b in libcplex.a(env.o)
    __74b2744bdd4d6c720842acc15d9ed210 in libcplex.a(env.o)
    "_CFDataGetTypeID", referenced from:
    __ad918f68152890f5d396c114d5a8f7d1 in libcplex.a(env.o)
    __0db551a717f7c3cad7f7426fdb5cf72b in libcplex.a(env.o)
    __74b2744bdd4d6c720842acc15d9ed210 in libcplex.a(env.o)
    "_kIOMasterPortDefault", referenced from:
    _kIOMasterPortDefault$non_lazy_ptr in libcplex.a(env.o)
    "_CFDataGetBytePtr", referenced from:
    __ad918f68152890f5d396c114d5a8f7d1 in libcplex.a(env.o)
    __0db551a717f7c3cad7f7426fdb5cf72b in libcplex.a(env.o)
    __74b2744bdd4d6c720842acc15d9ed210 in libcplex.a(env.o)
    "___CFStringMakeConstantString", referenced from:
    __ad918f68152890f5d396c114d5a8f7d1 in libcplex.a(env.o)
    __0db551a717f7c3cad7f7426fdb5cf72b in libcplex.a(env.o)
    __74b2744bdd4d6c720842acc15d9ed210 in libcplex.a(env.o)
    "_kCFAllocatorDefault", referenced from:
    _kCFAllocatorDefault$non_lazy_ptr in libcplex.a(env.o)
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make[2]: *** dist/Debug/GNU-MacOSX/frc_wp Error 1
    make[1]: *** http://.build-conf Error 2
    make: *** http://.build-impl Error 2
    BUILD FAILED (exit value 2, total time: 1s)"
    In project properties, in Build, in C++ compiler, I have include cplex directoreies, and, in Linker, I have included the cplex libraries, with extension .a.
    I will apreciate very much if someone could help me,
    thanks in advance.
    Cele
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Problems configuration CPLEX 121 with NeatBeans

    Posted 09/06/11 12:22 PM

    Originally posted by: SystemAdmin


    There are several flags you have to use when compiling and/or linking on MacOS. Probably you are missing (some of) them.
    I suggest you compile some of the examples provided with CPLEX (the manual should tell you how to do that). Then make sure you use all the flags that are used for compiling the examples.
    If you are familiar with Makefiles you can look directly at
    cplex/examples/*/*/Makefile
    

    This tells you how to build code with CPLEX.
    Maybe also look at this thread. I think I listed all the required options during the discussion there.
    #CPLEXOptimizers
    #DecisionOptimization