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 CCS Technical Support

IDE Help

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



Joined: 11 Jun 2021
Posts: 10

View user's profile Send private message

IDE Help
PostPosted: Fri Jul 16, 2021 7:06 am     Reply with quote

I've started a project in the CCS Compiler IDE, but not all of my source files appear in the 'Files' Window.

What is the best method of adding source files / creating a project, so that the IDE is aware of them?

BTW my code compiles and all the code is used. Smile
Ttelmah



Joined: 11 Mar 2010
Posts: 19515

View user's profile Send private message

PostPosted: Fri Jul 16, 2021 7:33 am     Reply with quote

You have tried clicking the 'open all files' option (File - third line down)?.
If they are being included in the compile, this should load them.
The file tab should then see them all.
PrinceNai



Joined: 31 Oct 2016
Posts: 479
Location: Montenegro

View user's profile Send private message

PostPosted: Fri Jul 16, 2021 9:55 am     Reply with quote

You of course included all your files somewhere? Correct me if I'm wrong, but only when you compile your project you can see all the files. I always use the wizard to create a new project. Select the PIC and clock. Nothing else. Then I copy and replace everything I need from a known working project in the .h file that is created when I build the project (RS232, I2C, fuses, ICD,...). Write all the #includes, main is still empty. Rebuild. At that point' if everything went well, I can see all the project files. You should also have a tick under view --> files to see them all.
PICAlison



Joined: 11 Jun 2021
Posts: 10

View user's profile Send private message

PostPosted: Mon Jul 19, 2021 6:27 am     Reply with quote

I have included all the files, it wouldn't have compiled otherwise. Smile

I had some files in sub directories and some in with the main c file. No idea why they didn't show up.

I created a new project and copied them in and the 'missing' files appear on the 'File' view.
Ttelmah



Joined: 11 Mar 2010
Posts: 19515

View user's profile Send private message

PostPosted: Mon Jul 19, 2021 6:52 am     Reply with quote

My standard procedure to ensure the project file is current, is just delete
the .ccspjt file, then open the main.c file. Result a new ccspjt file is created
that is up to date.
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