This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
H,
when i try to compile the main.h file below it says:
"p_open was not declared in this ambit."
any idea?
###########main.c############
add the following include: #include "memory.h"
#include "estructuras.h"This should be "struct openCmd_t *p_open;", you forgot the 'struct' keywork.
main(int argc, char *argv[])
{
char *comando; openCmd_t *p_open;
hth... memcpy(comando, p_open, sizeof (*p_open)); /////////// error line
}
#######estructuras.h#########
struct openCmd_t { char username[20];
char password[20];
};
br. GARFF
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |