Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!ODIN.NRC.CA!SERRER From: SERRER@ODIN.NRC.CA (Martin Serrer) Newsgroups: comp.sys.sgi Subject: Re: ld warning Message-ID: <60A80364763F000492@NRCNET.NRC.CA> Date: 11 Jun 91 14:34:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The Internet Lines: 51 Hello again, Thanks to 'davea@sgi.com' and 'jason@dsd.es.com' for your replies to my query about the ld warning. Getting rid of the variable stat solved the problem. What I don't understand is: a. why ld didn't complain about this earlier (I wrote the module containing the 'stat' referrences a long time ago, and have used it without hitch.) b. why when I comment out the line with the call to fl_show_file_selector the warning goes away, and all the code works. Thanks again... Martin -------------------------start of original posting---------------------------- I want to replace the 'fl_show_input' gadget with the 'fl_show_file_selector' gadget as you can see in the code below but ld gives a Warning that I don't understand. I've been using the 'fl_show_file_selector' gadget successfully in other code. I'd RTFM if I could find the appropriate section. --------------------------begin code fragment--------------------------------- void cb_changeModel(obj,dummy) FL_OBJECT *obj; long dummy; { char *txx; startStop_state = FALSE; initModel(Model); /* strcpy( Model->modelfile, fl_show_input("Model file :","")); */ txx = fl_show_file_selector("Select MODEL file:", "./", "*.model", ""); strcpy( Model->modelfile, txx); -----------------------------end code fragment-------------------------------- -----------------------------begin ld messages-------------------------------- thor:/usr/people/serrer/mas/odl % make cc -s mas.o -o mas ODL.a /usr/local/lib/libforms.a -lfm_s -lsphere -lgl_s -lc_s -lm -lmalloc /usr/bin/ld: Warning: jump relocation out-of-range, bad object file produced, can't jump from 0x4098c0 to 0x1000326c (stat) Warning: jump relocation out-of-range, bad object file produced, can't jump from 0x409c60 to 0x1000326c (stat) Warning: jump relocation out-of-range, bad object file produced, can't jump from 0x41c7d0 to 0x1000326c (stat) Warning: jump relocation out-of-range, bad object file produced, can't jump from 0x41c820 to 0x1000326c (stat) -------------------------------end ld messages---------------------------------