Re: [Dev-C++] linking .h file and .cpp file
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2004-05-21 10:05:49
|
How about doing it the same way the rest of the world does it: Declarations in *.h files. Code in *.cpp files. #include the *.h files. Add the *.cpp files to the project. /Per W On Fri, 21 May 2004, casper wrote: > Hi, > > I have a file with .h extension which includes my main program. I > have put > > #include "logfuncion.cpp" > > In the .h extension file. And inside the .cpp file I have put the > function definitions. > > Both files are in the same directory, but the .h file failed to compile > because of the error > > Undefined "logfuncion.cpp" > > How could I solve the problem? > > Thanks in advance. > > |