Re: [Dev-C++] multiple source compilation
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Per W. <pw...@ia...> - 2008-07-18 19:50:02
|
I think you are in need of a good C or C++ book. The interface should be in a header file (*.h or *.hpp), and the compiler will make use of this header file because you #include "my_header.h". When specifying the file name with "" instead of <>, the compiler will first look for the file in your project directory, i.e. the same place as you have your *.cpp file(s). If you have multiple *.cpp files, then you just make sure that the project contains a reference to each and every *.cpp file you write. That will take care of the implementation. /pwm On Fri, 18 Jul 2008, Chryspear Solutions wrote: > Hello, > > i'm new to C++ Programming. pls how do i compile multiple source files. > > i separated the interface of a class (as a header file) from its implemetation. how do i tell the compiler to look for the header file > > thank you > > > |