Error to compile code C

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
picolino
Posts: 9
Joined: Sun Feb 16, 2020 7:38 am
Contact:

Error to compile code C

Post by picolino »

Hi.

Greetings to all.

I trying V8, and I have problems compiling hex with C code inside flowchart. Same code compile perfect in V5, Code I trying to compile is simple

sleep();

In V5 compile perfect, but in V8 no, if I erase this code C, complie perfect.

If I use any PIC, is same problem.

Error in renderer window is:

Code: Select all


borrable.c: main()
   250:	sleep();
	^ (361) function declared implicit int (warning)
using updated 32-bit floating-point libraries; improved accuracy might increase code size
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c: 76: (1090) variable "_FCI_TMP_STR" is not used (warning)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c: 77: (1090) variable "_FCI_TMP_INT" is not used (warning)
0: (499) undefined symbol:
	_sleep(borrable.obj) 
(908) exit status = 1
(908) exit status = 1

Error returned from [xc8.exe]

C:\Program Files (x86)\Flowcode\Compilers\pic\batch\pic_xc8_comp.bat reported error code 1



FINISHED
Some idea? Tanks to all! =)

Image

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Error to compile code C

Post by medelec35 »

Hi picolino,
picolino wrote:Same code compile perfect in V5,
That is because V5 uses a different compiler to V8.
Compiler CCode for V8 (XC8) uses upper case, whereas in V5 (BoostC) uses lower case.
I have mentioned that here.
Try using

Code: Select all

SLEEP();
instead.
Martin

picolino
Posts: 9
Joined: Sun Feb 16, 2020 7:38 am
Contact:

Re: Error to compile code C

Post by picolino »

Oh! Yes, work fine in uppercase!

Thanks a lot Medelec! <3

Post Reply