I have made a macro to calculate the file size, the outcome of this calculation is a string like "880 Bytes".
What I want to do is to is that this macro returns this string so the user can use in his program, only when I assign this string to the '.Return' variable of this macro I get the following error message.
Code: Select all
Target folder: W:\DOCU~CAH\FLOW~5UX\Test\VDIP1
Source name: W:\Documenten\Flowcode Projects\Test\VDIP1\VDIP1.fcfx
Title:
Description:
Device: PIC.16F.16F877A
Generated by: Flowcode v6.0.6.0
Date: Monday, April 07, 2014 19:24:50
Users: 1
Registered to: jordy101091
Licence key: Z8TNY6
NOT FOR COMMERCIAL USE
http://www.matrixltd.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe -v -t PIC16F877A "VDIP1.c"
Launching BoostC...
BoostC Optimizing C Compiler Version 7.20 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2013 Pavel Baranov
Copyright(C) 2004-2013 David Hobday
Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited
VDIP1.c
Starting preprocessor: "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\pp.exe" VDIP1.c -i "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\include" -d _PIC16F877A -la -c2 -o VDIP1.pp -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX
...................
VDIP1.c(1715:25): error: unknown identifier 'FCR_RETVAL'
VDIP1.c(1715:11): error: arguments of 'FCI_SCOPY' don't match the parameters of call
VDIP1.c(1715:2): error: failed to generate expression
VDIP1.c(2608:14): error: arguments of 'FCM_FileSize' don't match the parameters of call
VDIP1.c(2608:2): error: failed to generate expression
VDIP1.c success
failure
..
Completed BoostC compilation, return = 1
C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe reported error code 1
FINISHED