Results 1 to 3 of 3
I am facing the problem of calling cfitsio library from C program in linux. when i am giving
the option "gcc -o CreateLevel1DataFitsFile CreateLevel1DataFitsFile.c -lm -lcfitsio
"
i am getting ...
- 06-23-2010 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 2
gcc returning undefined reference
I am facing the problem of calling cfitsio library from C program in linux. when i am giving
the option "gcc -o CreateLevel1DataFitsFile CreateLevel1DataFitsFile.c -lm -lcfitsio
"
i am getting following error
/usr/lib/../lib/gcc/i386-redhat-linux/3.4.4/../../../libcfitsio.a(getcolj.o)(.text+0x7065):/backup/Astrosat/learning/cfits/cfitsio/getcolj.c:3098: more undefined references to `__xtoll' follow
/usr/lib/../lib/gcc/i386-redhat-linux/3.4.4/../../../libcfitsio.a(getcolk.o)(.text+0x1bdd): In function `ffgclk':
/usr/lib/../lib/gcc/i386-redhat-linux/3.4.4/../../../libcfitsio.a(putcolk.o)(.text+0x22ce): In function `ffintfi8':
/backup/Astrosat/learning/cfits/cfitsio/putcolk.c:903: undefined reference to `__xtoll'
/usr/lib/../lib/gcc/i386-redhat-linux/3.4.4/../../../libcfitsio.a(putcolk.o)(.text+0x22f5):/backup/Astrosat/learning/cfits/cfitsio/putcolk.c:905: undefined reference to `__xtoll'
/usr/lib/../lib/gcc/i386-redhat-linux/3.4.4/../../../libcfitsio.a(putcoluk.o)(.text+0x18a3): In function `ffpcnuk':
/backup/Astrosat/learning/cfits/cfitsio/eval.y:2856: undefined reference to `__xtol'
/usr/lib/../lib/gcc/i386-redhat-linux/3.4.4/../../../libcfitsio.a(eval_y.o)(.text+0xf801):/backup/Astrosat/learning/cfits/cfitsio/eval.y:2971: undefined reference to `__xtol'
/usr/lib/../lib/gcc/i386-redhat-linux/3.4.4/../../../libcfitsio.a(eval_y.o)(.text+0xfbe9): In function `Do_BinOp_dbl':
/backup/Astrosat/learning/cfits/cfitsio/eval.y:3028: undefined reference to `__xtol'
/usr/lib/../lib/gcc/i386-redhat-linux/3.4.4/../../../libcfitsio.a(eval_y.o)(.text+0x1023d):/backup/Astrosat/learning/cfits/cfitsio/eval.y:3140: more undefined references to `__xtol' follow
collect2: ld returned 1 exit status
- 06-24-2010 #2Linux Newbie
- Join Date
- Mar 2010
- Posts
- 121
The highlighted line above implies that this isn't the very first error message you're getting. Dealing with anything but the first error you get is generally (pretty much always) a complete waste of time - could you post the first error? (or the complete output, if you're not sure where the first error is).
- 06-24-2010 #3Just Joined!
- Join Date
- Jun 2010
- Posts
- 2
hi thanks very much for your response, i got the solution library was not installed properly on the system.
actually difficult to put as some restriction is there by the forum you can put restricted no. of words.


Reply With Quote
