Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » File links and git branches(Managing file links in different git branches)
File links and git branches [message #1854805] Mon, 12 September 2022 15:47
Tom Tatakis is currently offline Tom TatakisFriend
Messages: 1
Registered: September 2022
Junior Member
I have a project loaded in eclipse with links to the source files. In git branch 'A' I have some set of files and all builds as expected. In branch 'B', I have added a new file fooB.cpp. If I checkout branch B and add that file to my project, all builds as expected.

The problem is when I now switch branches: If I now checkout branch 'A', fooB.cpp shows up as a file link in the project (with the icon indicating it's a missing file). If I remove the link, I can now build branch A again. But then if I go back to branch B, the file link fooB.cpp is again missing from my project.

Is there any way to correct this behavior? I would expect the list of files to be maintained in the .project or .cproject files but it appears they are in the workspace somewhere.
Previous Topic:Access Modifiers in C and C++
Next Topic:Eclipse and GNU ARM OpenOCD Debug Issue
Goto Forum:

Current Time: Sun Apr 14 02:03:51 GMT 2024

Powered by FUDForum. Page generated in 0.02531 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top