Jump to content

Recommended Posts

I am having a problem that is probably a stupid error or a misunderstanding of BoostC.

 

I can not get the simple example function shown below to work;

 

long fpu_readLong(void)
{
long t;
t =12345;
return t;
}

 

When I build I get the following error:

 

.......

success

BoostLink Optimizing Linker Version 6.95

http://www.sourceboost.com

Copyright© 2004-2009 Pavel Baranov

Copyright© 2004-2009 David Hobday

 

Caution: argument of 'delay_us' calls must have a value of 1 or more

Warning unreferenced functions removed:

serial_print_hex in: C:\aaaa\fpu_test_bed\serial.c

serial_print_dec in: C:\aaaa\fpu_test_bed\serial.c

serial_print_dec in: C:\aaaa\fpu_test_bed\serial.c

....

deleted for clarity

....

fpu_writeString in: C:\aaaa\fpu_test_bed\SourceBoost_FPU.c

fpu_writeLong in: C:\aaaa\fpu_test_bed\SourceBoost_FPU.c

fpu_readWord in: C:\aaaa\fpu_test_bed\SourceBoost_FPU.c

fpu_readLong in: C:\aaaa\fpu_test_bed\SourceBoost_FPU.c ???????????????????????

fpu_readString in: C:\aaaa\fpu_test_bed\SourceBoost_FPU.c

fpu_readStatus in: C:\aaaa\fpu_test_bed\SourceBoost_FPU.c

fpu_readDelay in: C:\aaaa\fpu_test_bed\SourceBoost_FPU.c

print_float in: C:\aaaa\fpu_test_bed\SourceBoost_FPU.c

print_long in: C:\aaaa\fpu_test_bed\SourceBoost_FPU.c

print_CRLF in: C:\aaaa\fpu_test_bed\SourceBoost_FPU.c

 

failure

"C:\Program Files\SourceBoost\boostc.pic16.exe" .\SourceBoost_FPU.c -t PIC16F876A

"C:\Program Files\SourceBoost\boostlink.pic.exe" /ld "C:\Program Files\SourceBoost\lib" libc.pic16.lib f_functions.obj .\serial.obj .\SourceBoost_FPU.obj /t PIC16F876A /d C:\aaaa\fpu_test_bed /p f_functions

Exit code was -2.

Removing target: f_functions.hex

Internal Error: Data Type not found id:0x100011C8:0x00B:0x000007BF ???????????????????????

Failed to locate output file 'C:\aaaa\fpu_test_bed\f_functions.hex'

Done

 

Failed

 

I am quite able to use other functions in the same file (SourceBoost_FPU.c). I get the feeling it may have something to do with the long data type.

 

Rye

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