Jump to content
Sign in to follow this  
Daniel

Include files

Recommended Posts

Hello

 

I have downloaded the PICAnt 5.1. This version is not yet registrated.

Here is the including part and the reaktion of the compiler.

 

code:

 

# include "system.h"

# include "p12F675.h"

 

compiler:

 

line 14: Redefinition of variable indf

 

The line 14 in my own program is empty.

But in the line 14 of the include dat. p12F675.h is the definition of the variable indf.

I don't know what I can do.

If you know what I make false please answer me.

 

Thank you.

 

Daniel

Share this post


Link to post
Share on other sites
Guest David

With the system.h file you already included the file for your target processor.

 

Just remove the #include “p12F675.h” and set the correct target

 

(Menu)Settings >>>Target = PIC12F675

 

Regards, David

Share this post


Link to post
Share on other sites
Guest Pavel

If code includes system.h there is no need to include p12F675.h implicitly since it is already included from within system.h

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Thank you for your answers. I will try it

 

Regards,

Daniel

Share this post


Link to post
Share on other sites

Hy Pavel and David

 

Thank you for your answers. My problem is solved. I have programed it how you said. Now it works.

 

Thank you.

 

Regards,

Daniel :)

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...