You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ 16%] Building C object CMakeFiles/m4api.dir/m4api.c.o
/home/alexandrelealjr/Downloads/m4api/m4api.c:46:8: error: variable \u2018m4CurrentVersion\u2019 has initializer but incomplete type
struct m4Version m4CurrentVersion = {
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:47:5: error: unknown field \u2018major\u2019 specified in initializer
.major = 0,
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:47:14: warning: excess elements in struct initializer
.major = 0,
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:47:14: note: (near initialization for \u2018m4CurrentVersion\u2019)
/home/alexandrelealjr/Downloads/m4api/m4api.c:48:5: error: unknown field \u2018minor\u2019 specified in initializer
.minor = 0,
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:48:14: warning: excess elements in struct initializer
.minor = 0,
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:48:14: note: (near initialization for \u2018m4CurrentVersion\u2019)
/home/alexandrelealjr/Downloads/m4api/m4api.c: In function \u2018m4Init\u2019:
/home/alexandrelealjr/Downloads/m4api/m4api.c:210:7: warning: implicit declaration of function \u2018m4CheckVersion\u2019 [-Wimplicit-function-declaration]
if (m4CheckVersion(buf) < 0)
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:213:3: error: invalid use of undefined type \u2018struct m4Version\u2019
printf("Firmware version %d.%d\n", m4CurrentVersion.major, m4CurrentVersion.minor);
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:213:3: error: invalid use of undefined type \u2018struct m4Version\u2019
/home/alexandrelealjr/Downloads/m4api/m4api.c:215:3: error: invalid use of undefined type \u2018struct m4Version\u2019
if (m4CurrentVersion.major < 2)
^
/home/alexandrelealjr/Downloads/m4api/m4api.c: In function \u2018m4CheckVersion\u2019:
/home/alexandrelealjr/Downloads/m4api/m4api.c:241:3: error: invalid use of undefined type \u2018struct m4Version\u2019
m4CurrentVersion.major = ((buf[23]) >> 4) & 0x0f;
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:242:3: error: invalid use of undefined type \u2018struct m4Version\u2019
m4CurrentVersion.minor = (buf[23]) & 0x0f;
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:244:3: error: invalid use of undefined type \u2018struct m4Version\u2019
if (m4CurrentVersion.major == 0)
^
/home/alexandrelealjr/Downloads/m4api/m4api.c: In function \u2018m4ParseValue\u2019:
/home/alexandrelealjr/Downloads/m4api/m4api.c:368:10: warning: implicit declaration of function \u2018strcasecmp\u2019 [-Wimplicit-function-declaration]
if (!strcasecmp("never", strval))
^
/home/alexandrelealjr/Downloads/m4api/m4api.c: In function \u2018m4SetFloat\u2019:
/home/alexandrelealjr/Downloads/m4api/m4api.c:420:10: warning: implicit declaration of function \u2018m4SetBinary\u2019 [-Wimplicit-function-declaration]
return m4SetBinary(dev, field, binary);
^
CMakeFiles/m4api.dir/build.make:62: recipe for target 'CMakeFiles/m4api.dir/m4api.c.o' failed
make[2]: *** [CMakeFiles/m4api.dir/m4api.c.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/m4api.dir/all' failed
make[1]: *** [CMakeFiles/m4api.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
[ 16%] Building C object CMakeFiles/m4api.dir/m4api.c.o
/home/alexandrelealjr/Downloads/m4api/m4api.c:46:8: error: variable \u2018m4CurrentVersion\u2019 has initializer but incomplete type
struct m4Version m4CurrentVersion = {
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:47:5: error: unknown field \u2018major\u2019 specified in initializer
.major = 0,
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:47:14: warning: excess elements in struct initializer
.major = 0,
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:47:14: note: (near initialization for \u2018m4CurrentVersion\u2019)
/home/alexandrelealjr/Downloads/m4api/m4api.c:48:5: error: unknown field \u2018minor\u2019 specified in initializer
.minor = 0,
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:48:14: warning: excess elements in struct initializer
.minor = 0,
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:48:14: note: (near initialization for \u2018m4CurrentVersion\u2019)
/home/alexandrelealjr/Downloads/m4api/m4api.c: In function \u2018m4Init\u2019:
/home/alexandrelealjr/Downloads/m4api/m4api.c:210:7: warning: implicit declaration of function \u2018m4CheckVersion\u2019 [-Wimplicit-function-declaration]
if (m4CheckVersion(buf) < 0)
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:213:3: error: invalid use of undefined type \u2018struct m4Version\u2019
printf("Firmware version %d.%d\n", m4CurrentVersion.major, m4CurrentVersion.minor);
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:213:3: error: invalid use of undefined type \u2018struct m4Version\u2019
/home/alexandrelealjr/Downloads/m4api/m4api.c:215:3: error: invalid use of undefined type \u2018struct m4Version\u2019
if (m4CurrentVersion.major < 2)
^
/home/alexandrelealjr/Downloads/m4api/m4api.c: In function \u2018m4CheckVersion\u2019:
/home/alexandrelealjr/Downloads/m4api/m4api.c:241:3: error: invalid use of undefined type \u2018struct m4Version\u2019
m4CurrentVersion.major = ((buf[23]) >> 4) & 0x0f;
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:242:3: error: invalid use of undefined type \u2018struct m4Version\u2019
m4CurrentVersion.minor = (buf[23]) & 0x0f;
^
/home/alexandrelealjr/Downloads/m4api/m4api.c:244:3: error: invalid use of undefined type \u2018struct m4Version\u2019
if (m4CurrentVersion.major == 0)
^
/home/alexandrelealjr/Downloads/m4api/m4api.c: In function \u2018m4ParseValue\u2019:
/home/alexandrelealjr/Downloads/m4api/m4api.c:368:10: warning: implicit declaration of function \u2018strcasecmp\u2019 [-Wimplicit-function-declaration]
if (!strcasecmp("never", strval))
^
/home/alexandrelealjr/Downloads/m4api/m4api.c: In function \u2018m4SetFloat\u2019:
/home/alexandrelealjr/Downloads/m4api/m4api.c:420:10: warning: implicit declaration of function \u2018m4SetBinary\u2019 [-Wimplicit-function-declaration]
return m4SetBinary(dev, field, binary);
^
CMakeFiles/m4api.dir/build.make:62: recipe for target 'CMakeFiles/m4api.dir/m4api.c.o' failed
make[2]: *** [CMakeFiles/m4api.dir/m4api.c.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/m4api.dir/all' failed
make[1]: *** [CMakeFiles/m4api.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: