A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 4 years ago

C/C++ :: In a previous question, i've asked if it was a good idea to #include ALL sources in one big file and compile that single file, and now I know it isn't. What is the best way to engineer a large C/C++ program in general?

  • This Question is Closed
  1. anonymous
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    autoconf and automake?

  2. anonymous
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    but that's if you have a large development enviroment

  3. anonymous
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    or using "make" sorry for the chain responses lol

  4. anonymous
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I like cmake a lot. It's trivial to whip up a cmake configuration file for a small project, but still not difficult to extend it as the project grows. It can generate *nix makefiles, MSVC solutions and XCode projects, integrates well with Qt and other frameworks, and has good documentation. More generally, the answer to your question is modularity. Identify things that belong together and develop them as a library for a particular purpose from the start. Imagine someone else using the library in a project different from yours and try to anticipate problems they might have with your libraries' API. This will make sure code for each purpose (each library) stays contained and maintainable. Splitting things up into libraries is one of the best things you can do for maintainability and reusability - and it helps build times, too ;)

  5. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.