ITEM: AA0247L
Cset++ compiler v.2.1.1 breaks when doing strncpy
Question:
AIX level 3.2.5 when doing strncpy with buffer, blows up with parameters to
function giving error message 1506-280.
Worked under earlier compiler xlC++/6000.
Response:
Using Cset++ demo version 2.1.1.0 of CD-ROM.
C Set++ compiles .c files in extended mode by default.
You must compile with the -qlanglvl=ansi flag for ANSI mode.
If you do not use ansi mode you will get the following error:
1506-280 (E) Function argument assignment between types
"const char**" and "char**" is not allowed.
C Set ++ for AIX has it's own C compiler and doesn't call xlc
like XL C++ did. The compiler is working as designed.
They tried it using .C and had no problems.
Cset++ was designed to be portable between different platforms
like OS/2 and AS/400. This portability results in the C compiler to be
independent of the system. While xlC/6000 utilizes the same "back-end"
that other 6000 compilers do. This results in the compilers "sharing"
subroutines and libraries.
Support Line: Cset++ compiler v.2.1.1 breaks when doing strncpy ITEM: AA0247L
Dated: June 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:32
Comments or suggestions?
Contact us