Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Jason , djgpp AT delorie DOT com Date: Wed, 9 Sep 1998 17:24:13 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Projects in RHIDE: In-reply-to: <35F6D29E.AB012BE6@sandia.gov> Precedence: bulk Jason wrote: > Well, guys, I guess I should've mentioned last time that I'm a newbie! > I have been learning C++ through an online tutorial, and I am starting > classes. The problem is that in the tutorial, it is trying to teach me > to use several different files for one program. The filenames are: > > - box.h -> class definition > - box.cpp -> implementation > - boxes2.cpp -> contains main() > > I want to use RHIDE to do this, as I am now able to do it from the > command line, so I figure I have to use projects. This is what I have > done up to now: > > - I already compiled box.cpp and boxes2.cpp. > - I started a new project called "testproj.gpr" > - I added box.o and boxes2.o to the project Put box.cpp and boxes2.cpp in the project, no the .o files. > - I went to Run -> Run > > After this, I get an error saying "undefined reference to 'cout'" for > every line with 'cout' in boxes2.cpp - the file with the main function. > Am I doing everything right as far as procedure? I hope all it needs is > a little configuration editing or something small. Be sure to read the %DJDIR%/gnu/gcc-2.81/problems.txt file (%DJDIR% is the directory where you uncompressed the files). SET ------------------------------------ 0 -------------------------------- Visit my home page: http://set-soft.home.ml.org/ or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013