This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: linking it right.


On Mar  2, 2001, "Eric Tchepannou" <etchepannou@hotmail.com> wrote:

> 	b - Compilation:
>         	g++ -c {dc_output|dc_scan|dc_functions}.cpp and then
>                 g++ -c depcheck.cpp -L../lib -lfamcheck
                      ^^

> 	this gives me the error messages:
>         	g++: -lfamcheck : linker input file unused since linking not done.

-c means compile only.  You can only specify libraries when linking.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]