Difficulty finding c header in Slackware.
I have Slackware-Current installed with multilib, and I'm trying to compile a personal C project with Meson + gcc that uses the header #include <stdatomic.h>, but my compiler doesnt seem to find it. My code checker throws a warning about not finding the file, so I presume I'm having linking issues, but I'm not sure if Slackware contains this file by default. I have used other linux distributions before, and not have had a problem of this sort, does anyone have any ideas/direction on how to resolve this?
|
Code:
$ whereis include i do not know why Code:
/usr/include Code:
$ locate stdatomic.h Code:
sudo updatedb mod: is it written Code:
#include /isc/stdatomic.h |
This file is shipped in llvm and gcc packages in Slackware. Maybe something missing in your multilib installation?
|
That's what I thought, I contacted Alienbob here on his website about it, he told me to come to you:
https://alien.slackbook.org/blog/you...#comment-36006 Edit: Results of locate stdatomic.h : /usr/include/isc/stdatomic.h /usr/lib/clang/8.0.0/include/stdatomic.h /usr/lib64/clang/8.0.0/include/stdatomic.h /usr/lib64/gcc/x86_64-slackware-linux/9.1.0/include/stdatomic.h Edit 2: #include <isc/stdatomic.h> seems to be found, but attempting to use the functions included returns "implicit declaration invalid in c99". I thought I was using c11? And it should be included at this point, so why is it not finding the symbol? |
To find out whether the issue is with your gcc install, you may try to compile the following:
test.c: Code:
#include <stdatomic.h> Code:
gcc test.c |
Quote:
|
Quote:
|
Quote:
Maybe the include directory /usr/lib64/gcc/x86_64-slackware-linux/X.Y.Z/include (adjust to your gcc version) should be somehow added to the list of include paths in your project config file? I'm afraid I can't help you further here. |
All times are GMT -5. The time now is 10:50 PM. |