Comment 2 for bug 393923

Revision history for this message
Lasse Kärkkäinen (tronic+mb48) wrote :

I guess you are testing it wrong. Perhaps you are only compiling the library, not using it?

$ cat > test.cc
#include <agg2/agg_rasterizer_cells_aa.h>

int main() {}

$ 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