Results 1 to 1 of 1
  1. #1
    Join Date
    Aug 2003
    Location
    china
    Posts
    13

    Unanswered: about Sybase 12.5 AIX and ESQL

    I make a .h file ,the content is follow:

    EXEC SQL INCLUDE SQLCA;
    EXEC SQL BEGIN DECLARE SECTION;
    char a1[10];
    int a2;
    struct t1{
    char t1[30];
    char t2[20];
    int t3;
    };
    EXEC SQL END DECLARE SECTION;

    then I use struct t1 in my .cp file

    when I compiler ,I got an error:

    M_STRUCT_NOTFOUND,Structure/union definition not found in scope in test.cp

    If I delete :

    struct t1{
    char t1[30];
    char t2[20];
    int t3;
    };

    in the .h file,and don't use struct t1 in my .cp file,

    I can compiler ,and I can got the result.
    but I must use
    struct t1{
    char t1[30];
    char t2[20];
    int t3;
    };
    in my .cp file.
    how can I do? why?
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •