For When You Can't Have The Real Thing
[ start | index | login ]
start > jpgtn > build error

build error

Created by dave. Last edited by dave, 19 years and 321 days ago. Viewed 2,491 times. #1
[edit] [rdf]
labels
attachments

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:

#include <unistd.h>
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt