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

Adding file to project

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



Joined: 24 Jun 2004
Posts: 2

View user's profile Send private message

Adding file to project
PostPosted: Thu Jun 24, 2004 2:29 am     Reply with quote

Can any one show me how to add file(s) to project please.
I am using a special version for student, not sure if I can have multiple files for a project.
I am using:
IDE version 3.41,
PCM version 3.181

Thanks,
Phung
Radix
Guest







PostPosted: Thu Jun 24, 2004 2:46 am     Reply with quote

Code:
#Include "filename"
Question

Regards
valemike
Guest







PostPosted: Thu Jun 24, 2004 10:19 am     Reply with quote

You cannot have multiple files compiled separately in a project, not for CCS.

You will have to do an " #include "file2.c" ", and compile just one file. It's the same thing as pretty much cutting and pasting everything into one file.

If your question is with regards to MPLAB IDE, then you have to create a project first.

Project-->New
Specify a new name in "Project Name", and choose any directory you want in "Project Directory".

Then the window pops up in the left top corner of the IDE which shows "Source Files" and "Header Files". Highlight "Source Files", right-click on it, then choose "Add files..." in the pulldown menu.
Choose the "filename.c" file that you want to compile. Make sure any extra files are manually typed in at the top of your main file "#include otherfiles.c"

-Mike

p.s. You also have to choose CCS as the Language Toolsuite.
phungn



Joined: 24 Jun 2004
Posts: 2

View user's profile Send private message

PostPosted: Thu Jun 24, 2004 6:20 pm     Reply with quote

Thanks Mike
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