www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/07/30/15:12:46

Date: Sat, 30 Jul 1994 14:04:08 -0400
From: Lipchen Alex Chan <chan AT acsu DOT buffalo DOT edu>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: more on ld problem
Cc: chan AT acsu DOT buffalo DOT edu

Hello DJ,

On the previous mail, I thought the ld had problem to search the given new
library path, based on the previous error message below:

<<E:\SUIT\TEST>>make alex
gcc -fpcc-struct-return  -Wall -IE:/SUIT/include -ID:/CONTRIB/LIBGRX/INCLUDE 
 -O -LE:/SUIT/win3/lib -LD:/CONTRIB/LIBGRX/LIB  alex.c  -lsuit -lsrgp -lgrx 
-lm -o alex
alex.c: In function `HitCoordTester':
alex.c:86: warning: implicit declaration of function `fabs'
d:/gcc/bin/ld.exe: Can't open suit
make.exe: *** [alex] Error 1


Then I copied the WINSUIT.LIB and WINSRGP.LIB to LIBSUIT.A and LIBSRGP.A
in the e:\suit\win3\lib directory, thinking that they might be more similar
to other library filenames in d:\gcc\lib. But now different linking error
occurs. So, the ld has searched the given -Lsearchpath indeed, but can't
read the library files there due to the file format.

<<E:\SUIT\TEST>>attrib ..\win3\lib\*.*
  A          E:\SUIT\TEST\..\WIN3\LIB\WINSRGP.LIB
  A          E:\SUIT\TEST\..\WIN3\LIB\WINSUIT.LIB
             E:\SUIT\TEST\..\WIN3\LIB\LIBSRGP.A
             E:\SUIT\TEST\..\WIN3\LIB\LIBSUIT.A

<<E:\SUIT\TEST>>make alex
gcc -fpcc-struct-return -Wall -Ie:/suit/include -Id:/gcc/contrib/libgrx/include
-O  -Le:/suit/win3/lib -Ld:/gcc/contrib/libgrx/lib  alex.c  -lsuit -lsrgp -lgrx
-lm -o alex
alex.c: In function `HitWordDisplay':
alex.c:72: warning: implicit declaration of function `fabs'
e:/suit/win3/lib/libsuit.a: malformed input file (not rel or archive)
make.exe: *** [alex] Error 1


Do you have any idea what this "malformed input file" means and how to solve 
it? Can anything be done to these files or the gcc makefile in order to make
this linkage a success? 

Thanks in advance for advices.

Alex



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019