www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/09/16:22:14

Message-Id: <m0zGqju-000S4mC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: Jason <jpsaave AT sandia DOT gov>, djgpp AT delorie DOT com
Date: Wed, 9 Sep 1998 17:24:13 +0000
MIME-Version: 1.0
Subject: Re: Projects in RHIDE:
In-reply-to: <35F6D29E.AB012BE6@sandia.gov>

Jason <jpsaave AT sandia DOT gov> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019