bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linker problem ? help needed !!!


From: Nick Clifton
Subject: Re: linker problem ? help needed !!!
Date: Tue, 22 Jul 2008 12:33:43 +0100
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

Hi Navi,

I want to compile multiple files C and C++ and link with gcc.
Is there any way.
Presumably you mean using the @<file> linker command line option to 
avoid having problems with excessively long command lines ?  Then the 
answer is yes.  Like this:
  gcc -c foo.c bar.cc

  echo foo.o bar.o > files.list

  gcc -Wl,@files.list -o myprog

I just picked "foo.c" and "bar.cc" as random source file names, but I hope that this makes the idea clear.
Cheers
  Nick





reply via email to

[Prev in Thread] Current Thread [Next in Thread]