This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc Linking problem
- To: help-gcc at gnu dot org
- Subject: gcc Linking problem
- From: Alison Boyle <apboyleNOapSPAM at physics dot ucg dot ie dot invalid>
- Date: Mon, 25 Oct 1999 09:10:02 -0700
- Bytes: 1210
- Newsgroups: gnu.gcc.help
- Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here
- Xref: wodc7nx0 gnu.gcc.help:1577
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!