View previous topic :: View next topic |
Author |
Message |
phungn
Joined: 24 Jun 2004 Posts: 2
|
Adding file to project |
Posted: Thu Jun 24, 2004 2:29 am |
|
|
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
|
|
Posted: Thu Jun 24, 2004 2:46 am |
|
|
Code: | #Include "filename" |
Regards |
|
|
valemike Guest
|
|
Posted: Thu Jun 24, 2004 10:19 am |
|
|
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
|
|
Posted: Thu Jun 24, 2004 6:20 pm |
|
|
Thanks Mike |
|
|
|