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

invalid option +EXPORT

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







invalid option +EXPORT
PostPosted: Fri Jul 18, 2008 5:37 am     Reply with quote

I have some working CCS C code for the 16F88 which compiles fine using MPLAB IDE v8.10 (default settings).

However, the code I have is messy and some of my function code is inside the headers. To tidy up a bit I move the code into a c file and include the header which I have ameded to only include the signatures of my function... now I compile it (using "build all") and I get the error "invalid option +EXPORT". This is the only change made, I've reverted the code and made the changes one by one so I know this is what's causing my problem.

So I've gone from this...

orig.c:
Code:
// some code
#include "includes/tasks/task_encrypt.h"
// some more code


./includes/tasks/task_encrypt.h:
Code:

#ifndef TASK_ENCRYPT_DEF_H
#define TASK_ENCRYPT_DEF_H

int TASK_task_encrypt_data(int data[], TASK callback_task) {
   // do stuff
}


To this...

orig.c:
Code:
// some code
#include "includes/tasks/task_encrypt.h"
// some more code


./includes/tasks/task_encrypt.h:
Code:

#ifndef TASK_ENCRYPT_DEF_H
#define TASK_ENCRYPT_DEF_H
int TASK_task_encrypt_data(int data[], TASK callback_task);
#endif


./includes/tasks/task_encrypt.c:
Code:
#include "includes/tasks/task_encrypt.h"

int TASK_task_encrypt_data(int data[], TASK callback_task) {
   // do stuff
}


Build all uses the command line:

C:\Program files\Picc\CCSC.exe" +FM "orig.c" +EXPORT +DF +LN +T +A +M +Z +Y=9 +EA

What does +EXPORT do and why does it not accept this change?

TIA for any help you can offer.
Saff
Guest







PostPosted: Fri Jul 18, 2008 5:43 am     Reply with quote

There was an #endif on the end of the original header file too.
Ttelmah
Guest







PostPosted: Fri Jul 18, 2008 7:00 am     Reply with quote

What version of CCS?.
EXPORT, requires a V4.xxx compiler (and didn't work on the early V4 releases).
EXPORT, potentially generates a relocatable .OBJ file , which can then be linked into a 'main project'.
Look at the entry 'multiple compilation units', in the manual.

Best Wishes
Saff
Guest







PostPosted: Fri Jul 18, 2008 7:50 am     Reply with quote

Version 3.229 - Smile

Thanks.

I've had another look and it seems MPLab doesn't use the +EXPORT option for the first set of code but does for the second. I'm not sure if I can persuade it not to (and if it would still correctly compile all my code). Maybe I'll have to leave it as it is but that's a bit horrible.
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