Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when make #2

Open
alexandrelealjr opened this issue Aug 26, 2017 · 0 comments
Open

Error when make #2

alexandrelealjr opened this issue Aug 26, 2017 · 0 comments

Comments

@alexandrelealjr
Copy link

[ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant