Multi File Dev-C++ app...
I'm using Dev-C++ latest version, and read www.cplusplus.com's
Tutorial and still don't understand how to have multiple source files linked together.
For instance I want to have a group of Functions in one file
and use them from another.
So would I use a .h file or ?
and I've tried to #include "something.h"
and it don't work!
Any help wold be appreciated.
Or a point to some reading material that would explain for me,
would be nice.
Thank you!
Re: Multi File Dev-C++ app...
Quote:
Originally posted by kurf
I'm using Dev-C++ latest version, and read www.cplusplus.com's
Tutorial and still don't understand how to have multiple source files linked together.
For instance I want to have a group of Functions in one file
and use them from another.
So would I use a .h file or ?
and I've tried to #include "something.h"
and it don't work!
Any help wold be appreciated.
Or a point to some reading material that would explain for me,
would be nice.
Thank you!
A common practice is to break your code up into declarations and implementation and put each one respectively in .h and .cpp files. Then you would include the .cpp file. That's strange, though, what you described should work. What kind of errors do you get when you try to include/use header files?
Human error strikes again...
Well my problem was, I didn't load the headers properly my fault.
Thanks for the help. I double checked myself when you said it should work the way I described.
Thank you :)