× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I am v5r1.  adding .std to the includes makes no difference on my system.
When I remove "output(*print)" from the compile command, it compiles
correctly.  When I compile with that parm, my compile fails.

It would help a lot if IBM would make a resource available to answer
questions on the C++ compiler.  The bugs I can deal with.  But something
like using #pragma entry appears to be completely undocumented.

-Steve

-----Original Message-----
From: c400-l-bounces@xxxxxxxxxxxx [mailto:c400-l-bounces@xxxxxxxxxxxx]On
Behalf Of Bryan Dietz
Sent: Tuesday, August 10, 2004 11:30 AM
To: C programming iSeries / AS400
Subject: RE: [C400-L] compile listing does not show errors






I changed the includes to the following;

#include <vector.std>
#include <list.std>
#include <string.std>

this picked the includes in the qsysinc/std file

and it compiled just fine..   Oh BTW I am on V5R3.

----------------------------
Bryan Dietz

Aktion Associates


c400-l-bounces@xxxxxxxxxxxx wrote on 08/10/2004 10:02:11 AM:

-> ok.  I have found the problem!  Can someone verify the following?:
->
-> compile the following code:
->
-> #include <vector>
-> #include <list>
-> #include <string>
->
-> // ------------------- Dummy2 -------
-> void Dummy2( unsigned char* pBytes )
->  {
->    short  nLx ;
->    nLx = 5 ;
->  }
->
-> When I compile using the following command, the code compiles:
->   CRTCPPMOD MODULE(MAP0005) SRCFILE(MAPSRC) OPTION(*FULL)
->
-> But when I add "option(*print)" to the CRTCPPMOD command, the compile
fails.
->  CRTCPPMOD MODULE(MAP0005) SRCFILE(MAPSRC) OPTION(*FULL) output(*print)
->
-> CZS0613 - the compilation failed.
->
-> And for some odd buggy reason, when I remove the
->  #include <string>
-> from the source, the code compiles whether output(*print) is used or
not.
->
-> -----Original Message-----
-> From: c400-l-bounces@xxxxxxxxxxxx [mailto:c400-l-bounces@xxxxxxxxxxxx]On
-> Behalf Of Elvis Budimlic
-> Sent: Monday, August 09, 2004 12:18 PM
-> To: 'C programming iSeries / AS400'
-> Subject: RE: [C400-L] compile listing does not show errors
->
->
-> Can't recall exactly what the search path algorithm is for the
#includes, so
-> what I do is help the compiler find the parts by telling it which file
to
-> look at.
-> So instead of #include <string>, I'd say #include <string.h> where H is
the
-> source physical file located in QSYSINC, which is always in the *LIBL
-> (library list).
-> You can also use fully qualified include names, but then your code would
be
-> as400 specific (i.e. #include <QSYSINC/H/STRING>).
->
-> Hope that helps.
->
-> Elvis
->
-> -----Original Message-----
-> From: c400-l-bounces@xxxxxxxxxxxx [mailto:c400-l-bounces@xxxxxxxxxxxx]
On
-> Behalf Of Steve Richter
-> Sent: Monday, August 09, 2004 9:00 AM
-> To: C programming iSeries / AS400
-> Subject: RE: [C400-L] compile listing does not show errors
->
-> thanks Terry.  I still dont see the error messages.
->
-> What is nuts about this is that the following code compiles when I
comment
-> out the "#include <string>" statement.
->
-> But it is not just using the STL string class.  If I intentionally add a
-> stmt that will make the compile fail, the error is not listed ( or in
the
-> joblog ).
->
->   800 - CRTCPPMOD MODULE(*CURLIB/MAP0004) SRCFILE(FAXMAIL/MAPSRC)
->  SRCMBR(*MODULE) OUTPUT(*print) OPTION(*FULL *NOLOGMSG) DBGVIEW(*ALL)
->
-> #include <stdio.h>
-> #include <errno.h>
-> #include <vector>
-> #include <list>
-> #include <string>
->
-> // ------------------ EntryProc ----------------
-> void EntryProc( )
->  {
->  return ;
->  }
->
-> // ------------------- Dummy2 ------------------
-> void Dummy2( unsigned char* pBytes )
->  {
->    short  nLx ;
->    nLx = 5 ;
->  }
->
-> -----Original Message-----
-> From: c400-l-bounces@xxxxxxxxxxxx [mailto:c400-l-bounces@xxxxxxxxxxxx]On
-> Behalf Of Terrence Enger
-> Sent: Monday, August 09, 2004 9:25 AM
-> To: C programming iSeries / AS400
-> Subject: Re: [C400-L] compile listing does not show errors
->
->
-> Steve,
->
-> I think that you want OPTION(*NOLOGMSG) to make diagnostics go to the
-> compile listing rather than the joblog.
->
-> Terry.
-> Available for contract programming.
->
->
-> At 09:02 2004-08-09 -0400, you wrote:
-> >I am getting a compile error.  The job log says to check the compile
-> >listing. The compile listing is simply a 2 page stub.   How do I get
the
-> c++
-> >compiler to print the full compile listing and show the error messages?
-> >
-> >here is my CRTCPPMOD command:
-> >
-> > CRTCPPMOD  MODULE(*CURLIB/&SRCMBR) +
-> >              SRCFILE(%SST(&SRCFILE 11 +
-> >              10)/%SST(&SRCFILE 1 10)) SRCMBR(*MODULE) +
-> >              OUTPUT(*print) OPTION(*FULL) DBGVIEW(*ALL)
-> >
-> >thanks,
-> >
-> >-Steve
-> >
-> >
-> >_______________________________________________
-> >This is the C programming iSeries / AS400 (C400-L) mailing list
-> >To post a message email: C400-L@xxxxxxxxxxxx
-> >To subscribe, unsubscribe, or change list options,
-> >visit: http://lists.midrange.com/mailman/listinfo/c400-l
-> >or email: C400-L-request@xxxxxxxxxxxx
-> >Before posting, please take a moment to review the archives
-> >at http://archive.midrange.com/c400-l.
-> >
-> >
-> >
->
-> _______________________________________________
-> This is the C programming iSeries / AS400 (C400-L) mailing list
-> To post a message email: C400-L@xxxxxxxxxxxx
-> To subscribe, unsubscribe, or change list options,
-> visit: http://lists.midrange.com/mailman/listinfo/c400-l
-> or email: C400-L-request@xxxxxxxxxxxx
-> Before posting, please take a moment to review the archives
-> at http://archive.midrange.com/c400-l.
->
->
-> _______________________________________________
-> This is the C programming iSeries / AS400 (C400-L) mailing list
-> To post a message email: C400-L@xxxxxxxxxxxx
-> To subscribe, unsubscribe, or change list options,
-> visit: http://lists.midrange.com/mailman/listinfo/c400-l
-> or email: C400-L-request@xxxxxxxxxxxx
-> Before posting, please take a moment to review the archives
-> at http://archive.midrange.com/c400-l.
->
->
->
->
-> _______________________________________________
-> This is the C programming iSeries / AS400 (C400-L) mailing list
-> To post a message email: C400-L@xxxxxxxxxxxx
-> To subscribe, unsubscribe, or change list options,
-> visit: http://lists.midrange.com/mailman/listinfo/c400-l
-> or email: C400-L-request@xxxxxxxxxxxx
-> Before posting, please take a moment to review the archives
-> at http://archive.midrange.com/c400-l.
->
->
-> _______________________________________________
-> This is the C programming iSeries / AS400 (C400-L) mailing list
-> To post a message email: C400-L@xxxxxxxxxxxx
-> To subscribe, unsubscribe, or change list options,
-> visit: http://lists.midrange.com/mailman/listinfo/c400-l
-> or email: C400-L-request@xxxxxxxxxxxx
-> Before posting, please take a moment to review the archives
-> at http://archive.midrange.com/c400-l.
->

_______________________________________________
This is the C programming iSeries / AS400 (C400-L) mailing list
To post a message email: C400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.