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

No linker with MPLAB plugin

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







No linker with MPLAB plugin
PostPosted: Wed Jul 20, 2005 5:18 am     Reply with quote

Hi,

I am struggling to understand why there is no linker provided by CCS for the MPLAB plug in.

Quote:
Do not add more than one .C file under Source Files in the Project Window. If you add more than one .C file here when you compile your project MPLAB will compile each .C file individually and then attempt to link them. Since CCS does not include a linker this will always give you an error.


That was straight from the ccsinfo website...

It is terrible design to put all your code into one .c file! Is there a way to get around this problem?

Thanks,
Simon
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed Jul 20, 2005 5:46 am     Reply with quote

Not having a linker is different from what you are used to but you can still create multiple C files. What this quote is saying is that the way CCS implemented the multiple C-files structure is not compatible with the way MPLAB expects it to be.

In CCS you create multiple .c files as you are used to, the difference is that in your main.c file you insert #include instructions for these files.

Code:
#include <pic18f458.h>
#include "file1.c"
#include "file2.c"
#include "file3.c"
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