ryeg 0 Posted August 31, 2009 Report Share Posted August 31, 2009 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 Quote Link to post Share on other sites
Ian Harris 0 Posted September 1, 2009 Report Share Posted September 1, 2009 long fpu_readLong(void) { long t; t =12345; return t; } void flash() { long x; x = fpu_readLong(); lata.0 = 1; delay_ms(200); lata.0 = 0; delay_ms(200); } This works in 6.96. Try upgrading? cheers Ian. Quote Link to post Share on other sites
Reynard 0 Posted September 1, 2009 Report Share Posted September 1, 2009 I rolled back to 6.95 yesterday and it works in that as well. Send in your files for Dave and Pavel to look at. Cheers Reynard Quote Link to post Share on other sites
Recommended Posts
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.