Include Files Problem

Sysprogs forums Forums VisualGDB Include Files Problem

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #771
    gbarnes59
    Participant

    I have a VS solution with two projects. I want to have a common header file for both projects. I am building my program on the remote machine, and I can get a header file to transfer over to the machine providing it is located in the project directory. Ideally, I would like one header file for both projects which is outside the project directory, but I can’t find a way to transfer the file on build from a location outside the project directory. Any ideas?

    #3023
    gbarnes59
    Participant

    No sooner had I posted this than I found that the Custom Build Steps feature allow you transfer files from any location to the target before building. 😀

    #3024
    ket
    Participant

    Hi,

    You can also adjust the file transfer settings on the Project Properties page in VisualGDB Project Properties. If you change the local directory there, then please change the makefile name on the Makefile settings page to be a relative path relative to that local directory.
    Another option would be to have that header file in one of the project directories, if the other project is dependent on the project with the header file, then both projects will be transferred on build.
    However, for a single file it is probably easier to just use a custom build step.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.