cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

mgbtcfv
Journeyman III

Compile errors with ADL_SDK in Ubuntu 16.04

Hello,

It is almost impossible to install ADL_SDK ; my os is Ubuntu 16.04.

I corrected some of the errors using this post:

ADL_SDK not compile straight "out of the box" under Linux

I still get some errors - it is mainly to do with GetValue, GetHex and GetFloat functions in main.c

---------------------------------------------

main.c: In function ‘GetValue’:

main.c:813:17: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘int’ [-Wformat=]

  fscanf_s( file,"%32s %d\n", sField, 33, iValue);

                 ^

main.c:813:17: warning: too many arguments for format [-Wformat-extra-args]

main.c: In function ‘GetHex’:

main.c:826:17: warning: format ‘%X’ expects argument of type ‘unsigned int *’, but argument 4 has type ‘int’ [-Wformat=]

  fscanf_s( file,"%32s %X\n", sField, 33, iValue);

                 ^

main.c:826:17: warning: too many arguments for format [-Wformat-extra-args]

main.c: In function ‘GetFloat’:

main.c:839:17: warning: format ‘%f’ expects argument of type ‘float *’, but argument 4 has type ‘int’ [-Wformat=]

  fscanf_s( file,"%32s %f\n", sField, 33, fValue);

                 ^

main.c:839:17: warning: too many arguments for format [-Wformat-extra-args]

------------------------------------

I would greatly appreciate it if someone could help me with this.

https://community.amd.com/message/1304689

0 Likes
0 Replies