Skip to main content
3 votes
3 answers
209 views

I'm trying to make a library and I've found that I need to make a header file, which I did and I have a C file too, which contains the functions. wprintf.h: #ifdef WPRINTF #include <wchar.h> ...
NemGamingAkos's user avatar
0 votes
1 answer
276 views

Quite often one wants to know which header/s (path to programheader.h) your C program is depending on. You can list all, with the command mentioned below, but what if looking for a certain one from ...
nostromo's user avatar
  • 423
2 votes
1 answer
194 views

I wanted to include xf86drmMode.h in my c code, but when I did it says there was an error in the header file as it couldn't find drm.h. It's because there is no drm.h on my system, there's only libdrm/...
CocytusDEDI's user avatar
1 vote
1 answer
101 views

I have a library in C which can be built with both autotools and CMake. In CMake, it is possible to define public and private headers (.h), so that the public ones are then installed (to be used in ...
t-w's user avatar
  • 41
0 votes
0 answers
103 views

Is it required to include the header file in the corresponding source file if they both have the same name ? Here is an example of what I mean : main.c #include <stdlib.h> #include "display....
JUNG Jules's user avatar
2 votes
1 answer
192 views

When I used this method a few years ago, with Ada from the Ubuntu repository, it worked fine. Now, with my installation from Adacore, not so anymore. The method consists of 2 commands (time.h as ...
hreba's user avatar
  • 149
0 votes
2 answers
110 views

Should I include my headers in the source file or in the .h? Is header nesting (header include other headers) bad for any reason? If so, what is the reason? Is it better to forward declare a struct in ...
user avatar
2 votes
0 answers
244 views

I'm trying to write a OpenVPN plugin in go. OpenVPN provides a interface as C header file. The header contains a function signature int openvpn_plugin_open_v3(const int version, struct ...
jkroepke's user avatar
  • 140
5 votes
2 answers
4k views

Calling zig build-lib -femit-h my_lib_source.zig, a c-header file can be exported for a library written in zig. How can the same be achieved in build.zig? Could this be achieved with an option to b....
captain_error's user avatar
1 vote
1 answer
101 views

I am trying to write a C header file in this manner: // header.h #ifndef HEADER_H #define HEADER_H extern int add(int a, int b); #endif // header.c #include "header.h" int add(int a, int ...
ArijitKD's user avatar
  • 113
0 votes
0 answers
488 views

I am starting with the raspberry pi pico and the visual studio code in windows. I am practising with the pico examples coming in the SDK V1.5. What I want to try in this example is to add a new level ...
Rarodron's user avatar
0 votes
1 answer
307 views

I see a plenty of similar questions, which are duplicates (like 12074147), but most of them are concerned with mathematical functions implementation. My question is more about C standard headers, like ...
garej's user avatar
  • 575
1 vote
1 answer
325 views

The definition of struct datatype should be in the header file and not the opposite. This is what I understand while this project does the opposite in this special case. What drive the contributor to ...
amed svensson's user avatar
-1 votes
1 answer
341 views

I was wondering if there is a tool to compare C header files to the main version of those same files locally. To be more specific I have to compare the macros of the header files from the main version ...
pekoms's user avatar
  • 73
-4 votes
2 answers
1k views

There was a requirement to include #!/bin/bash in the first line of all files in a project to create static libraries, but during compilation of the object file, the compiler gave me the message: In ...
Adetops's user avatar

15 30 50 per page