Well, I don't know what is "cImg template libarary" but aren't you including its headers somewhere in your program?
What I meant was to change:
// somefile.cpp
#include <some_cImg_header> // currently, cImg is included first and then
#include <some_Qt_header> // something from Qt after is included afterwards
// somefile.cpp
#include <some_cImg_header> // currently, cImg is included first and then
#include <some_Qt_header> // something from Qt after is included afterwards
To copy to clipboard, switch view to plain text mode
to
// somefile.cpp
#include <some_Qt_header> // include stuff in reverse order so that qdatastream.h and qmetatype.h
#include <some_cImg_header> // won't get mixed up about stuff defined in cImg header
// somefile.cpp
#include <some_Qt_header> // include stuff in reverse order so that qdatastream.h and qmetatype.h
#include <some_cImg_header> // won't get mixed up about stuff defined in cImg header
To copy to clipboard, switch view to plain text mode
Bookmarks