header-files

Pulseaudio header files under FC12

Greetings, I'm trying to make use of the Pulseaudio APIs under Fedora Core 12. To do a simple recording client, you're supposed to include these headers: #include <pulse/simple.h> #include <pulse/error.h> #include <pulse/gccmacro.h> However, I don't know where these files are under a stock FC12 installation. Any help would be appre...

List of standard header files in C and C++

Where could I find the list of all header files in c/c++? While I am building a library I am getting an error like tree.h not found. I suppose this is a standard header file in c/c++. This raised in me the curiosity to know all the header files and their contribution. Is there a place I can search for? I am working on Solaris Unix. ...

compiling various header files in c using autotools in arch linux

i would like to know how can i compile a number of header files by just one command using autotools in arch linux ...

Avoiding #import of header for abstract-only parent class

I develop CHDataStructures, a library of Cocoa data structures to supplement those in Foundation. It includes a fair number of classes (stacks, queues, and dequeues) that share common implementation details, so it makes sense to design them with a common parent class which I treat as abstract (Objective-C doesn't natively enforce this co...

autotools for 2 programs

I have a program main.c which calls header.c with the help of header.h in its program. I know how to compile it in GCC but now i would like to use autotools for it. I would like to know what should be written in Makefile.am to compile main.c? so for example if i have two c files main.c and header.c as given below main.c:- #include<std...

Where are the header files for C in Xcode?

I'm trying to find the header files for things such as limits.h in XCode. Where do they exist? Thanks. ...

Xcode cannot find #Include<> header

I'm trying to get Xcode to import the header file for Irrlicht. #include <irrlicht.h> It says "Irrlicht.h. No such file or directory". Yes Irrlicht.h with a capital I, even though the #include is lowercase. Anyway I added "/lib/irrlicht-1.6/include" in the header search paths for the Xcode project, yet it still doesn't find it. The ...

Why does not the Python MSI installers come with Tcl/Tk header files?

The MSI installers downloadable from python.org does not include Tcl/Tk header (not source) files (that are required to compile some packages like matplotlib). Does anyone know of the rationale behind not including them? ...

What is the significance of a .h file?

I know that .h file is supposed to have: class declarations, function prototypes, and extern variables (for global variables) But is there some significance of making it a .h file? I tried renaming my .h file to a .c file and it still works. We can name our file to be anything, but we choose to name it as a .h file. Am I correct? ...

C++: How can 2 classes call each other without redeclaration and without headers calling each other

I have a bit of problem with this. I have a class A which instantiates an object of B and then B which instantiates an object of A. Is this at all possible? I tried adding this in the headers of each #ifndef A #define A class a... #endif but if keeps me in an infinite header loop which it reaches the maximum header includes, so obvi...

Including header files style - C++

I have a project which has the following directory structure. root --include ----module1 ----module2 --src ----module1 ----module2 So a file say foo.cpp in src/module1 has to include like, #include "../../include/module1/foo.hpp" This looks messy and tough to write. I found writing include like #include <module1/foo.h> and provi...

Checking the return value of a function in a macro

I have core function which i can call from the customized module of the product. function_core is the core function which will return and integer we have a macro in header file #define func_cust function_core i am calling func_cust inside my customized code. EDIT: but inside the core we again call some other core function #defin...

What are the point of header files in C?

Possible Duplicates: [C] Header per source file. In C++ why have header files and cpp files? C++ - What should go into an .h file? Is the only reason header files exist in C is so a developer can quickly see what functions are available, and what arguments they can take? Or is it something to do with the compiler? Why has...

Accessing C header magic numbers/flags with Cython

Some standard C libraries that I want to access with Cython have a ton of flags. The Cython docs state that I must replicate the parts of the header I need. Which is fine when it comes to functions definitions. They are usually replicated everywhere, docs included. But what about all those magic numbers? If I want to call mmap, I can a...

Doxygen: How to exclude private headers from showing up in source browser?

Hi, I have set SOURCE_BROWSER = NO and VERBATIM_HEADERS = YES because I want clients to be able to see the header files, however I only want to allow them to see certain headers. How is the best way to do this. Thanks in advance for any help! csmithmaui EDIT: SOLVED! I actually just figured out one way to do it. EXCLUDE_PATTERNS ...

Is there a difference between only <NSXMLParserDelegate>, only setDelegate method, or the use of both of them ?

Hey, I noticed that when I do this : [myParser setDelegate:self]; it works :D (even if I didn't add the code in the header file ... you know, the <delegateStuff, delegateOtherStuff> in the interface declaration) When are you supposed to modify the header file to make your delegate work ? Is the setDelegate method enough to ma...

How to compile with --pedantic-errors on OS X?

Here's a simple C file: #include <stdio.h> #include <stdlib.h> int main() { printf("hi there!\n"); return 0; } Compiling with gcc -ansi -pedantic -pedantic-errors gives this: In file included from /usr/include/i386/_structs.h:38, from /usr/include/machine/_structs.h:31, from /usr/include/sys/_struct...

"unable to open stdio.h in turbo c"

whenever i compile my program i get the error above,plz give some solution. ...

CUDA source files get a .cu extension. What do header files get?

The standard convention seems to be to give CUDA source-code files a .cu extension, to distinguish them from C files with a .c extension. What's the corresponding convention for CUDA-specific header files? Is there one? ...

Makefile, header dependencies

Let's say I have a makefile with the rule %.o: %.c gcc -Wall -Iinclude ... I want *.o to be rebuilt whenever a header file changes. Rather than work out a list of dependencies, whenever any header file in /include changes, then all objects in the dir must be rebuilt. I can't think of a nice way to change the rule to accomodate this...