This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc Linking problem



When trying to compile using gcc on an intel box running Redhat Linux, I
get the following errors:

Linking...
getf.o: In function `get_fits':
/usr/src/getflat/getf.c:124: undefined reference to `usr_imagein'
/usr/src/getflat/getf.c:134: undefined reference to `rfts_data'
getf.o: In function `write_fits':
/usr/src/getflat/getf.c:143: undefined reference to `usr_imageout'
/usr/src/getflat/getf.c:145: undefined reference to `wfts_data'
/usr/src/getflat/getf.c:151: undefined reference to `wfts_char'
/usr/src/getflat/getf.c:156: undefined reference to `wfts_real'
collect2: ld returned 1 exit status
make: *** [getf] Error 1

These are all functions related to reading/writing FITS files and are
declared in header files which are included at the start of the program.
I'm linking using -lm -luti -lcfitsio -lX11.
libutil.a,libuti.a and libcfitsio.a all seem to be installed fine.
The program compiles fine on an Alphastation running Digital UNIX.
I don't know if there are just some other libraries I need to install?

Cheers
Ali


* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]