help-gplusplus
[Top][All Lists]
Advanced

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

Re: Problem in linking using g++.


From: Maurizio Loreti
Subject: Re: Problem in linking using g++.
Date: 19 Aug 2005 15:27:58 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

"Amit Bhatia" <amit.bhatia@gmail.com> writes:

> ...
> g++ -pg  -O -Wno-deprecated  -ansi -pedantic -o test test.C
> -DANSI_HEADERS -D_G_HAVE_BOOL -I. -I/ALLTHEINCLUDEDIRS  -lmy -L.
> 
> And I get the following error message:
> 
> ld: archive: ./librat.a has no table of contents, add one with
> ranlib(1) (can't load from it)

Quite strange.  Why g++ complains about librat.a, if you do NOT
require librat in the command line?

-- 
Maurizio Loreti                         http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy              ROT13: ybergv@cq.vasa.vg


reply via email to

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