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

Re: newbie linker error - 'undefined reference'



On Tue, Apr 06, 1999 at 11:41:30PM -0500, Matt Miller wrote:

Several things:
1. You don't need to compile the object files and then link them in two seperate steps.
2. You need to #include iostream.h
3. You need to link with the stdc++ library to get all of the C++ I/O classes

The command line would be something like:
g++ -obinaryfile (C++ files) -lstdc++
-- 
Stephen Pitts
smpitts@midsouth.rr.com
webmaster - http://www.mschess.org


Reply to: