-
Notifications
You must be signed in to change notification settings - Fork 308
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 while compiling "error: unknown type name ‘Block’" #32
Comments
You don't want to have blocks.h in the cc command. Because blocks.h is included in dwmblocks.c it automatically gets compiled in properly. This matters because the Block typedef is in dwmblocks.c so the compiler needs to read that part first. Really you should just run 'make' to compile it but if for some reason you can't do that you can just run the CC without blocks.h |
Hi, thank you for response.
|
Are you using make to build? If not why? It should just work as long as you have libX11 and pkg-config installed. |
Yes I'm using make, I have libX11 devel package, and also I have pkg-config, but don't know why I can't compile it, it's weird, maybe it needs some dependencies that I don't have. |
I have the exact same issue, running Mint 19.3 |
@jasonstone20 @satsaeid you can check out my fix of this issue here. @torrinfail I can make a PR if you want. |
Go for it. |
When I want to compile it (in kubuntu 20.04) with this command: cc -lX11 blocks.h dwmblocks.c -o dwmblocks
it says:
The text was updated successfully, but these errors were encountered: