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

-- 
agg_rasterizer_cells_aa.h missing #includes <limits.h> and <stdlib.h> so it 
doesn't compile on new GCC versions
https://bugs.launchpad.net/bugs/393923
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to