It is currently Tue Feb 07, 2012 8:04 pm

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: trouble importing header file
PostPosted: Tue Nov 27, 2007 9:06 am 

Joined: Tue Nov 27, 2007 9:03 am
Posts: 1
hi,
i need to import a header file of CAN-driver.
when importing the header file i get the following errors in the logfile:

Parsing Summary:
"D:\lib\flexcan_driver.h":LINE 39 *** syntax error on input entry_ptr
"D:\lib\flexcan_driver.h":LINE 39 *** parsing resumes after ';'
"D:\lib\flexcan_driver.h":LINE 61 *** syntax error on input can_ptr
"D:\lib\flexcan_driver.h":LINE 62 *** parsing resumes after ';'
"D:\lib\flexcan_driver.h":LINE 65 *** syntax error on input can_ptr
"D:\lib\flexcan_driver.h":LINE 66 *** parsing resumes after ';'


the mentioned lines are:
typedef struct struct_entry {
   uint_32 flag;
   int_32 id, len, timestamp;
   uchar data[8];
   LWSEM_STRUCT semaphore;
} entry, _PTR_ entry_ptr;


uint_32 FLEXCAN_get_msg(pointer can_ptr, pointer data, uint_32 _PTR_ id,
                  uint_32 _PTR_ len, uint_16 _PTR_ timestamp);


uint_32 FLEXCAN_send_msg_remote(pointer can_ptr, uint_32 mb_number,
         pointer data, uint_32 *ID, uint_32 *len, uint_16 _PTR_ timestamp);


it seems to me that only the function definitions that use that _PTR_ expression fail. because those which don't use those expressions are imported correctly.

any ideas?

Goddchen


Offline
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 11:56 pm 

Joined: Thu Aug 30, 2007 4:31 pm
Posts: 152
Location: Germany
you have to define _PTR_ as "defined" in the ReverseEngineering options- so the parser can ignore that part -

but .. unfortunately ...if you really need it you have to readd it afterwards.

.. hope that the next Rhapsody version has a better support for that

what is PTR is it a compiler specific Define ?


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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 post attachments in this forum

Search for:

cron

suspicion-preferred