Originally posted by: SystemAdmin
[ujewan said:]
Hello everyone,
I'm trying to implement the column generation algorithm, so I tried to compile 'cutstock.cpp'. But I got 8 errors and 3 warning messages like below.
---------
--------------------Configuration: cutstock - Win32 Debug--------------------
Compiling...
cutstock.cpp
c:\program files\microsoft visual studio\vc98\include\ilconcert\iloallocator.h(84) : error C2653: 'std' : is not a class or namespace name
c:\program files\microsoft visual studio\vc98\include\ilconcert\iloallocator.h(84) : error C2061: syntax error : identifier 'bad_alloc'
c:\program files\microsoft visual studio\vc98\include\ilconcert\iloallocator.h(84) : error C2310: catch handlers must specify one type
c:\program files\microsoft visual studio\vc98\include\ilconcert\iloallocator.h(84) : error C2317: 'try' block starting on line '84' has no catch handlers
c:\program files\microsoft visual studio\vc98\include\ilconcert\iloenv.h(2807) : error C2265: '<Unknown>' : reference to a zero-sized array is illegal
c:\program files\microsoft visual studio\vc98\include\ilconcert\iloenv.h(2837) : error C2065: 'vsprintf' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\ilconcert\ilolinear.h(1221) : warning C4291: 'void *__cdecl operator new(unsigned int,const class IloEnvI *)' : no matching operator delete found; memory will not be freed if initialization throw
s an exception
c:\program files\microsoft visual studio\vc98\include\ilconcert\iloenv.h(759) : see declaration of 'new'
c:\program files\microsoft visual studio\vc98\include\ilconcert\ilomodel.h(771) : warning C4291: 'void *__cdecl operator new(unsigned int,const class IloEnv &)' : no matching operator delete found; memory will not be freed if initialization throws a
n exception
c:\program files\microsoft visual studio\vc98\include\ilconcert\iloenv.h(1674) : see declaration of 'new'
c:\program files\microsoft visual studio\vc98\include\ilconcert\ilomodel.h(774) : warning C4291: 'void *__cdecl operator new(unsigned int,const class IloEnv &)' : no matching operator delete found; memory will not be freed if initialization throws a
n exception
c:\program files\microsoft visual studio\vc98\include\ilconcert\iloenv.h(1674) : see declaration of 'new'
c:\program files\microsoft visual studio\vc98\include\stdio.h(353) : error C2373: 'vsprintf' : redefinition; different type modifiers
d:\jewan\study\research\09spring_new\cutstock\cutstock\cutstock.cpp(20) : error C2371: 'IloNumArray2' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\ilconcert\iloenv.h(2188) : see declaration of 'IloNumArray2'
Error executing cl.exe.
cutstock.obj - 8 error(s), 3 warning(s)
--------------
I googled to debug the first error - 'error C2653: 'std' : is not a class or namespace name', but I failed to fix it. Could you help me please? It's very strange. I just compiled the source code - 'cutstock.cpp'. Why these errors are generated? Thank you in advance.
#CPLEXOptimizers#DecisionOptimization