$ g++ test.c
In file included from test.cc:1:
/usr/include/agg2/agg_rasterizer_cells_aa.h: In member function ‘void agg::rasterizer_cells_aa<Cell>::line(int, int, int, int)’:
/usr/include/agg2/agg_rasterizer_cells_aa.h:338: error: there are no arguments to ‘abs’ that depend on a template parameter, so a declaration of ‘abs’ must be available
/usr/include/agg2/agg_rasterizer_cells_aa.h:338: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/include/agg2/agg_rasterizer_cells_aa.h:338: error: ‘INT_MAX’ was not declared in this scope
/usr/include/agg2/agg_rasterizer_cells_aa.h:338: error: there are no arguments to ‘abs’ that depend on a template parameter, so a declaration of ‘abs’ must be available
/usr/include/agg2/agg_rasterizer_cells_aa.h:339: error: there are no arguments to ‘abs’ that depend on a template parameter, so a declaration of ‘abs’ must be available
/usr/include/agg2/agg_rasterizer_cells_aa.h:339: error: there are no arguments to ‘abs’ that depend on a template parameter, so a declaration of ‘abs’ must be available
I guess you are testing it wrong. Perhaps you are only compiling the library, not using it?
$ cat > test.cc rasterizer_ cells_aa. h>
#include <agg2/agg_
int main() {}
$ g++ test.c agg2/agg_ rasterizer_ cells_aa. h: In member function ‘void agg::rasterizer _cells_ aa<Cell> ::line( int, int, int, int)’: agg2/agg_ rasterizer_ cells_aa. h:338: error: there are no arguments to ‘abs’ that depend on a template parameter, so a declaration of ‘abs’ must be available agg2/agg_ rasterizer_ cells_aa. h:338: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) agg2/agg_ rasterizer_ cells_aa. h:338: error: ‘INT_MAX’ was not declared in this scope agg2/agg_ rasterizer_ cells_aa. h:338: error: there are no arguments to ‘abs’ that depend on a template parameter, so a declaration of ‘abs’ must be available agg2/agg_ rasterizer_ cells_aa. h:339: error: there are no arguments to ‘abs’ that depend on a template parameter, so a declaration of ‘abs’ must be available agg2/agg_ rasterizer_ cells_aa. h:339: error: there are no arguments to ‘abs’ that depend on a template parameter, so a declaration of ‘abs’ must be available
In file included from test.cc:1:
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/