Jump to content

V7.0 Problem Or Just An Operator Problem?


Recommended Posts

 

I am having trouble with V7.0 compiling an old project that was well behaved under V6.x. (I think)

 

Whenever I #include the i2c_driver.h the compiler immediately issues:

error: failed to parse input file makefile.i2ctest

FAILURE: dont know how to parse the 'release\i2ctest.obj: i2ctest.c i2cddriver_16F877.h "serial.h" '

Here's the gutted code that exhibits the problem;

 

 </P> <P style="MARGIN: 0in 0in 0pt" class=MsoNormal>
#include <system.h>
#include <string.h>
#include "i2c_driver_16F877.h"
#include "serial.h"</P> <P style="MARGIN: 0in 0in 0pt" class=MsoNormal>//configuration word
#pragma DATA _CONFIG, _PWRTE_OFF & _BODEN_OFF & _WDT_OFF & _LVP_OFF & _CPD_OFF & _DEBUG_OFF & _HS_OSC & _CP_OFF</P> <P style="MARGIN: 0in 0in 0pt" class=MsoNormal>//Set clock frequency
#pragma CLOCK_FREQ 20000000</P> <P style="MARGIN: 0in 0in 0pt" class=MsoNormal> </P> <P style="MARGIN: 0in 0in 0pt" class=MsoNormal> </P> <P style="MARGIN: 0in 0in 0pt" class=MsoNormal>///////////////////////////////////////////////////////////////////////////////////////////////////</P> <P style="MARGIN: 0in 0in 0pt" class=MsoNormal>void main()
{
serial_printf("abc");
while (1);
}  </P> <P style="MARGIN: 0in 0in 0pt" class=MsoNormal>

But wait, there's more:

 

If I comment out the #include serial.h and the serial_printf statment() it compiles.

 

If I leave the serial stuff above in the code and comment out the #include "i2c_driver_16F877.h" it compiles.

 

But if both includes are in the code I get the error message shown above.

 

I'm stumped.

Link to post
Share on other sites

I also just installed version 7 and now have compiler errors relating to the "Release" directory.

 

The source code has not been touched since it compiled correctly in version 6.96.

 

Building...
error: failed to parse input file makefile.main_code
FAILURE: don't know how to parse the line 'Release\usb_config_serial.obj: usb_config_serial.c lib\pic_utils.h config.h lib\platform.h lib\pic_usb.h lib\pic_utils.h "lib\pic_serial.h" lib\pic_utils.h config.h main_code.Release.__f'
Failed to locate output file 'Release\main_code.hex'
Done

Failed

Link to post
Share on other sites
Please send a simple project that demonstrates the problem to support@sourceboost.com

 

I have attached the source code but it is nearly empty.

 

This is the source code:

#include <system.h>
void main()
{
}

 

Build results in version 6.96:

Building...

BoostLink Optimizing Linker Version 6.96

http://www.sourceboost.com

Copyright© 2004-2009 Pavel Baranov

Copyright© 2004-2009 David Hobday

 

Building CASM file

Memory Usage Report

===================

RAM available:256 bytes, used:0 bytes (0.0%), free:256 bytes (100.0%),

Heap size:256 bytes, Heap max single alloc:95 bytes

ROM available:4096 words, used:8 words (0.2%), free:4088 words (99.8%)

 

success

"C:\Program Files\SourceBoost\boostlink_pic.exe" /ld "C:\Program Files\SourceBoost\lib" libc.pic16.lib demo.obj /t PIC16F648A /d "D:\My Documents\My Dropbox\demo" /p demo

Done

 

Build results in version 7.00:

Building...

"C:\Program Files\SourceBoost\boostc_pic16.exe" demo.c -t PIC16F648A -idx 1 -obj Release -d _RELEASE

BoostC Optimizing C Compiler Version 7.00 (for PIC16 architecture)

http://www.sourceboost.com

Copyright© 2004-2010 Pavel Baranov

Copyright© 2004-2010 David Hobday

 

 

Current license key has expired. Please visit http://www.sourceboost.com for updates.

error: failed

Failed to locate output file 'Release\demo.hex'

Done

 

Failed

demo.zip

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