Studio 8 compiler error using rogue wave header in std mode

I get the following compiler error. I am using -library=rwtools7_std in the CC command.
The error is:-
"/opt/studio/SUNWspro/prod/include/CC/rw7/rw/rstream.h", line 46: Error: The name istream is ambiguous, istream and std::istream.
"/opt/studio/SUNWspro/prod/include/CC/rw7/rw/rstream.h", line 46: Error: The name istream is ambiguous, istream and std::istream.
"/opt/studio/SUNWspro/prod/include/CC/rw7/rw/rstream.h", line 46: Error: The type "istream" is incomplete.
Please help
Kandiah

All,
I'm getting the following error when I moved to Rogue Wave release 7.0 from 4.0. We're using Sun's FORTE C++ compiler version 7.0.
Please advise
*** Build for src 'all' target STARTED: Thu Jan 18 16:37:04 EST 2007
/xenv/Forte/sun4/7.0/5.8p4/prod/bin/CC -g -features=no%conststrings -DCPLUSREL=7 -D_RWCONFIG=12d -DRW_MULTI_THREAD -O -mt -D_REENTRANT -c -I. -I/xenv/rwsp_tools/sun4/5.8p4/7.0/32/core900_12d -I/xenv/mqi/sun4/5.x/5.3.0.5/inc -I/xenv/ccs_standard_s8/sun4/5.8p4/4.1_B1/include MQInfo.cc MQBase.cc ZeusAccountBridge.cc
MQInfo.cc:
MQBase.cc:
"/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/defs.h", line 316: Error: A typedef name cannot be used in an elaborated type specifier..
"/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/defs.h", line 317: Error: A typedef name cannot be used in an elaborated type specifier..
"/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/defs.h", line 318: Error: A typedef name cannot be used in an elaborated type specifier..
"/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/stringid.h", line 50: Error: A typedef name cannot be used in an elaborated type specifier..
"/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/stringid.h", line 51: Error: A typedef name cannot be used in an elaborated type specifier..
"/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/collint.h", line 75: Error: A typedef name cannot be used in an elaborated type specifier..
"/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/collint.h", line 76: Error: A typedef name cannot be used in an elaborated type specifier..
7 Error(s) detected.
ZeusAccountBridge.cc:
"/xenv/ccs_standard_s8/sun4/5.8p4/4.1_B1/include/ccs_data.h", line 126: Warning (Anachronism): Using int(*)(void*,ccs_Data*) to initialize void*.
"/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/defs.h", line 316: Error: A typedef name cannot be used in an elaborated type specifier..
"/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/defs.h", line 317: Error: A typedef name cannot be used in an elaborated type specifier..
"/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/defs.h", line 318: Error: A typedef name cannot be used in an elaborated type specifier..
3 Error(s) and 1 Warning(s) detected.

