Jump to content
chedzoy

Compiling In Mplab

Recommended Posts

Hi all,

 

I'm sure someone must have come accross this before, but I cant find it in the forums. I have a project where the source files are spread accross a couple of different directories. It compile fine in sourceboost IDE, but it won't compile as a project in MPLAB.

It looks like the problem is that when MPLAB constructs the command to compile the file it does not include the file path. In the MPLAB output below the file valve.c is in the mplab project directory, but utils.c is in a different directory.

 

Executing: "C:\Program Files\SourceBoost\boostc.pic16.exe" valve.c -O1 -W1 -t 16F88

BoostC Optimizing C Compiler Version 6.35 (for PIC16 architecture)

http://www.sourceboost.com

Copyright© 2004-2006 Pavel Baranov

Copyright© 2004-2006 David Hobday

 

Licensed to Christopher Dunning under Single user Pro License for 1 node(s)

Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited

 

 

valve.c

<C:\Program Files\SourceBoost\include\icd2.h> @ 20: MESSAGE: "Including ICD2 declarations (icd2.h)"

 

success

 

Executing: "C:\Program Files\SourceBoost\boostc.pic16.exe" UTILS.C -O1 -W1 -t 16F88

BoostC Optimizing C Compiler Version 6.35 (for PIC16 architecture)

http://www.sourceboost.com

Copyright© 2004-2006 Pavel Baranov

Copyright© 2004-2006 David Hobday

 

Licensed to Christopher Dunning under Single user Pro License for 1 node(s)

Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited

 

 

UTILS.C

FATAL: Unable to open input file: Y:\Active Projects\D1013-Avin Water\Controlled Documents\piccode\Valve Client\UTILS.C

Error: preprocessing error

 

failure

BUILD FAILED: Wed Apr 12 19:59:04 2006

 

 

 

Is this an mtc file issue?

 

Hope someone vcan help

 

Chris.

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...

×
×
  • Create New...