954,499 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

fatal error C1083: Cannot open include file:

HI

I am getting this error

Error 11 fatal error C1083: Cannot open include file: 'Test/Testnamespaces.h': No such file or directory

I have included the following statement in the code

using namespace Test;

Can anyone please tell me the reason for this .

karang
Light Poster
46 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

is this file present in the Test directory? can you post the include statement or the .h file if possible?

Agni
Practically a Master Poster
655 posts since Dec 2007
Reputation Points: 431
Solved Threads: 116
 

Hi

Thanks for the reply
You mean to say you want the code of file
Testnamespaces.h

karang
Light Poster
46 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

nope.. i want to know when you get this error, in what file, whats the include statement there or anything else that you think is relevant. obviously i have no clue what you're trying to do unless you tell me..rt? ..

Agni
Practically a Master Poster
655 posts since Dec 2007
Reputation Points: 431
Solved Threads: 116
 

Hi

I am getting this error when I build the project.

I am getting this error in a cpp file

Include statement is
#include

karang
Light Poster
46 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

i thought it was 'Testnamespaces.h' .. anyways is the path of the file available in your include path? -I option of the compiler? is this file actually present in the path, did you confirm? if you're using some IDE then you might have to check what's the include path set to.

Agni
Practically a Master Poster
655 posts since Dec 2007
Reputation Points: 431
Solved Threads: 116
 

Hi

I have a simple question

what is the difference between #include and #include "Test/Test.h"

I am sorry but I am very new to C++

The reason I am asking this because when I include the file and change the include directive to

#include "Test/Test.h"

I am not getting the error then

karang
Light Poster
46 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 
Agni
Practically a Master Poster
655 posts since Dec 2007
Reputation Points: 431
Solved Threads: 116
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You