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

  • SEARCH
  • Home
  • 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 9146319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:43:20+00:00 2026-06-17T10:43:20+00:00

Inside FileThree.h #ifndef FILETHREE #define FILETHREE namespace blue{} class Filethree { public: Filethree(void); ~Filethree(void);

  • 0

Inside FileThree.h

#ifndef FILETHREE
#define FILETHREE
namespace blue{}
class Filethree
{
public:
    Filethree(void);
    ~Filethree(void);
};
#endif

Inside FileThree.cpp

#include "Filethree.h"
#include<iostream>
using namespace std ;
namespace blue{
     void blueprint(int nVar){
         cout<<"red::"<<nVar<<endl;
     }
}
Filethree::Filethree(void)
{
}

Filethree::~Filethree(void)
{
}

Inside FileFour.h

#ifndef FILEFOUR
#define FILEFOUR
namespace red{}
class FileFour
{
public:
    FileFour(void);
    ~FileFour(void);
};
#endif

Inside FileFour.cpp

#include "FileFour.h"
#include<iostream>
using namespace std; 
 namespace red{
     void redprint(double nVar){
         cout<<"red::"<<nVar<<endl;
     }
}
FileFour::FileFour(void)
{
}

FileFour::~FileFour(void)
{
}

Inside main.cpp

#include "FileFour.h"
 #include "Filethree.h"
using namespace red ;
using namespace blue ;

int main()
{
    blueprint(12);
return 0;
}

When i compile the above file it gives me the following error .

 error C3861: 'blueprint': identifier not found

Can anyone tell me why i am getting this error ?

  • 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-06-17T10:43:21+00:00Added an answer on June 17, 2026 at 10:43 am

    Compiler can’t find functions when they are not declared in header files.
    You need to declare blueprint function in namespace blue in FileThree.h

    FileThree.h:

    namespace blue{
        void blueprint(int nVar);
    }
    

    Same to redprint function, need to declare it in FileFour.h inside namespace red

    FileFour.h

    namespace red{
       void redprint(double nVar);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Inside FileTwo.h #includeiostream using namespace std ; class FileTwo{ public: FileTwo(){ cout<<constructor for;//Here want
Inside FileTwo.h #ifndef FILETWO #define FILETWO #includeFileOne.h class FileOne ; class FileTwo { public:
Inside General.h #ifndef GENERAL #define GENERAL namespace counternamespace{ int upperbound; int lowerbound; } #endif
Inside of the onReceive(Content context, Intent intent) method of my public class MediaButtonIntentReceiver extends
Inside Myclass.h Class Myclass { public: Myclass(); private: static int Myarray[12]; }; How to
Inside the Person Class: public Point[] endPointArray; private int scalar; private Head head; private
Inside the LAN, we are good to go… folks access our intranet using http://
Inside a templated class, I found the expression, *this = NULL What does such
Inside my webpage http://www.my_web_page I have something like that: img border=0 class=borderx id=pic_15132 I
Inside my ASP.NET website I am calling a Web Method using Jquery as follows:

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.