incorrect makefile when renaming folder

Sysprogs forums Forums VisualGDB incorrect makefile when renaming folder

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35827
    Gonkelinx
    Participant

    Hey,

    We using Visual studio 2022 17.10.4 and visualGDB 6.0.R3 (5201)
    It is a Linux C-code RPI  project where we compiling and debugging on the RPI. The source files are on the Windows 11 machine

    When we renaming a source folder or source file with Windows explorer outside visual studio he don’t update the source file or folder on the RPI and compile the project like the previous modifications.
    Now we refresh the project with the Refresh button in the solution explorer. Same result, compile on the older folder path or filenames.

    Now we include the new files from the solution explorer of the renamed folder and compile the project again.  (older filename or folder we don’t see more in the solution explorer)
    We howe the follow warnings:
    Makefile:1715: warning: overriding recipe for target ‘Debug/mod_freq.o’
    Makefile:1695: warning: ignoring old recipe for target ‘Debug/mod_freq.o’

    The compiler fails also, because he try compiling the files of the older folder and newer folder.
    Also he tell us that there are duplicated files names now.
    In the make file we can find the filename of the older and new folder name.
    On the RPI we see only the files of the older folder name.

    The only possibility we had found to correct this issue was by removing these files in the .vcxproj. or removing the whole project files on the RPI

    How we can resolve this issue? (looks like a bug)

    Regards

     

    #35829
    support
    Keymaster

    Hi,

    This is by design. Moving files outside Visual Studio does not automatically update the Visual Studio project file and the refresh/reload command does not do it either. You would need to re-add the files, or edit the .vcxproj file manually.

    This is the normal behavior of Visual Studio and is not specific to VisualGDB.

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