This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Configuring Kdevelop for C programming

Tags: None
(comma "," separated)
buzzoi
Registered Member
Posts
6
Karma
0
New to programming,
Tried to configure kdevelop and then tried to build and execute a piece of code and ran into this error:


Code: Select all
/home/x/projects/First/build> make -j2
[ 50%] Building CXX object CMakeFiles/first.dir/main.cpp.o
In file included from /usr/include/x86_64-linux-gnu/c++/8/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/bits/c++config.h:508,
                 from /usr/include/c++/8/iostream:38,
                 from /home/x/projects/First/main.cpp:1:
/usr/include/features.h:424:12: fatal error: sys/cdefs.h: No such file or directory
 #  include <sys/cdefs.h>
            ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/first.dir/build.make:63: CMakeFiles/first.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/first.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
*** Failure: Exit code 2 ***
buzzoi
Registered Member
Posts
6
Karma
0
What should I do?
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
well, the text says it all, you are trying to use a library that is not in the location you look for it, so either you don't have the library or your path is wrong:

Code: Select all
/usr/include/features.h:424:12: fatal error: sys/cdefs.h: No such file or directory


read the outputs, those are usually explaining what is wrong


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]