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
Minor compilation error on armv6 (32 bits) #10
Comments
Hi Why not use On x86 (32 bit) I get a clean build on current main. What compiler version are you using? |
First I would like to point out that the exammples Makefile are using clang compiler (while the rest is using gcc?). and kind of expect libwifi.h to be installed systemd wide. I was using gcc, even for the examples. my meson build stuff was building the examples by default.
But like I said, it a minor problem, I could have said very minor problem. And I understand if you close it without much thinking for it. |
The example makefiles should be updated, yes. The main project uses whatever compiler is available by default.
I'm not sure what you mean here?
Your error report is correct, but only in one place, I think. |
Thinking about this, I was about to edit my comment. Just to say that PRIu64 is more universal and generic and will print a uint64_t whatever its size and the architecture. I meant that if I am not wrong, you can't compile the examples without installing the lib and its headers. I would have expect to build the examples without installing. but that is a matter of taste ? But never mind |
Ah, I understand. I have only ever seen examples and tests use the globally installed version (such as libpcap). |
You did noticed that the example fails to compile on x64 now, right? You can't solve the problem for the 2 architectures by using %lu or %llu. https://stackoverflow.com/a/9225648/283067 Or you revert the commit fixing that, and ignore 32 bits architecture ;-( And I got that error in the first place, because I was building the examples by default, when building the lib, and using my meson.build. Yes. This builds fine on x32, without error. only the specific example might fail. |
Hey, sorry for the delay on this, I've been very busy recently. I had assumed wrongly that switching to |
In a very specific build setup (using meson+ninja and gcc only), on armv6l, I came across that build error:
This is easly fixed with that patch:
The second snippet avoids a warning
The text was updated successfully, but these errors were encountered: