RE: gcc and libtiff, maybe a newbie question

2003-01-02 Thread Henrik Bengtsson
e: gcc and libtiff, maybe a newbie question > > > Hi, > > The problem is partially due to where the -lname bits are. > They should be put at the end of the line (after all options > and stuff). You also needed to include libz (-lz) and libjpeg > (-ljpeg). > >

Re: gcc and libtiff, maybe a newbie question

2003-01-02 Thread Elfyn McBratney
Hi, The problem is partially due to where the -lname bits are. They should be put at the end of the line (after all options and stuff). You also needed to include libz (-lz) and libjpeg (-ljpeg). This worked for me: $ gcc -static -o tifft tifft.c -lm -ltiff -ljpeg -lz P.s. I renamed your file t

gcc and libtiff, maybe a newbie question

2003-01-02 Thread Henrik Bengtsson
Hi, first I haven't done C programming in years and am a bit rusty with gcc and ld. I am having problems with ld reporting "undefined reference to _TIFFOpen" etc, which should be in libtiff. However, I am not even sure if the problem is about libtiff or if miss something else. Here is my minimize