Original Post
I'm currently in the process of porting my GTL to linux-arm, however I've currently hit a slight problem with the build process on the last few errors. The error I get out is;
Quote:However, I'm not sure where the problem lies as this compiles fine with VC7.1/VC8, its the GCC stuff which is throwing the error at me. The Macro in question is
1>In file included from ..\..\src\/Filters/filters.hpp:9, 1> from ..\..\src\GameTextureLoader.cpp(28): 1>..\..\src\/Filters/BitmapFilter.hpp(182):1: error: pasting "FilterRegister_MakeBitmapFilter" and "(" does not give a valid preprocessing token
#define DECLARE_TEXTURE_LOADER( idnum, loaderName, callbackFunction )
static FilterRegister FilterRegister_##callbackFunction##( idnum, loaderName, callbackFunction ); and is used thusly;
filterptr MakeBitmapFilter(LoaderImgData_t &imgdata)
{
return filterptr(new bitmapfilter(imgdata));
}
DECLARE_TEXTURE_LOADER(TYPE_BMP, "BMP",MakeBitmapFilter)
where TYPE_BMP is a const int. Any one got any clues as to how I can fix this issue?