File not found
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: File not found

  1. #1
    Join Date
    Mar 2011
    Posts
    3

    Question 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.

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,197

    Re: File not found

    Is it in testing? Is the relative path correct? Did you spell it properly?

  3. #3
    Join Date
    Mar 2011
    Posts
    3

    Re: File not found

    Yeh. I already checked the spelling, and it's correct. The path is also correct.

  4. #4
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,197

    Re: File not found

    Quote Originally Posted by whtisc View Post
    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.

  5. #5
    Join Date
    Mar 2011
    Posts
    3

    Re: File not found

    Can you explain how to put full path instead of relative path?

  6. #6
    Join Date
    Feb 2002
    Posts
    4,640

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center