Closed marriusco closed 2 years ago
I have the same compiler here, running also on Ubuntu 20.04, but I don't get this error on any of my projects using CImg. Could you provide a minimal example of a .cpp file where the error occurs? Thanks.
Hi, Me again, the project account. https://github.com/circinusX1/lili just uncomment in httpcam.cpp the include Cimg.h Appreciate. Thank you.
cmake . && make
OK, tested and reproduced the issue.
Moving the #include "CImg.h"
at the top of the file (first include) solves this problem.
My guess : there is a macro channel_mode
defined in the other includes that break the thing (not checked though).
Definitely not an issue with CImg, at least.
Yes there Is, I spot that in resolv.h but the compiler erro did not lead me to that. Thank you appreciate the light speed answer. Cheers!
Ha yes, that's _res
being redefined. Not a really good idea if you ask me :)
Hi, Why I am getting these. g++ or gcc yields same errors. gcc/g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0