Also post your compiler options. You will find these at the top of your compile listing.

For example.

   Compiler options. . . . . . . :AGGRCOPY(NOOVERLAP) ANSIALIAS       ARCH(11)        ARGPARSE NOASCII                                  :ASM             NOATTRIBUTE ASSERT(RESTRICT) BITFIELD(UNSIGNED)                                  :CHARS(UNSIGNED) NOCHECKNEW NOCOMPACT       NOCOMPRESS      CVFT NODFP                                  :DIGRAPH DLL(NOCALLBACKANY)              ENUMSIZE(SMALL) NOEVENTS EXECOPS                                  :EXH             NOEXPMAC NOEXPORTALL     NOFASTTEMPINC   FLAG(I) NOFUNCEVENT                                  :GOFF            GONUMBER HALT(16)        NOHGPR          NOHOT NOIGNERRNO                                  :ILP32           NOINITAUTO NOINLRPT        NOLIBANSI       LIST LONGNAME                                  :NOMAKEDEP(NOPPONLY) NOMARGINS       MAXMEM(2097152) MEMORY                                  :NAMEMANGLING(zOSV1R2) NESTINC(255)    OBJECT OBJECTMODEL(CLASSIC)                                  :NOOE            NOOFFSET OPTIMIZE(2)     PLIST(HOST)     NOPORT NOPPONLY                                  :PREFETCH        REDIR NOREPORT        ROSTRING        ROCONST RTTI(ALL)                                  :NOSEQUENCE      NOSHOWINC NOSHOWMACROS    SOURCE          SKIPSRC(SHOW) SPILL(128)                                  :START           NOSTATICINLINE STRICT NOSTRICT_INDUCTION                                  :TARGET(LE,CURRENT) TEMPLATEDEPTH(300) NOTEMPLATEREGISTRY                                  :TEMPLATERECOMPILE TERMINAL        NOTEST(HOOK)    THREADED TMPLPARSE(NO)                                  :TUNE(11)        UNROLL(AUTO) UTF             NOVECTOR        NOWARN0X NOWARN64
                                 :NOWSIZEOF NOXREF
:ASMLIB(//'SYS1.MACLIB',//'SYS1.MODGEN')
:NOCICS
:NOCONVLIT
:CSECT()
:NODEBUG
:DEFINE(__IBMCPP_TR1__=1,_UNIX03_THREADS=1,_XOPEN_SOURCE=600,
BOOST_USER_CONFIG="libs/config/user.hpp")
:FLOAT(HEX,FOLD,NOMAF,AFP(NOVOLATILE)) ROUND(Z)
:NOHALTONMSG
:INFO(LAN)
:INLINE(AUTO,NOREPORT,100,1000)


On 20/10/2017 8:48 PM, Hilario Garcia wrote:
Hello David,

I send you the copy code of the program.

Thanks in advance.

Hilario

2017-10-20 14:38 GMT+02:00 David Crayford <[email protected]>:

Can you post a snippet of source code?



On 20/10/2017 7:33 PM, Hilario Garcia wrote:

Hello David,

Thank you very much for your comments on this.

I have made changes to my Compile JCl:


    LIST LONGNAME RENT SOURCE ASCII CONVLIT LOCALE (EN_US.IBM-037)

    LIST LONGNAME RENT SOURCE ASCII CONVLIT LOCALE (EN_US.IBM-1047)

I always receive the same errors in the C ++ & Binder Compilation process.
You can tell me something I should do wrong.

Thank you very much.

Hilario

PS: Errors are:
G CCN0049 'FJA.SAMPLE.C (LPCSI)': 0 The option "" is not supported.
CCN3166 FJA.SAMPLE.C (LPCSI): 43 Definition of function \ u00d1include
requires
CCN3276 FJA.SAMPLE.C (LPCSI): 43 Syntax error: possible missing '{'?
CCN3766 FJA.SAMPLE.C (LPCSI): 51 The universal character name "[" is not
in
the
fier
CCN3766 FJA.SAMPLE.C (LPCSI): 52 The universal character name "[" is not
in
the
fier
CCN3766 FJA.SAMPLE.C (LPCSI): 53 The universal character name "[" is not
in
the
fier
CCN3766 FJA.SAMPLE.C (LPCSI): 54 The universal character name "[" is not
in
the
fier
CCN3766 FJA.SAMPLE.C (LPCSI): 62 The universal character name "[" is not
in
the
fier
CCN3275 FJA.SAMPLE.C (LPCSI): 62 Unexpected text ']' encountered.
CCN3273 FJA.SAMPLE.C (LPCSI): 63 Missing type in declaration of filtkey.
CCN3766 FJA.SAMPLE.C (LPCSI): 67 The universal character name "[" is not
in
the
fier
CCN3275 FJA.SAMPLE.C (LPCSI): 67 Unexpected text ']' encountered.
CCN3766 FJA.SAMPLE.C (LPCSI): 84 The universal character name "[" is not
in
the
fier
CCN3275 FJA.SAMPLE.C (LPCSI): 84 Unexpected text ']' encountered.

2017-10-19 13:45 GMT+02:00 David Crayford <[email protected]>:

Those aren't special characters, they're fundamental to the language. Only
square brackets and the ^ operator are usually a problem for English code
pages. NOLOCALE is your problem. Specify what  code page you want to use
in the LOCALE() compiler option. For example LOCALE(EN_US.IBM-1047)  or
LOCALE(EN_US.IBM-037) .



On 19/10/2017 7:39 PM, Hilario Garcia wrote:

Hello,
I am new to using c / c ++ language. I try to compile the first program
under Z / os 2.1. The compiler detects errors when using special
characters
(#, [,], _ ..)

I have been trying to fix the problems through the compiler options:
NOASCII CONVLIT NOLOCALE, but I have not managed to solve it.

Can someone tell me something about how to solve this problem?

Thank you very much.

Hilario

PD (Attached compilation process

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to