The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: Linker (ld)
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 02-14-2003
Perderabo's Avatar
Perderabo Perderabo is online now
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,453
You might try "gcc -v hello.c -o hello" to see if you can find out. The -v should make it output the command lines of all of the sub-processes.

Also rather than invoke ld directly, you probably can let gcc do it for you. Try:

gcc first.o -lc -o first