|
-
Jun 4th, 2004, 03:49 PM
#1
Thread Starter
New Member
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!
-
Jun 4th, 2004, 04:34 PM
#2
Hyperactive Member
Re: Multi File Dev-C++ app...
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?
Last edited by Comreak; Jun 4th, 2004 at 04:39 PM.
C.O.M.R.E.A.K.: Cybernetic Obedient Machine Responsible for Exploration and Accurate Killing
-
Jun 4th, 2004, 05:30 PM
#3
Thread Starter
New Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|