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

Compiling via make does not work -fix #16

Open
spaceKelan opened this issue Jun 28, 2023 · 0 comments
Open

Compiling via make does not work -fix #16

spaceKelan opened this issue Jun 28, 2023 · 0 comments

Comments

@spaceKelan
Copy link

Hi there,

I had to do two things to make

  1. I need to add a gcc flag in the Makefile
    image
    Important! It must be the gnu99 flag not the c99 flag!
    In line 58:
CFLAGS += -std=gnu99

If you use latter, it will open the box of pandora, complaining about not finding code which actually exists in included headers
image

  1. I need to comment something out in CO_error.h
    image
    I must say I only found contradicting info regarding the error online, so as long as I don't use custom error definitions, I leave it like that.
// #if __has_include("CO_error_custom.h")
//     #include "CO_error_custom.h"
// #else
#include "CO_error_msgs.h"
// #endif

image

I don't know if this is due to me using CentOS7, but maybe this could be considered.

Thank you

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