CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

multisource project overwritten by IDE

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
webgiorgio



Joined: 02 Oct 2009
Posts: 123
Location: Denmark

View user's profile Send private message

multisource project overwritten by IDE
PostPosted: Thu May 06, 2021 2:59 am     Reply with quote

Hi,
I use to organize my projects in multiple files like:
- main.ccsprj
- main.c
- variables.c
- functions.c
- serial.c
- defin.c


And use folders to organize the projects and versions like:
C:/prjectA/ver1
C:/prjectA/ver2
C:/prjectB/ver1
...


What happened is that I opened project B, and click save, the files of project B were overwritten with the content of same-name-files from project A (except main).
What happened?

I always open the projects by opening the file main.ccsprj
If I open the ccsprj with notepad I see that there is the list of the project files to open in the IDE tabs.
Ttelmah



Joined: 11 Mar 2010
Posts: 19195

View user's profile Send private message

PostPosted: Thu May 06, 2021 3:15 am     Reply with quote

When I work with separate versions like this I always delete the ccsprj file.
Then simply open the main .c file of the project.
This then forms a new .prj file pointing to the files in the current directory.
Result no problem.

If you open the ccsprj file this is a complete 'description' of the current
'project' including what files are associated with it.
So long as you worked with separate .prj files in each version directory, and
opened the one for that project there would not be a problem. However if
you made a 'ver2', by copying the files from 'ver1', and included the prj
file, then this would be pointing to the old files. Problem.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group