Author Topic: Error in compile  (Read 12576 times)

Offline vnv

  • PLUS+1 Novice
  • *
  • Posts: 4
  • Karma: +0/-0
Error in compile
« 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?

Offline vnv

  • PLUS+1 Novice
  • *
  • Posts: 4
  • Karma: +0/-0
Re: Error in compile
« Reply #1 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 :-\

Offline Nilla

  • Administrator
  • PLUS+1 Guru
  • *
  • Posts: 217
  • Karma: +10/-0
Re: Error in compile
« Reply #2 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

Offline jaco

  • PLUS+1 Novice
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Error in compile
« Reply #3 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