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 5960315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:48:34+00:00 2026-05-22T18:48:34+00:00

I am working in ubuntu, I have a folder that contains a subfolder. in

  • 0

I am working in ubuntu, I have a folder that contains a subfolder. in the first folder i have a name.h file. in subfolder i have again a name.h file. the thing is that i need both the headers. the problem is the fact that both headers have the same name. i receive errors saying that a specific function was not declared in this scope. how to resolve this error? isn’t there a way to specifiy to a specific method, variable what header to use ? is there a way to resolve this problem?

  • 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-22T18:48:35+00:00Added an answer on May 22, 2026 at 6:48 pm

    So, something like this :

    <some dir>
      -> <sub1>
           header.hpp
      -> <sub2>
           header.hpp
    

    This is resolved by telling the compiler to search in the common folder for the headers (in the above case ) and including like this :

    #include "sub1/header.hpp"
    #include "sub2/header.hpp"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on ubuntu. I have a file called test.txt. I would like
Working in bash under Linux ubuntu 10 here I have Bash script that reads
I have a (from what I can tell) perfectly working Linux setup (Ubuntu 8.04)
I am trying to get PhysX working using Ubuntu. First, I downloaded the SDK
I'm working in Ubuntu with MySql and I also have Query Browser and Administrator
I am working in ubuntu server 10.04 I am creating a test.h file which
First a bit of background. I have been working on the MS platform for
I have Solarized installed via pathogen and it's been working fine in both terminal
I have the .java file on the current working directory but javac reports: javac:
I am working in Ubuntu/c++ language. I have the following QTable : ui1->tableView_->setVisible(false); QStandardItemModel

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.