User Profile
Collapse
-
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));" -
Operations between types "struct _object*" and "int" is not allowed
The part of the code that is causing this error is:
I have tried to undefined the variable and malloc. I am not sure how to correct the error.Code:newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self));
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
No activity results to display
Show More
Leave a comment: