Build Error with jpgtn 2.01
If you just try to build the source with any kind of recent linux compiler, you get an error:
[jupiter]make
gcc -Wall -O2 -L/home/jeremy/lib -I/home/jeremy/include -c -o jpgtn.o jpgtn.c
jpgtn.c: In function `main':
jpgtn.c:79: warning: implicit declaration of function `getopt'
jpgtn.c:90: `optarg' undeclared (first use in this function)
jpgtn.c:90: (Each undeclared identifier is reported only once
jpgtn.c:90: for each function it appears in.)
jpgtn.c:137: `optind' undeclared (first use in this function)
make: *** [jpgtn.o] Error 1
The fix is to add an include file to jpgtn.c: