The struct is defined outside the MAIN_PROG.
I am wondering why the same code has been successfully compiled in AIX and is working fine. The problem is in Linux, I'm getting the compile error...
Type: Posts; User: gerger
The struct is defined outside the MAIN_PROG.
I am wondering why the same code has been successfully compiled in AIX and is working fine. The problem is in Linux, I'm getting the compile error...
Here are the files indicated in the error:
sbp_pos.c:21: error: conflicting types for 'sbp_pos_lookup_1'
sbp_svr.h:80: error: previous declaration of 'sbp_pos_lookup_1' was here
Line 21 points...
That is the first statement after the 'else' statement. That's where I'm getting the compile error.
This is the part of the code:
#ifdef __STDC__
struct sbp_pos_msg *sbp_pos_lookup_1(struct...
Thanks, Salem for your response.
Yes, it matches the declaration. I'm actually getting the error in this line
struct sbp_pos_msg *sbp_pos_lookup_1();
It was actually successfully compiled and...
Thanks Adak for your response.
Yes the MAX_SIZE has been defined in the code.
#define MAX_SIZE 1000.
The program has been successfully compiled in AIX, and it's working fine. However, when I...
Thanks cas for your response.
What do you mean by the source of the gcc error is lack of a struct defition? If it lack of a struct definition, how it can be defined then based on the provided...
Hi,
I got this error when I compiled the program in Linux platform:
'error: conflicting types for 'sbp_pos_lookup_1'
'error: previous declaration of 'sbp_pos_lookup_1' was here
but it works...
Hi,
I'm getting this error when I tried to compile the program in Linux platform.
'error: array type has incomplete element type'
It works fine in AIX and was able to successfully compile,...