delorie.com/archives/browse.cgi | search |
Message-ID: | <3364C07E.4AD0@ibm.net> |
Date: | Mon, 28 Apr 1997 11:23:20 -0400 |
From: | Melih Sener <melih AT ibm DOT net> |
Reply-To: | sener AT nuclear DOT physics DOT sunysb DOT edu |
Organization: | Department of Physics / SUNY Stony Brook |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Help needed with linker and "f2c" (FORTRAN TRANSLATOR) |
NNTP-Posting-Host: | 166.72.71.110 |
Lines: | 33 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Hi, I'm rather new to the world of C and I needed to use the fortran to c translater called "f2c" for some reason. (Some Math packages out there rely on it.) I get an error with the linker when try to "make" the library: This is the typical makefile command: gcc -c -O2 whatever.c ld -x -r -o whatever.xxx whatever.o copy whatever.xxx whatever.o gcc does OK. However ld gives the following error: "reloc refers to symbol `text' which is not being output" If I drop the -x switch in ld everything goes fine. However when I later try to build a program that uses the library I get complaints about multiple definitions. ("whatever.c" typically refers to "signal.h" and is mainly about input/output and error messages.) I tried the same source on a Linux gcc it worked right out of the box. Any suggestions are greatly appriciated.... Melih Sener sener AT nuclear DOT physics DOT sunysb DOT edu del whatever.xxx
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |