OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 12:14 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Problems with ld
PostPosted: Mon May 21, 2001 11:00 pm 
Hey, when I try to use ld like it shows inthe tutorial, it won't work. I get the following:

>>>>>>>>>>>>>>>>>>>>
C:\DJGPP\KenStuff>ld -Ttext 0x100000 -oformat binary -o kernel32.bin kernel32.o
c:/djgpp/bin/ld.exe: cannot open binary: No such file or directory (ENOENT)
<<<<<<<<<<<<<<<<<<<

thanx for any help


Top
  
 
 Post subject: RE:Problems with ld
PostPosted: Mon May 21, 2001 11:00 pm 
Just put your *.o file in the bin directory for
DJGPP. From that directory, try to link it.


Top
  
 
 Post subject: RE:Problems with ld
PostPosted: Tue May 22, 2001 11:00 pm 
>On 2001-05-22 17:56:04, -KEN- wrote:
>Hey, when I try to use ld like it shows inthe tutorial, it won't work. I get the following:
>
>>>>>>>>>>>>>>>>>>>>>
>C:\DJGPP\KenStuff>ld -Ttext 0x100000 -oformat binary -o kernel32.bin kernel32.o
>c:/djgpp/bin/ld.exe: cannot open binary: No such file or directory (ENOENT)
><<<<<<<<<<<<<<<<<<<

did you put a space between "-o" and "format"? don't

or maybe you have to say "--oformat" instead, I dunno


Top
  
 
 Post subject: RE:Problems with ld
PostPosted: Tue May 22, 2001 11:00 pm 
even if I put it in the bin dir. I get the same error. I can compile it from C:\DJGPP\KenStuff even though GCC is in c:\djgpp\bin,so why can't I ld it from there? UGH


Top
  
 
 Post subject: RE:Problems with ld
PostPosted: Tue May 22, 2001 11:00 pm 
Hmm...I had this same problem starting out using DJGPP,
but I forgot how I fixed it. Sorry.


Top
  
 
 Post subject: RE:Problems with ld
PostPosted: Wed May 23, 2001 11:00 pm 
hmmmmmm......I tihnk I'll ask on Cprogramming.com's General Discuss board
if you have the answer go there! or post here....I'll check back...


Top
  
 
 Post subject: RE:Problems with ld
PostPosted: Mon Jun 18, 2001 11:00 pm 
>On 2001-05-24 17:31:44, Anonymous wrote:
>hmmmmmm......I tihnk I'll ask on Cprogramming.com's General Discuss board
>if you have the answer go there! or post here....I'll check back...

Hello,
The only problem you have is definitely with
the "--oformat" option when you were linking, for
one thing that is DJGPP takes in two kinds of
options one kind have the double hash and with a
verbal option name (e.g. --oformat), on the other
hand DJGPP takes the regular kind of options (e.g.
-h for help). These properties of DJGPP will make sure
the option is either "--" (double hash and verbal)
or "-" (single hash with shortened option). Hope
that this is helpful, if you find any problem feel
free to mail me at [email protected]

Ben Hsu


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 65 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group