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

g++



I upgraded my machine to potato but in compiling a c++
program which before used to work with

g++ -lg++ filename.cc,

now I need

g++ -I/usr/include/g++-2/ -lg++ filename.cc

two questions:

1) WHy do I need the -I now and

2) The second command doesnt work. It complains

/usr/bin/ld: cannot find -lg++
collect2: ld returned 1 exit status

though all the libraraies are in /usr/lib. Any ideas?


----------------------------------------------------------------------------

Shashi Kanbur                                  shashi@fcrao1.phast.umass.edu
Five College Astronomy Department,
University of Massachusetts,
Amherst,
MA 01003
USA
(413) 577 0470                                 (413) 545 4223 (Fax)




Reply to: