This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling GSL on IRIX 6.5 with gcc


Mr. Roman Putanowicz writes:
 > Thanks, that helped, except for one small case:

Hi,
I'd like to add a check for the long double problem into the configure
script. Could you compile the following program with -g -O2 and tell
me the exit status or if it core dumps.

#include <stdio.h>
int main (void) 
{ 
const char * s = "5678"; long double x = 1.234 ; 
long double data[10]; int i;
fprintf(stderr,"%Lg\n",x) ; 
for (i = 0; i < 10; i++) {
  long double tmp;
  sscanf(s, "%Lg", &tmp);
  data[i] = tmp;
};
for (i = 0; i < 10; i++) {
  if (data[i] != 5678) { exit(1);};
};
exit (0);
}

bjg|debian> gcc -Wall -O2 tmp.c 
bjg|debian> ./a.out ; echo exit status = $?
1.234
exit status = 0

 > ld32: ERROR 33 : Unresolved text symbol ".LC109" -- 1st referenced
 > by test_rot g.o.
 >  Have no idea what those LC115, etc. symbols are but it looks again
 > as a compiler problem.

Right.  It can be a question of compatibility between the compiler and
the assembler, or linker --- so using the gnu assembler and gnu linker
can sometimes help (although it's not guaranteed).

regards
Brian


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