[C con Clase] consulta visual 6 C++ y libreeias CImg

Programante programante en gmail.com
Vie Mar 20 20:32:18 CET 2009


Francisco Javier Duran Montilla escribió:
> Buenos dias, quiero poder manipular  una imagen utilizando Visual 6
> C++  y libreria CImg, pero no he podido ya que me origina error
> podria alguen darme una ide como utilizarla. anexo el codigo y error
> que me origina. (la libreria  imagen y programa estan en un directori.)
>
> Configuration: mi_programa - Win32 Debug--------------------
> Compiling...
> mi_programa.cpp
> g:\claseprocesamientoavanzadomedina\tarea_imagenes\cimg.h(12794) :
> fatal error C1076: compiler limit : internal heap limit reached; use
> /Zm to specify a higher limit
>        
> g:\claseprocesamientoavanzadomedina\tarea_imagenes\cimg.h(32166) : see
> reference to class template instantiation 'cimg_library::CImg<long>'
> being compiled
>        
> g:\claseprocesamientoavanzadomedina\tarea_imagenes\cimg.h(32087) :
> while compiling class-template member function 'struct
> cimg_library::CImgList<unsigned char> &__thiscall
> cimg_library::CImgList<unsigned char>::_load_cimg(struct _iobuf *cons
> t ,const char *const )'
> Error executing cl.exe.
>
> mi_programa.obj - 1 error(s), 0 warning(s)
Como te dice el mensaje, está superando el límite del montón (las
plantillas de CImg son bastante complejas) y podemos arreglarlo usando
el parámetro /Zm.
El comando podría ser:
cl mi_programa.cpp /GX /Zm200 /link User32.lib gdi32.lib shell32.lib





Más información sobre la lista de distribución Cconclase