add *.h, *.c and *.cpp to subdirectories

Sysprogs forums Forums VisualGDB add *.h, *.c and *.cpp to subdirectories

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7927
    svecoldr
    Participant

    How can I add *.h, *.c and *.cpp files into subdirectories of the project?

    What I did was I made subdirectories, copied my files into them and included the directory names into VisualGDB Project Properties -> Makefile settings -> Include directories. The header files are found properly but I get errors saying undefined reference to `xyz’ which probably means that it cannot find *.c and *.cpp files. But they are in the same directory as header files.

    What do I do wrong?

    #7932
    support
    Keymaster

    The source files need to be physically added to the Solution Explorer. You can add them either one-by-one or altogether via right-click->Add->Import Directory Recursively.

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