Jump to content

Recommended Posts

Shayne,

 

When the compiler is building for a give device, it defines it, eg when compiling for PIC16F84 symbol _PIC16F84 is defined.

 

Do I need to #define anything
The answer to this is no, the compiler has done defined the appropriate symbol.

 

Regards

Dave

Share this post


Link to post
Share on other sites
Shayne,

 

When the compiler is building for a give device, it defines it, eg when compiling for PIC16F84 symbol _PIC16F84 is defined.

 

Do I need to #define anything
The answer to this is no, the compiler has done defined the appropriate symbol.

 

Regards

Dave

 

The answer is somewhat more complex. The target device is specified in the compiler/linker command lines. If you build from SourceBoost IDE than the target is set in the project settings and ide takes care for you to construct and issues correct command lines. If you build from MPLAB the process is similar: the target is a property of the project and MPLAB issues a right command for you. However if you use some different means to launch compiler/linker (i.e. from from dos box) than you need to specify the target device in the command line.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
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  

×