delorie.com is funded by banner ads.
  www.delorie.com/djgpp/v2faq/faq042.html   search  

| Previous | Next | Up | Top |

6.12 Why does the Linker Access my CD Drive?

Q: Why is it that every time I link a program, the CD-ROM drive is accessed?


A: This is a bug in Binutils 2.7 and in an early release of Binutils 2.8.1: the linker would always try to look for its script djgpp.djl in a certain directory on the D: or E: drive (the former in Binutils 2.7, the latter in 2.8.1), no matter which disk uses that letter (these accesses usually go unnoticed with hard disks, but are visible with CD-ROMs, Zip drives, or other slower devices). Download and install the latest bnuNNNb.zip archive you can find on SimTel.NET mirrors, and the problem should go away.

You can see which directories on what drives does the linker try to access by passing the -verbose option to the linker. Here's an example:

      gcc -o hello.exe hello.o -Xlinker --verbose > linker.log

This redirects the linker log to a file which you can then examine. Since the list of directories accessed by the linker doesn't depend on the program being linked, you can try this with any trivial program.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright ⌐ 1998   by Eli Zaretskii     Updated Sep 1998  

Powered by Apache!

You can help support this site by visiting the advertisers that sponsor it! (only once each, though)