Hello,
what does it mean if something is declared like:
#define __something__
?
How do i know whether i can use it in another file? I have tried some arguments from different libraries to read in my c code, but haven't figured out, on what it really depends.
For instance i have the kernel.h or compiler.h (gcc 4.5.2) file included, but it is not possible to read any of its arguments. I get error "arg undeclared...". On the other hand some header-files work perfectly to read their defined arguments into my c code and print them out.
[edit]
I take the first arguments from different header-files, which are similarly defined in the header-files, and want to print them with printf.
Argument of kernel.h:
#ifndef _LINUX_KERNEL_H
#define _LINUX_KERNEL_H
And Argument of _G_config.h:
#ifndef _G_config_h
#define _G_config_h 1
In the first case i can't even compile the code, i get error message:
error: expected expression before ‘)’ token
when i do:
printf("%p\n",_LINUX_KERNEL_H);
This code works perfectly when i compile it with the argument of the _G_config.h file.
[/edit]