User Profile

Collapse

Profile Sidebar

Collapse
hancockm
hancockm
Last Activity: May 6 '15, 07:02 PM
Joined: May 6 '15
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • update: I found the solution....... . inside ctype.h file I defined the struct as an int "#define objectint(b) *(uint8_t*)&b" and then I went to the offending line of code and change "newobj = STRINGLIB_NEW(N ULL, STRINGLIB_LEN(s elf));" to "objectint(newo bj) = STRINGLIB_NEW(N ULL, STRINGLIB_LEN(s elf));"
    See more | Go to post

    Leave a comment:


  • Operations between types "struct _object*" and "int" is not allowed

    The part of the code that is causing this error is:
    Code:
    newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self));
    I have tried to undefined the variable and malloc. I am not sure how to correct the error.
    Also I am compiling this to with the ILE C AS400 compiler
    The following is the entire code.....

    Code:
    /* NOTE: this API is -ONLY- for use with single byte character strings. */
    /* Do
    ...
    See more | Go to post
No activity results to display
Show More
Working...