jim marshall wrote: > This should be "struct openCmd_t *p_open;", you forgot the 'struct' > keywork. > add the following include: >#include "memory.h" Thanks but it doesnt work..The error is the same GARFF jim marshall wrote: > > tirengarfio wrote: >> 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" >> >> main(int argc, char *argv[]) >> >> { >> >> char *comando; >> openCmd_t *p_open; > This should be "struct openCmd_t *p_open;", you forgot the 'struct' > keywork. >> ... >> memcpy(comando, p_open, sizeof (*p_open)); /////////// error line >> >> >> } >> >> #######estructuras.h######### >> >> >> struct openCmd_t { >> char username[20]; >> char password[20]; >> }; >> >> >> >> >> br. >> GARFF > hth > > > -- View this message in context: http://www.nabble.com/...was-not-declared-in-this-ambit-tf4765631.html#a13636560 Sent from the gcc - Help mailing list archive at Nabble.com.