Subscribe

Compilation problem from the start

  1. 2010-07-15 08:57:11 PDT
    Hello, I am a beginner programmer. I use Visual Studio 6.0. I simply cannot compile anything using the CImg, here is the thing : I dowloaded CImg 1.3.7. The n I tried to compile one the many examples given, and every time, I time 102 errors, the first one being : e:\codec++\libimage\cimg-1.3.7\cimg.h(1931) : error C2039: 'FILE' : is not a member of 'std' e:\codec++\libimage\cimg-1.3.7\cimg.h(1931) : error C2039: 'FILE' : is not a member of 'std' e:\codec++\libimage\cimg-1.3.7\cimg.h(3866) : error C2039: 'FILE' : is not a member of 'std' e:\codec++\libimage\cimg-1.3.7\cimg.h(3866) : error C2039: 'FILE' : is not a member of 'std' e:\codec++\libimage\cimg-1.3.7\cimg.h(3867) : error C2039: 'FILE' : is not a member of 'std' e:\codec++\libimage\cimg-1.3.7\cimg.h(3879) : error C2039: 'va_list' : is not a member of 'std' e:\codec++\libimage\cimg-1.3.7\cimg.h(3886) : error C2039: 'fprintf' : is not a member of 'std' e:\codec++\libimage\cimg-1.3.7\cimg.h(3901) : error C2039: 'memset' : is not a member of 'std' e:\codec++\libimage\cimg-1.3.7\cimg.h(3902) : error C2039: 'memset' : is not a member of 'std' e:\codec++\libimage\cimg-1.3.7\cimg.h(3915) : error C2039: 'system' : is not a member of 'std' e:\codec++\libimage\cimg-1.3.7\cimg.h(4070) : error C2039: 'srand' : is not a member of 'std' e:\codec++\libimage\cimg-1.3.7\cimg.h(4070) : error C2660: 'srand' : function does not take 1 parameters ...etc.. does anyone has the same problem ? I included the CImg.h properly, but VC++ simply qon't compile it. This is very frustrating, since everyone seems to be using it easily. Thank you for your help, Remi
  2. 2010-07-15 11:27:39 PDT
    VC6.0 is not supported anymore by CImg. This is an old compiler that does not respect the C++ standard, and it was too much a pain to make it accept the compilation of CImg. I tried as much as I could, but I reached a point where no workarounds were possible, so I had to abandon this compiler (which was quite a joy for me, since it is really crappy). So, basically you need to update to a more recent Visual Studio version (which is available for free, if I remember well). David.
  3. 2010-07-16 01:45:22 PDT
    Thank you very much for your answer, I agree VC6 is kind of crappy. Should the CImg work however on Dev-C++ ? Rémi
Jump To:
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.