-
Notifications
You must be signed in to change notification settings - Fork 11
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
Compilation errors GCC 5.4.0/Glibc #3
Comments
Well, warnings aren't errors. Warnings are a compiler's way of 'warning' that something might not work the way you (or the programmer) intend it to. Warnings about implicit functions just means that the function being called was not declared before being used, usually declaration happens in header (*.h) files, basically calling the function is implying that it actually exists. So either the person who wrote this forgot to declare the functions before hand, they didn't include the header that has the declarations, or they just didn't care enough to. Either way, these warnings are unlikely to affect the way the code works. If the code compiled for you and gave you the libs, then you're good to go. I guess if you want, you can create an extra header and manually declare all the functions that it gives warnings for and then include the header in all the *.c files that use the functions...but I wouldn't worry about it. If there were a real error, the compilation wouldn't be able to continue and instead of warnings, you would see an 'error'. Also to note, there is a way to configure GCC to treat warnings as errors, but that's only if you have very strict coding requirements. |
Ah, thank you very much for the clarification. Yes indeed, I get the libraries. At the moment I have no means to test them, as I am in the process of writing the ebuilds for Gentoo. I just started, and aml_libs is the first 'package' to go. I try to silence those errors. I then just have to pick the right CFLAGS/CXXFLAGS options for this, and pass it on to make. |
Would you guys like someone to go through the code and get rid of warnings? I just compiled this and I got a bit dizzy from them. E.g, returning an |
Hello,
I am writing an ebuild for Gentoo.
When the compilation of the libs is complete, I have a pretty list of warnings, that I would like to get rid of.
Compilation is done directly on the c2.
These are:
What do I wrong?
The text was updated successfully, but these errors were encountered: