trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shirish <>
Subject Documentation / SDK correction
Date Wed, 21 Apr 2010 12:10:55 GMT

I was going through the documentation of traffic server sdk

the source code example of hello-world has deprecated name ( I suppose ) if
InkAPI.h which has been renamed in the issue ,
 InkAPI.h and RemapPlugin.h are missing from /usr/local/include
to ts.h in and the #include of hello-world.c should be modified as #include
"ts/ts.h" and also after replacing it. There is a small logical flaw in the
program compilation using gcc

gcc -g -Wall -fPIC -o hello-world.o -c hello-world.c

actually raises error
/usr/local/include/ts/ts.h:2031: error: expected declaration specifiers or
‘...’ before ‘bool’

and which is correct since 'C' Doesn't support bool type. Either an enum in
the file ts.h at the top is to be defined or change the documented example
to g++.

Thanking you,


View raw message