Search:

Type: Posts; User: gerger

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    17,087

    error: array type has incomplete element type

    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...
  2. error: conflicting types for 'sbp_pos_lookup_1'

    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...
  3. error: conflicting types for 'sbp_pos_lookup_1'

    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...
  4. error: conflicting types for 'sbp_pos_lookup_1'

    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...
  5. Replies
    8
    Views
    17,087

    error: array type has incomplete element type

    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...
  6. Replies
    8
    Views
    17,087

    error: array type has incomplete element type

    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...
  7. error: conflicting types for 'sbp_pos_lookup_1'

    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...
  8. Replies
    8
    Views
    17,087

    error: array type has incomplete element type

    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,...
Results 1 to 8 of 8