Mail Archives: djgpp/1998/09/09/19:46:04
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
> - I went to Run -> Run
Don't precompile your cpp files, just load them into the project. The
problem is that it doesn't know what language you are using, so it probably
defaults to C, you need C++, so include the cpp files and it will only compile
them if required.
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT GeoCities DOT com
Endlis AT nbnet DOT nb DOT ca
- Raw text -