-
March 1st, 2011, 02:59 PM
#1
File not found
Hi all,
I am very new to C/C++. I tried to compile a source file called "vanetprop.cc". I have all header files and source file in one folder. When I compile the source file, I get the error "vanetprop.cc:6: fatal error: testing/antenna.h: No such file or directory compilation terminated.", but I have "antenna.h" file in the directory.
I wonder why I get this error message. I will really appreciate any suggestion.
Thank you.
-
March 1st, 2011, 03:04 PM
#2
Re: File not found
Is it in testing? Is the relative path correct? Did you spell it properly?
-
March 1st, 2011, 04:00 PM
#3
Re: File not found
Yeh. I already checked the spelling, and it's correct. The path is also correct.
-
March 1st, 2011, 04:08 PM
#4
Re: File not found
Originally Posted by whtisc
Yeh. I already checked the spelling, and it's correct. The path is also correct.
There's not much else it could be. Try using the full path instead of a relative path.
-
March 1st, 2011, 04:32 PM
#5
Re: File not found
Can you explain how to put full path instead of relative path?
-
March 1st, 2011, 04:39 PM
#6
Re: File not found
Windows:
Code:
#include "C:\SomeFolder\SomeFile.h"
*nix:
Code:
#include "/someFolder/someFile.h"
Viggy
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|