Results 1 to 3 of 3

Thread: Multi File Dev-C++ app...

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Location
    Tampa, Fl. U.S.A.
    Posts
    5

    Question 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!

  2. #2
    Hyperactive Member Comreak's Avatar
    Join Date
    Feb 2001
    Location
    Dis
    Posts
    319

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Location
    Tampa, Fl. U.S.A.
    Posts
    5

    Red face 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
  •  



Click Here to Expand Forum to Full Width