Basically, if your source code is all in one file:
gcc -ljpeg -o yourProgname yourProgname.c
This assumes libjpeg is installed in one of the places listed in $LD_LIBRARY_PATH, or in /etc/ld.so.conf, followed by running ldconfig (as root).
If none of the above, then add the -L/dir/where/libjpeg/is to the gcc commanline.
--- rod.
|