Skip navigation.
Home
The QNX Community Portal

View topic - Problem with proto.h

Problem with proto.h

Isn't the name clear?

Problem with proto.h

Postby grillosolitario » Mon Jun 29, 2009 2:36 pm

Hello,

I'm doing a photon application with Phab, and in this application I have a timer, which callback is a function named 'tempo'. In code 'tempo.c' I have one sub-program:
void receive_data(struct str_data data);

The code of that sub program is written in receive_data.c and struct data is defined in receive_data.h, which has been "included" in 'tempo.c'

Ok, I compile, and I have a warning on proto.h, because it has the header of receive_data subprogram, but it doesn't recognize struct str_data. The warning is removed if I add #include receive_data.h in proto.h. However proto.h is self-made by Phab, so that line is removed each time I restart Phab.

Is there any other way for me to avoid that warning?

Thanks,

Grillo Solitario
grillosolitario
Active Member
 
Posts: 91
Joined: Mon Oct 18, 2004 4:47 pm
Location: Spain

Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron