Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6946721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:36:06+00:00 2026-05-27T13:36:06+00:00

Problem is simple… I manually write .h and .cpp files, so sometimes I’m worried

  • 0

Problem is simple… I manually write .h and .cpp files, so sometimes I’m worried that ill declare a function and because of typing error or something Ill either define a different function or Ill completely forgett about it. So is there a tool that would recursively go through all may source folders and detect if pairs (SOMETHING.cpp and SOMETHING.h) have mismatches… I know that sometimes it is desired(or at lest I remember hearing that being a trick of some sort) but I would like to avoid it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:36:06+00:00Added an answer on May 27, 2026 at 1:36 pm

    When you attempt to use the function, you’ll get an error from the linker. Since you’re testing all of the functions you write (you are, I hope), you won’t be able to link the tests if you’ve a typo in the function name in the sources.

    Another thing that can help: put your functions in a namespace. In the header, you’ll write

    namespace MyNamespace {
    void myFunction(...)
    }
    

    In the source, you don’t open the namespace, but specify it for each function:

    void MyNamespace::myFunction(...) { ... }
    

    If myFunction hasn’t been previously declared in MyNamespace, the compiler will complain.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Simple problem that I can't figure out... How can I print a '%' character
My problem is simple: I have a long list of elements that I want
somewhat simple problem(to explain) this time: i have an array of markers that i
simple problem baffling me... i have a function: function spitHTML() { $html = '
Very simple problem: I have a Public Sub (in a module) that I want
A simple problem that I was wondering if it could be done.
I have a simple problem that reads an Excel file (using interop) and fills
I have very simple problem that I can't solve. I need to do something
I have a simple problem. I want to decorate the SqlDataReader class so that
I have a simple problem that I'm having trouble thinking around: var oldValues :

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.