Similar Messages

  • [svn:fx-trunk] 5408: Fix for - Compiler error using Reparent in a Halo Navigator.

    Revision: 5408
    Author: [email protected]
    Date: 2009-03-18 20:57:19 -0700 (Wed, 18 Mar 2009)
    Log Message:
    Fix for - Compiler error using Reparent in a Halo Navigator.
    QE Notes: None.
    Doc Notes: None.
    Reviewer: Paul, please review.
    Bugs: SDK-20099
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-20099
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a

  • Errors using aCC 3.31--- Unexpected 'std'

    [Compilation Errors using aCC 3.31/HP-UX 11.0 --
                           Unexpected 'std']
    Hi,
    I get the following errors when I try to include 'occi.h' in my programs while working with the OCCI classes for Oracle9i database connectivity. Please let me know if I'm missing anything or perhaps do anything different to get rid of this problem.
    Thanks for your time.
    Chandra M.
    =========================================================
    Error 19:
    "/nfs/scec/disks/imo043/oracle/92/product/9.2.0/rdbms/demo/occiCommon.h",
    line 339 # Unexpected 'std'.
    void getVector( const AnyData &any, OCCI_STD_NAMESPACE::vector<OCCI_STD_N
    ^^^^^^^^^^^^^^^^^^
    Error 19:
    "/nfs/scec/disks/imo043/oracle/92/product/9.2.0/rdbms/demo/occiCommon.h",
    line 339 # Unexpected 'std'.
    void getVector( const AnyData &any, OCCI_STD_NAMESPACE::vector<OCCI_STD_NAMESPACE::
    ^^^^^^^^^^^^^^^^^^
    =========================================================

    Yeah, I did use that but it did give me problems when using aCC 3.31. But later on when I used aCC 3.34, it barely compiled with a bunch of Future errors and Warnings. BTW. do you have any specific version of aCC that has to be used with occi.h. Please let me know.
    And specifically, when I had to use Rogue Wave Libraries in the program code.
    Thanks a lot
    Chandra M.

  • Compiler error using compareTo

    I get a compiler error when I use compareTo with the Character class. I confirmed the error with following code from The Java Tutorial:
    public class CharacterDemo {
    public static void main(String args[]) {
    Character a = new Character('a');
    Character a2 = new Character('a');
    Character b = new Character('b');
    // ******* Problem is here ************
    int difference = a.compareTo(b);
    if (difference == 0) {
    System.out.println("a is equal to b.");
    } else if (difference < 0) {
    System.out.println("a is less than b.");
    } else if (difference > 0) {
    System.out.println("a is greater than b.");
    System.out.println("a is "
    + ((a.equals(a2)) ? "equal" : "not equal")
    + " to a2.");
    System.out.println("The character " + a.toString() + " is "
    + (Character.isUpperCase(a.charValue()) ? "upper" : "lower")
    + "case.");
    The compilier is complaining that compareTo is not part of the Character class. I am compiling with whatever compilier was installed with Suse Linux 7.1. The code compiles fine on my university's Unix system that I can dial into.
    I figure my Linux version must have some old compiler. But to be honest, I am also new to Linux and am having trouble figuring out what I am compiling with. Can any expert out there give me advice on identifying/updating the Java technology I am using. Thanks in advance.
    Jim

    Check the jdk version using the java command:
    java -versionwhich will output the jdk version you're using.

  • Urgent: Form Compilation Error using frmcmp.sh on OAS 10.1.2, pls help..

    Hi All,
    I am upgrading from OAS 9.0.4 to 10.1.2 where Forms 10g application is deployed.
    When I try to recompile with frmcmp.sh :
    frmcmp.sh userid=system/oracle123@odb module_type=FORM module=menu1.fmb
    I get errors :
    Compiling Procedure GET_PATH...
    Compilation error on procedure GET_PATH:
    PL/SQL ERROR 201 at line 4, column 32
    Identifier 'APPS_MENU1_DET' must be declared
    PL/SQL ERROR 0 at line 4, column 3
    SQL Statement ignored
    Compilation error have occured.
    Form not created
    What cause this error ?
    FYI, on the above compilation I connect to different database/schema, not the one
    which is used by the Form, is this the reason of th error ?
    During compilation, Do I have to connect to the database/schema I used when develop the form ?
    DO I have to create all tables in the schema first before compilation ?
    Tnank you for your hwlp,
    xtanto
    PS. When I compile the same Form with F90genm.sh on OAS 9.0.4, NO ERROR.

    From my experience it's a really bad idea to install OCS into a AS IM. When it comes to upgrades and patches you'll pull your hair out!
    Why not install OCS first and then install the BI into the OCS AS server... I have not checked the certification matrix but that might be a better solution to look into.

  • Compile errors using wsgen (WL 6.1sp2)

    I'm trying to create an rpc webservice using the wsgen tool, but I'm
    running into compilation errors when the tool tries to compile java files
    that it has generated. Attached are the two java files that wsgen generated
    for my webservice. The errors are pretty straightforward - there is no
    identifier in the package statement. Has anyone come across this problem
    before? Here's the relevant console output when running Ant:
    wsgen-weblogic6:
    c:\DOCUME~1\tohara\LOCALS~1\Temp\wsgen\tohara39\client-tmp\EventPublisher.ja
    va:1
    : <identifier> expected
    package ;
    ^
    c:\DOCUME~1\tohara\LOCALS~1\Temp\wsgen\tohara39\client-tmp\EventPublisherFac
    tory
    .java:1: <identifier> expected
    package ;
    ^
    2 errors
    [wsgen] Exec failed .. exiting
    Thanks,
    Timo
    [EventPublisherFactory.java]
    [EventPublisher.java]

    Hello,
    Could you post your build.xml? Also could you post the log from ant -verbose? Just a shot, but have
    you tried building in a directory tree that does not contain spaces in the name?
    Thanks,
    Bruce
    Timothy O'Hara wrote:
    I'm trying to create an rpc webservice using the wsgen tool, but I'm
    running into compilation errors when the tool tries to compile java files
    that it has generated. Attached are the two java files that wsgen generated
    for my webservice. The errors are pretty straightforward - there is no
    identifier in the package statement. Has anyone come across this problem
    before? Here's the relevant console output when running Ant:
    wsgen-weblogic6:
    c:\DOCUME~1\tohara\LOCALS~1\Temp\wsgen\tohara39\client-tmp\EventPublisher.ja
    va:1
    : <identifier> expected
    package ;
    ^
    c:\DOCUME~1\tohara\LOCALS~1\Temp\wsgen\tohara39\client-tmp\EventPublisherFac
    tory
    .java:1: <identifier> expected
    package ;
    ^
    2 errors
    [wsgen] Exec failed .. exiting
    Thanks,
    Timo
    package ;
    public class EventPublisherFactory {
    public static EventPublisher getService()
    throws javax.naming.NamingException
    String url = "http://localhost:80/bas-ws/bas.platform.components.EventPublisherHome/wsdl.jsp";
    java.util.Properties h = new java.util.Properties();
    h.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.soap.http.SoapInitialContextFactory");
    h.put("weblogic.soap.wsdl.interface",
    EventPublisher.class.getName());
    h.put("weblogic.soap.verbose", "true");
    javax.naming.Context context =
    new javax.naming.InitialContext(h);
    return (EventPublisher)context.lookup(url);
    package ;
    public interface EventPublisher{
    void publishEvent( String arg0 );

  • Compile errors using bpelx:append

    I'm getting compile errors from one particular bpelx:append. I have others earlier in the bpel code, and they seem to be passing the check.
    <bpelx:append>
    <from variable="set-panel-member" query="/client:set-panel-member"/>
    <to variable="setPanel_setPanel_InputVariable" part="setPanelRequest" query="/setPanelRequest/panel/panel-member"/>
    </bpelx:append>
    Produces:
    Error(437):
    [Error ORABPEL-10900]: xml parser error
    [Description]: in line 437 of "D:\BPEL_SANITARIUM\BPELPM\integration\jdev\jdev\mywork\Workspace\identifyPanelMembers\identifyPanelMembers.bpel", XML parsing failed because Invalid content starting with element "bpelx:append".
    [Potential fix]: Fix the invalid XML.
    <assign name="appendTheRest">
    <bpelx:append>
    <from variable="set-panel-member" query="/client:set-panel-member"/>
    <to variable="setPanel_setPanel_InputVariable" part="setPanelRequest" query="/setPanelRequest/panel/panel-member"/>
    </bpelx:append>
    </assign>
    Produces:
    Error(436):
    [Error ORABPEL-10900]: xml parser error
    [Description]: in line 436 of "D:\BPEL_SANITARIUM\BPELPM\integration\jdev\jdev\mywork\Workspace\identifyPanelMembers\identifyPanelMembers.bpel", XML parsing failed because Invalid content starting with element "assign".
    [Potential fix]: Fix the invalid XML.
    The code is contained within a Switch block:
    <switch name="Switch_4">
    <case condition="bpws:getVariableData('index') = 1">
    <bpelx:annotation>
    <bpelx:pattern>First time only
    </bpelx:pattern>
    </bpelx:annotation>
    <assign name="setFirstPanelMember">
    <copy>
    <from variable="set-panel-member" query="/client:set-panel-member"/>
    <to variable="setPanel_setPanel_InputVariable" part="setPanelRequest" query="/setPanelRequest/panel/panel-member"/>
    </copy>
    </assign>
    </case>
    <otherwise>
    <empty name="append.the.rest"/>
    <assign name="appendTheRest">
    <bpelx:append>
    <from variable="set-panel-member" query="/client:set-panel-member"/>
    <to variable="setPanel_setPanel_InputVariable" part="setPanelRequest" query="/setPanelRequest/panel/panel-member"/>
    </bpelx:append>
    </assign>
    </otherwise>
    </switch>
    Any ideas?

    We are also receiving the same error. Our process was built for a client in 10.1.2.0.2 and the GUI interface never really liked the bpelx:append statement - it always showed up as an alert/error. But it worked on 10.1.2.0.2
    Now that the client is upgrading to 10.1.3, it won't actually compile.
    Anyone know of a solution?

  • Odd compile errors using a struct in a vector

    I am following Accelerated C++ by Koenig and Moo to learn C++, using Eclipse as my IDE and the MinGW tool chain. Chapter 4 teaches about the struct concept using a pretty simple multi-file example program which emulates reading in a series of student grades and outputs the averages. The struct it defines is called Student_info. Here is Student_info.h:
    #ifndef STUDENT_INFO_H_GUARD
    #define STUDENT_INFO_H_GUARD
    #include <iostream>
    #include <string>
    #include <vector>
    struct Student_info {
    std::string name;
    double midterm, final;
    std::vector<double> homework;
    bool compare(const Student_info&, const Student_info&);
    std::istream& read(std::istream&, Student_info);
    std::istream& read_hw(std::istream&, std::vector<double>&);
    #endif /* STUDENT_INFO_H_GUARD */
    There are no errors associated with compare, read or read_hw.
    The problem I am having is that even though the simple variable declaration below seems to work,
    #include "Student_info.h"
    int main() {
    vector<Student_info> students;
    Student_info record;
    string::size_type maxlen = 0;
    in the sense that the Eclipse code editor signals via i) its color coding that it has found the data type; ii) when I mouseover, it shows me the underlying Student_info definition in the hover box; and iii) the code associated with the variable "record" doesn't generate errors.
    However, when I try to use the students vector within main(), I get 'could not be resolved' errors on the property names or 'invalid arguments' for functions which try to pass the variables. For example,
    for(vector<Student_info>::size_type i=0; i!=students.size(); ++i) {
    cout << students[i].name
    << string(maxlen+1 - students[i].name.size(), ' ');
    produces a "Method 'size' could not be resolved" error and a "Field 'name' could be resolved" error.
    It's very odd to me, as I said, because mouseover of the vector students declaration at the beginning of main() produces a hover box with the correct struct definition, indicating the include file is being found and contains the intended definition with the 'name' property defined as a string.
    I've been trying to solve this for a couple of days and have searched the web and this site, as well as going over all the code many times. The code seems to be exactly what is in the book and it's not too difficult to figure out what it is supposed to be doing. I haven't been able to find a similar error description here or elsewhere by Googling. These errors prevent the project from compiling and so I can't precede. I'm hoping someone can describe what might possibly cause such a thing.
    Here's a shortened version of the file with main in it:
    #include <algorithm>
    #include <iomanip>
    #include <ios>
    #include <iostream>
    #include <string>
    #include <vector>
    #include <stdexcept>
    #include "Student_info.h"
    //say what standard library names we use
    using std::cin; using std::setprecision;
    using std::cout; using std::sort;
    using std::domain_error; using std::streamsize;
    using std::endl; using std::string;
    using std::max; using std::vector;
    int main() { // begin main
    vector<Student_info> students;
    Student_info record;
    string::size_type maxlen = 0;
    //read and store all the records, and find the length
    // of the longest name
    while(read(cin, record)) {
    maxlen = max(maxlen, record.name.size());
    students.push_back(record);
    //alphabetize the records
    sort(students.begin(), students.end(), compare);
    for(vector<Student_info>::size_type i=0; i!=students.size(); ++i) {
    // write the name, padded on the right to maxlen+1 chars
    cout << students[i].name
    << string(maxlen+1 - students[i].name.size(), ' ');
    //compute and write the grade
    cout << endl;
    return 0;
    } // end main
    Here are the 'read' functions, which are in a separate file from main and don't seem to be producing any errors:
    #include "Student_info.h"
    using std::istream; using std::vector;
    istream& read_hw(istream& in, vector<double>& hw) {
    if (in) {
    // get rid of previous contents
    hw.clear();
    // read homework grades
    double x;
    while (in >> x)
    hw.push_back(x);
    // clear the stream so that input will work for the
    // next student
    in.clear();
    return in;
    istream& read(istream& is, Student_info s) {
    // read and store the student's name and midterm and final exam
    is >> s.name >> s.midterm >> s.final;
    read_hw(is, s.homework);
    return is;
    bool compare(const Student_info& x, const Student_info& y) {
    return x.name < y.name;
    }

    Do you mind to try:
    for(unsigned i=0; i < students.size(); ++i)
    instead of :
    for(vector<Student_info>::size_type i=0; i!=students.size(); ++i)

  • Compilation errors using jhs 10.1.3.1 and jdeveloper 10.1.3.2

    jdeveloper version: 10.1.3.2.0.4066
    jheadstart version: 10.1.3.1.25
    I have just installed both of the above and am receiving errors on compilation in both my viewcontroller and model projects.
    I receive the following error on the view project as soon as jheadstart is enabled:
    C:\myfilepath\ViewController\public_html\jheadstart\version.jsp
    Error(25,34): identifier Version not found
    which relates to this part of the jsp file in question:
    <HTML>
    <head>
    <title>JHeadstart Version Information
    </title>
    </head>
    <body>
    <H1>JHeadstart Version Information</H1>
    JHeadstart Runtime Version: <B><%= oracle.jheadstart.Version.VERSION %></B>
    </body>
    </html>
    and the following error in the model project after I have generated the application:
    C:\myfilepath\Model\src\test\jhs\model\common\AppModule.java
    Error(5,8): JhsApplicationModule not found
    which relates to this java file
    package test.jhs.model.common;
    import oracle.jbo.ApplicationModule;
    import oracle.jheadstart.model.adfbc.v2.JhsApplicationModule;
    // --- File generated by Oracle ADF Business Components Design Time.
    public interface AppModule extends ApplicationModule, JhsApplicationModule {
    Help.
    (sorry, not sure why this message is ignoring my formatting - makes it a bit hard to read)

    Sean,
    I just found out the same difference! Something must have gone wrong during the final production build. We have created a new build 10.1.3.1.26 with the correct jar file name, which can now be downloaded from cso.oracle.com.
    I apologize for the inconvenience. Anybody that already downloaded 10.1.3.1 build 25, please download build 26, which is the new "official" 10.1.3.1 build number.
    Steven Davelaar,
    JHeadstart Team.

  • Compiler error using T extends S

    The following produces an error on the last call to getWrap.
    incompatible types found: A.Wrap<java.util.HashMap> required: A.Wrap<java.util.Map>
    Is there anything in the declaration of getWrap to signify that S can be a super class of T?
    public class A {
        public static <S, T extends S> Wrap<S> getWrap(T t) {
            return new Wrap<S>(t);
        public static void main(String[] args) {
            Wrap<HashMap> map1 = getWrap(new HashMap()); // compiles
            Wrap<Map> map2 = getWrap((Map) new HashMap()); // compiles
            Wrap<Map> map3 = getWrap(new HashMap()); // incompatible types
        public static class Wrap<E> {
            private final E e;
            public Wrap(E e) {
                this.e = e;
    }

    From what you are saying, in this case, it appears the T extends S adds no value.
    Using explicit paratised types is a bit like casting, in this case casting to a super class.
    My preference would be for
    Wrap<Map> map3 = getWrap((Map) new HashMap());I have noted before that Java does not consider a desired return type. Some languages do, but imagine this is hard to get right. What I imagined was a return type of getWrap(new HashMap()) of something like Wrap<? super HashMap>.
    I have seen generic work very well for return types in other places, however the return type was determined by the IDE rather then the compiler.
    e.g.
    public interface Visitor<V,T> {
        public T visit(V visited) throws RuntimeException;
    // visits an object of type V and triggers optional events of type E
    public interface VisitProxy <V, E> {
        public <T> T visit(Visitor<V, T> visitor, Notifier<E> notifier) throws RuntimeException;
    public class CollectionProxy<E> implements Collection<E>, VisitProxy<Collection<E>, Event<Integer, E>> {
        private final VisitProxy<Collection<E>> proxy;
        public boolean add(E e) {
             return proxy.visit(new <Ctrl-Space>
    // The IDE fills in the following.
            return proxy.visit(new Visitor<Collection<E>, Event<Integer, E>, Boolean>() {
                public Boolean visit(Collection<E> es, Notifier<Event<Integer, E>> notifier) throws RuntimeException {
                    return null;
            });Another key turns the anonymous class into a method so I can make it static.
    Here the IDE is determining the approriate return type. In this case Boolean which can be unboxed into boolean.
    Thank you to everyone who replied.
    BTW: This is a simplified example based on a real program.

  • Compilation error on Solaris  2.6  using SUn Workshop 4.2(Rogue wave STL)

    Hello,
    I am facing a problem while using Rogue wave STLs on SOlaris 2.6 using Sun WOrkshop pro 4.2
    I am using Hash table implementation in the source. It throws the following error:
    ---->Error: "," expected instead of "const_iterator".
    I found it to be problem in a declaration of pair for the class.
    Before modification:
    typedef pair<mytmp::iterator,int> interator;
    Modified to:
    typedef mytmp::iterator myitr
    typedef pair<myitr,int> interator;
    Now the above compilation error seems to be gone. Can anyone please help me in understanding this problem???????????????
    Also after compiling few files now i am facing new problem. It throws signal 11 in iterator header file of std STL.
    Help m e !!!!!!!!!!
    For your reference options of compilation are:
    /opt/SUNWspro/bin/CC -c -O -mt -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D__EXTENSION
    S__ -DRWSTD_MULTI_THREAD -D_RWBUILDSHARED -DRWSTD_COMPILE_INSTANTIATE -
    DRWSTD_SHARED_BUILD --I/opt/mylib/common/include/Std  mydemo.cc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I solved my own problem.
    It seems that the C++ XML Parser cannot be used with earlier versions of Oracle. My ORACLE_HOME env variable was pointing to v734. Once I changed that to point to the later version of v816, It was a smooth parse.
    null

  • An XJC compilation error - Could not load class (..) for type cvsversion

    I've got a strange compilation error using NetBeans 4.0 (I'd guess the version does not matter here) and Ant 1.6.2. When the following task is executed,
    <target name="compile_ofx_schema">
    <antcall target="clean-ofx"/>
    <delete dir="${ofx-jaxb-src.dir}"/>
    <mkdir dir="${ofx-jaxb-src.dir}" />
    <xjc schema="${schema.dir}/ofx102.xsd" package="com.xxx.ofx102" target="${ofx-jaxb-src.dir}">
    <arg value="-nv" />
    <arg value="-extension" />
    </xjc>
    </target>
    I get the error from NetBeans console,
    Class org.xml.sax.SAXException loaded from parent loader (parentFirst)
    Class java.io.IOException loaded from parent loader (parentFirst)
    D:\appserver\build.xml:797: unable to parse the schema. Error messages should have been provided
    at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:334)
    at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:283)
    at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:227)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:217)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:236)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
    BUILD FAILED (total time: 4 seconds)
    Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion
    Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion
    And when I run the Ant task from the command line, I don't get the error at all.
    Any help is greatly appreciated.

    That was a great finding from you. Thank you.
    I followed your alternative approach and updated the ant.jar file. The "Could not load class..." error went away but the stack trace still remains. Now I am clueless again since I have ant on the debug mode and can't find any more useful info.
    Class com.sun.tools.xjc.reader.internalizer.LocatorTable loaded from ant loader (parentFirst)
    Class java.util.HashSet loaded from parent loader (parentFirst)
    Class javax.xml.parsers.DocumentBuilderFactory loaded from parent loader (parentFirst)
    Couldn't load Resource org/netbeans/core/xml/DOMFactoryImpl.class
    Couldn't load ResourceStream for META-INF/services/javax.xml.parsers.DocumentBuilderFactory
    Class org.apache.crimson.jaxp.DocumentBuilderFactoryImpl loaded from parent loader (parentFirst)
    Class javax.xml.parsers.SAXParserFactory loaded from parent loader (parentFirst)
    Couldn't load Resource org/netbeans/core/xml/SAXFactoryImpl.class
    Couldn't load ResourceStream for META-INF/services/javax.xml.parsers.SAXParserFactory
    Class org.apache.crimson.jaxp.SAXParserFactoryImpl loaded from parent loader (parentFirst)
    Class javax.xml.parsers.DocumentBuilder loaded from parent loader (parentFirst)
    Class java.util.Map loaded from parent loader (parentFirst)
    Class javax.xml.parsers.SAXParser loaded from parent loader (parentFirst)
    Finding class com.sun.tools.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic$ReferenceFinder
    Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/xmlschema/parser/XMLSchemaInternalizationLogic$ReferenceFinder.class
    Finding class com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl
    Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/internalizer/AbstractReferenceFinderImpl.class
    Class org.xml.sax.helpers.XMLFilterImpl loaded from parent loader (parentFirst)
    Class com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl loaded from ant loader (parentFirst)
    Class com.sun.tools.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic$ReferenceFinder loaded from ant loader (parentFirst)
    Class org.xml.sax.XMLFilter loaded from parent loader (parentFirst)
    Finding class com.sun.tools.xjc.reader.internalizer.VersionChecker
    Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/internalizer/VersionChecker.class
    Class com.sun.tools.xjc.reader.internalizer.VersionChecker loaded from ant loader (parentFirst)
    Finding class com.sun.tools.xjc.reader.internalizer.DOMBuilder
    Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/internalizer/DOMBuilder.class
    Finding class com.sun.xml.bind.marshaller.SAX2DOMEx
    Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-impl.jar com/sun/xml/bind/marshaller/SAX2DOMEx.class
    Class org.xml.sax.ContentHandler loaded from parent loader (parentFirst)
    Class com.sun.xml.bind.marshaller.SAX2DOMEx loaded from ant loader (parentFirst)
    Class com.sun.tools.xjc.reader.internalizer.DOMBuilder loaded from ant loader (parentFirst)
    Class java.util.Stack loaded from parent loader (parentFirst)
    Class org.w3c.dom.Document loaded from parent loader (parentFirst)
    Class org.xml.sax.XMLReader loaded from parent loader (parentFirst)
    Class org.w3c.dom.Node loaded from parent loader (parentFirst)
    Class org.w3c.dom.Element loaded from parent loader (parentFirst)
    Class javax.xml.parsers.ParserConfigurationException loaded from parent loader (parentFirst)
    Class org.xml.sax.SAXException loaded from parent loader (parentFirst)
    Class java.io.IOException loaded from parent loader (parentFirst)
    D:\bbw\build\Common_3.6\Packaged\appserver\build.xml:799: unable to parse the schema. Error messages should have been provided
    at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:334)
    at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:283)
    at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:227)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:217)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:236)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
    BUILD FAILED (total time: 1 second)
    Any suggestions? BTW, I did not upgrade NetBeans to v5.5 due that my code is still JDK1.4 based.

  • Error compiling certain uses of std::tuple in Solaris Studio 12.4 beta July refresh

    Whilst attempting to compile Boost 1.54 using the Solaris Studio 12.4 beta July refresh with -std=c++11 I get an error building libs/regex/src/cregex.cpp that looks like it might be due to a problem with the compiler.  (clang++ on Mac OS X and g++ on Linux can certainly build the same file without problems - I can post more details about them if you think this is a problem in the Boost code rather than the compiler.)
    The error from Solaris Studio is:
    Error: Could not find a match for std::_Tuple_impl<0, int&&>::_Tuple_impl(std::tuple<int&&>, int) needed in std::tuple<int&&>::tuple<int, void>(int&&).
    "/opt/SolarisStudio12.4-beta_jul14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.8.2/tuple", line 868:     Where: While instantiating "std::tuple<int&&>::tuple<int, void>(int&&)".
    "/opt/SolarisStudio12.4-beta_jul14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.8.2/tuple", line 868:     Where: Instantiated from std::forward_as_tuple<int>(int&&).
    "/opt/SolarisStudio12.4-beta_jul14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.8.2/bits/stl_map.h", line 485:     Where: Instantiated from non-template code.
    1 Error(s) detected.
    To reproduce this you can download the pre-processed source code from http://pastebin.com/jtsx1k79 and paste it into a file called cregex.pre.cpp.  Then run:
    CC -std=c++11 -mt -m64 -c -o cregex.o cregex.pre.cpp
    to get the error I saw.
    In case it's relevant, I'm working on Oracle Solaris 10 1/13 s10x_u11wos_24a X86.

    This looks very much like a recent bug with std::map introduced with the change to g++ 4.8 headers in July Beta:
      19159587 C++11: errors on a simple <map> usage
    It has been reported on forums - +d flag can cause C++ compilation failure in 12.4 beta refresh
    This bug will be fixed in a final release.
    Unfortunately there is no workaround for this problem.
    regards,
      Fedor.

  • Compile errors with Solaris 5.8 and Studio 11 with latest patches

    I asked sa to patch my studio 11, and they applied patches 121023-04, 121015-04, 121017-08, 122142-03, 120761-03, 120760-11 and 122135-02. Then, I compiled my boost_1_33_1 again. It built some, but not all libraries. It stil spit out the following errors. Is this expected?
    "/home/vcheng/boost_1_33_1/libs/filesystem/build/../src/operations_posix_windows.cpp", line 126: Error: readdir_r is not a member of file level.
    ...failed sunpro-C++-action build_sunos/bin/boost/libs/filesystem/build/libboost_filesystem.a/sunpro/debug/operations_posix_windows.o...
    sunpro-C++-action build_sunos/bin/boost/libs/wave/build/libboost_wave.a/sunpro/debug/instantiate_cpp_exprgrammar.o
    "/home/vcheng/boost_1_33_1/boost/spirit/core/composite/epsilon.hpp", line 76: Error: complex expression not allowed in dependent template argument expression.
    "/home/vcheng/boost_1_33_1/boost/iostreams/device/file_descriptor.hpp", line 79: Warning: close_on_exit hides boost::iostreams::file_descriptor::impl::close_on_exit.
    1 Warning(s) detected.
    "/home/vcheng/boost_1_33_1/libs/iostreams/build/../src/bzip2.cpp", line 42: Error: BZ_CONFIG_ERROR is not defined.
    "/home/vcheng/boost_1_33_1/libs/iostreams/build/../src/bzip2.cpp", line 106: Error: The function "BZ2_bzCompressEnd" must have a prototype.
    "/home/vcheng/boost_1_33_1/libs/iostreams/build/../src/bzip2.cpp", line 107: Error: The function "BZ2_bzDecompressEnd" must have a prototype.
    "/home/vcheng/boost_1_33_1/libs/iostreams/build/../src/bzip2.cpp", line 113: Error: The function "BZ2_bzCompress" must have a prototype.
    "/home/vcheng/boost_1_33_1/libs/iostreams/build/../src/bzip2.cpp", line 118: Error: The function "BZ2_bzDecompress" must have a prototype.
    "/home/vcheng/boost_1_33_1/libs/iostreams/build/../src/bzip2.cpp", line 143: Error: The function "BZ2_bzCompressInit" must have a prototype.
    "/home/vcheng/boost_1_33_1/libs/iostreams/build/../src/bzip2.cpp", line 147: Error: The function "BZ2_bzDecompressInit" must have a prototype.
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 97: Warning: args hides boost::program_options::detail::cmdline::args.
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 100: Warning: args hides boost::program_options::detail::cmdline::args.
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 110: Warning: args hides boost::program_options::detail::cmdline::args.
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 349: Warning: args hides boost::program_options::detail::cmdline::args.
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 383: Warning: args hides boost::program_options::detail::cmdline::args.
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 437: Warning: args hides boost::program_options::detail::cmdline::args.
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 458: Warning: args hides boost::program_options::detail::cmdline::args.
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 477: Warning: args hides boost::program_options::detail::cmdline::args.
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 495: Warning: args hides boost::program_options::detail::cmdline::args.
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/config_file.cpp", line 35: Warning: allowed_options hides boost::program_options::detail::common_config_file_iterator::allowed_options.
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/options_description.cpp", line 311: Error: Could not find a match for std::count<std::InputIterator, std::T, std::Size>(char*, char*, char) needed in::format_paragraph(std::ostream &, std::string, unsigned, unsigned).
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/options_description.cpp", line 378: Error: Too few arguments for template std::reverse_iterator.
    "/.automount/opt/Forte/sunstudio11_patch1/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 432: Error: "friend" declaration is incompatible with function template.
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/options_description.cpp", line 378: Where: While specializing "std::reverse_iterator<const char*>".
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/options_description.cpp", line 378: Where: Specialized in non-template code.
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/options_description.cpp", line 379: Error: Too few arguments for template std::reverse_iterator.
    "/home/vcheng/boost_1_33_1/libs/program_options/build/../src/options_description.cpp", line 387: Error: Could not find a match for std::distance<std::ForwardIterator, std::Distance>(const char*, const char*) needed in::format_paragraph(std::ostream &, std::string, unsigned, unsigned).

    You can take Boost 1.34 but you have to use CVS and you have to modify Boost configuration files to use -library=stlport4 option.
    Or you can take Boost 1.32, read this article http://blogs.sun.com/roller/page/sga?entry=boost_mini_howto and apply this patch http://blogs.sun.com/roller/resources/sga/boost_1_32_0.patch.
    As you can see here http://engineering.meta-comm.com/boost-regression/CVS-RC_1_34_0/developer/summary.html Sun C++ is in a good shape.

  • Compile error in C++ 5.8 when using typedef

    Hello all,
    I am new to using Sun Studio 11 C++ 5.8 compiler.
    an error occurs to me when I put this line on my header file
    typedef DWORD int;
    line6: Error: "," expected instead of "int".
    When I replace the line with this line
    typedef DWORD ,;
    then the error disappers.
    I tried compiling it using g++ and I encounter no problems.
    I am using Solaris 10 and I installed patched the C++ 5.8 compiler with patch 121017-10
    I don't know what is causing the problem..
    Please help.
    Thanks in advance.
    Marc Glenn

    You've probably meant
    typedef int DWORD;
    That is, if you wanted to define alias for type int named DWORD.

Maybe you are looking for