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

How can I #import?

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



Joined: 18 Feb 2009
Posts: 1

View user's profile Send private message

How can I #import?
PostPosted: Wed Feb 18, 2009 12:50 pm     Reply with quote

Does anybody know how to import object files assembled by MPASM to CCS?
This query should be exactly same as the past topics:
http://www.ccsinfo.com/forum/viewtopic.php?t=30328
http://www.ccsinfo.com/forum/viewtopic.php?t=28353
but seems to be unsolved.

When I coded
Code:
#device pic16f877
#import (FILE=../obj/obj.o, COFF)

extern void func(void) ;

void main() {
   func() ;
}

then get
Error 148 "main.c" Line 2[8,14]: Liner Error: COFF file 'C:\obj\obj.c' is corrupt: recompile module.

Here is my assembler code
Code:
   code
_func:
   global   _func
   nop
   return
   end

my environment is:
MPLAB v8.20
PCW v4.086 (demo)
(I have PCM v3.249. it gives same error)

Thanks in advance,
vec
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