Page 1 of 1

Error to compile code C

Posted: Sun Feb 16, 2020 8:12 am
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

Re: Error to compile code C

Posted: Sun Feb 16, 2020 9:59 am
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.

Re: Error to compile code C

Posted: Mon Feb 17, 2020 5:46 am
by picolino
Oh! Yes, work fine in uppercase!

Thanks a lot Medelec! <3