PLUS+1 User Forum

PLUS+1 Tools => PLUS+1 and C => Topic started by: vnv on December 12, 2017, 10:19:54 PM

Title: Error in compile
Post by: vnv on December 12, 2017, 10:19:54 PM
Hello all,

I am getting following error:

Quote
***

"C:\ProgramData\Danfoss\PLUS1\10.0\Data\ExtCompiler\TI\v525\include\stdio.h", line 141: error #148:
          declaration is incompatible with
          "S16 K_sprintf(S8 *, const S8 *, ...)" (declared at line 34 of
          "_applogsymbol_public.h")
  extern _CODE_ACCESS int sprintf(char *_string, const char *_format, ...);
                          ^

1 error detected in the compilation of "MC88_15T_MC88_1BT.c".
***
Danfoss PLUS+1 GUIDE Software: [Errset] Version: 10.0.7
***

I just made small example to call C function. Like example in the documentation.

What could cause such a problem?
Title: Re: Error in compile
Post by: vnv on December 12, 2017, 11:30:12 PM
Modifying stdio.h from TI stdio.h with following:

Quote
// original //extern _CODE_ACCESS int sprintf(char *_string, const char *_format, ...);
extern _CODE_ACCESS int snprintf(char *_string, size_t _n, const char *_format, ...);

solved the problem and I can now compile without any problem, but issue still stays, why would such a thing happen at all  :o :-\
Title: Re: Error in compile
Post by: Nilla on December 14, 2017, 10:22:46 AM
Hi Vnv!

It seems your project is using an old hardware file (HWD). The easiest way to upgrade to the latest HWD is to use our Update Center.

If there are any remaining problems after updating the hardware file in the project, then please send us a sample project for further review to plus+1helpdesk@danfoss.com.

Best regards
Nilla
PLUS+1 Helpdesk
Title: Re: Error in compile
Post by: jaco on December 14, 2017, 01:13:47 PM
Hi

I am having a problem when compiling my display program for a DP710.
It gives me the following error:

Can someone please assist.
Thanks