How to include new header-files?

Sysprogs forums Forums VisualGDB How to include new header-files?

This topic contains 1 reply, has 2 voices, and was last updated by  ket 9 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #582

    Anonymous
    Participant

    Hi!

    I am using VS2012 and Raspberry Pi hardware. I was able to run the “Hello World”-demo.

    Now I have added a new header file over the VS project explorer. The header file is in the project folder.

    When I try to compile the project I get the error message: “error: MyHeader.h: No such file or directory”.

    I tried to set some include-paths but nothing was working. Any ideas?

    Thanks, Torben

    #2465

    ket
    Participant

    Hi,

    Adding a new header file in Solution Explorer with the usual right-click menu option Add->New Item should be all that you need to do. The include in the source file should be a simple ‘include “MyHeader.h”‘.

    Does the project path or file names have spaces in them? Are you using source transfer or shared directories for the source?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.