Template compilation error

I am getting compilation error on following peice of code:
template <typename KEY>
class XYZ
private:
    map<KEY,int>  m_Map;     
    typedef map<KEY,int>::iterator it;
}Error: No parameters provided for template.
I have CC version Sun C++ 5.5

Following code is compiled successfully. I added 'typename' keyword. Without this keyword compiler shows warning but produces correct code. Have you installed the latest patch for your compiler?
% cat test.cc
#include <map>
using namespace std;
template <typename KEY>
class XYZ
private:
map<KEY,int> m_Map;
typedef typename map<KEY,int>::iterator it;
XYZ<int> s;
% CC -V -c test.cc
CC: Sun C++ 5.5 Patch 113817-19 2006/10/13
ccfe: Sun C++ 5.5 Patch 113817-19 2006/10/13

Similar Messages

  • Template compiler error!

    Hi Igor and everyone.
    The following line causes a compiler error with my VS2012.
    Can somebody explain to me why please.:
    template< template<typename, typename> class BP, typename T1, typename A,
    typename... Args >
    struct are_all< BP, T1, A, Args... >
        static const bool value = are_all<BP, T1, A>::value && are_all<BP, T1,
                                  Args...>::value;
    1>atest.cpp(8): error C2143: syntax error : missing ',' before '...'
    1>atest.cpp(9): error C2143: syntax error : missing ';' before '<'
    1>atest.cpp(9): error C2059: syntax error : '<'
    1>atest.cpp(10): error C2143: syntax error : missing ';' before '{'
    1>atest.cpp(10): error C2447: '{' : missing function header (old-style formal list?)
    Regards
    Chong

    On 2/10/2015 9:28 AM, "chong kyong kim" wrote:
    The following line causes a compiler error with my VS2012.
    VS2012 doesn't support variadic templates.
    Igor Tandetnik

  • Compilation error while generating the form in linux

    Hello everyone,
    I am using Oracle Designer ver10.1.2.4 in windows to generate the forms with standard object library ofgwebol.olb and template form ofgwebt.fmb. form (with both .fmb and .fmx files) are generated without errors. Also when I open the forms in separately they compiles without errors. But when I copy the same .fmb file into linux enviroment and compile it using frmcmp.sh userid=user/password@database module_type=form compile_all=yes module=form_name it gives following errors.
    $> frmcmp.sh userid=odin/odin@ontw10g module_ty
    pe=form compile_all=yes module=LOGIN_SCHERM
    Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)
    Forms 10.1 (Form Compiler): Release - Production
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE 10.1.0.4.0 Production
    FRM-18108: Failed to load the following objects.
    Source Module:ofgwebol.olb
    Source Object: CGSO$CHAR_DO
    Source Module:ofgwebol.olb
    Source Object: CGSO$CHAR_DO
    Source Module:ofgwebol.olb
    Source Object: CGSO$BLOCK
    Source Module:ofgwebol.olb
    Source Object: CGSO$CANVAS
    Source Module:ofgwebol.olb
    Source Object: CGSO$WINDOW
    Compiling function CGTE$CHECK_CONSTRAINT_VIO...
    No compilation errors.
    Compiling procedure CGTE$INLOGGEN_ERRORS...
    No compilation errors.
    L/SQL ERROR 0 at line 17, column 3
    Statement ignored
    PL/SQL ERROR 201 at line 36, column 3
    identifier 'CGNV$.NAV_CLOSE_FORMS' must be declared
    PL/SQL ERROR 0 at line 36, column 3
    Statement ignored
    PL/SQL ERROR 201 at line 37, column 3
    identifier 'CGNV$.NAV_OPENING_WND' must be declared
    PL/SQL ERROR 0 at line 37, column 3
    Statement ignored
    Compiling KEY-HELP trigger on form...
    No compilation errors.
    Compiling WHEN-WINDOW-ACTIVATED trigger on form...
    Compilation error on WHEN-WINDOW-ACTIVATED trigger on form:
    PL/SQL ERROR 201 at line 6, column 8
    identifier 'CGNV$GET_ITEM_WINDOW' must be declared
    PL/SQL ERROR 0 at line 4, column 3
    Statement ignored
    Compiling POST-TEXT-ITEM trigger on form...
    Compilation error on POST-TEXT-ITEM trigger on form:
    PL/SQL ERROR 201 at line 4, column 3
    identifier 'CGNV$.STORE_WND_ITEM' must be declared
    PL/SQL ERROR 0 at line 4, column 3
    Statement ignored
    Compiling WHEN-WINDOW-CLOSED trigger on form...
    Compilation error on WHEN-WINDOW-CLOSED trigger on form:
    PL/SQL ERROR 201 at line 5, column 3
    identifier 'CGNV$.TERMINATE_WINDOW' must be declared
    PL/SQL ERROR 0 at line 5, column 3
    Statement ignored
    Compiling WHEN-FORM-NAVIGATE trigger on form...
    Compilation error on WHEN-FORM-NAVIGATE trigger on form:
    PL/SQL ERROR 201 at line 3, column 3
    identifier 'CGNV$.REMOVE_CHILD_FORM' must be declared
    PL/SQL ERROR 0 at line 3, column 3
    Statement ignored
    Compiling KEY-EXIT trigger on form...
    Compilation error on KEY-EXIT trigger on form:
    PL/SQL ERROR 201 at line 5, column 3
    identifier 'CGNV$.NAV_ENTER_QUERY' must be declared
    PL/SQL ERROR 0 at line 5, column 3
    Statement ignored
    PL/SQL ERROR 201 at line 9, column 5
    identifier 'CGNV$.CLOSE_ALL_WINDOWS' must be declared
    PL/SQL ERROR 0 at line 9, column 5
    Statement ignored
    Compiling KEY-CLRFRM trigger on form...
    No compilation errors.
    Compiling ON-ERROR trigger on INLOGGEN data block...
    No compilation errors.
    Compiling KEY-PREV-ITEM trigger on AGB_ID item in INLOGGEN data block...
    Compilation error on KEY-PREV-ITEM trigger on AGB_ID item in INLOGGEN data block
    PL/SQL ERROR 201 at line 4, column 3
    identifier 'CGNV$GO_PREV_ITEM' must be declared
    PL/SQL ERROR 0 at line 4, column 3
    Statement ignored
    Compiling KEY-NEXT-ITEM trigger on AGB_NAAM item in INLOGGEN data block...
    Compilation error on KEY-NEXT-ITEM trigger on AGB_NAAM item in INLOGGEN data blo
    ck:
    PL/SQL ERROR 201 at line 4, column 3
    identifier 'CGNV$GO_NEXT_ITEM' must be declared
    PL/SQL ERROR 0 at line 4, column 3
    Statement ignored
    Compilation errors have occurred.
    Form not created
    I think some standard library are missing in Linux environment. But I do not know the name of them and neither I can find. Please suggest the what need to be done to resolve the problem. The reason I am compiling the form in Linux is that I can run the form in windows because of corrupted installation of OC4j.
    Thanking you all much in advance.
    Edited by: Deepank on Dec 2, 2008 1:49 AM

    Deepank-
    When generating forms from Designer, Designer attaches libraries - like ofgmes.pll, ofgnavl.pll, etc. You will need to copy these libraries to the same directory where your forms reside on your Linux box. To find out what libraries ate attached to your form, open it on your windows PC after generating it from Designer and you will see the attached libraries. Also, watch out for the case-sensitivity of Linux. If you have the Designer libraries on your linux box and you still get errors, try changing the case of the names of the libraries.
    Hope this helps,
    Dan

  • Compiling Error While Viewing XML Data in Word

    I received the following message, "Compile error in hidden module: Module_starter" while trying to load sample xml data to view within MS Word while using BI Publisher. Any ideas of what causes this and how to fix it would be greatly appreciated.
    Thanks.
    G. Wright

    Getting this error as well.
    I've read the announcement from Tim, and also the Metalink article: Note:457235.1
    However, our desktops at work are locked down to such an extent that I don't have an 'all programs' entry on my start menu.
    I tried what I thought might be the 'Template Builder for Word Language' executable but that also gave me an error (changeUILang.exe).
    Error is: Runtime error '9'. Subscript out of range.
    Could someone please confirm what the shortcut:
    "All Programs --> Oracle BI Publisher Desktop --> Template Builder for Word Language "
    actually points to.
    As to the other option (uninstalling the security patch) this is just a non-starter where I work.
    Thanks for your help,
    Ben

  • XSLT compile error.

    I am getting an XSLT compile error on this code: 
    // Load the style sheet.
    XslCompiledTransform xslt = new XslCompiledTransform();
    xslt.Load("style1.xsl");
    Here is the code in it's entirety:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.IO;
    using System.Data.OleDb;
    using System.Xml;
    using System.Xml.Xsl;
    using System.Xml.XPath;
    namespace CSVImporter
    public partial class CSVImporter : Form
    //const string xmlfilename = @"C:\Users\fenwky\XmlDoc.xml"; - file name and location of xml file
    const string xmlfilename = @"C:\Users\fenwky\XmlDoc.xml";
    // New code
    //const string xmlfilename = @"C:\Users\fenwky\XmlDoc.xml"; - file name and location of xsl file
    const string stylesheetsimple = @"C:\Users\fenwky\style1.xsl";
    //const string xmlfilecomplex = @"C:\Users\fenwky\XmlDoc2.xml";
    const string xmlfilecomplex = @"C:\Users\fenwky\XmlDoc2.xml";
    DataSet ds = null;
    public CSVImporter()
    InitializeComponent();
    // Create a Open File Dialog Object.
    openFileDialog1.Filter = "csv files (*.csv)|*.csv|All files (*.*)|*.*";
    openFileDialog1.ShowDialog();
    string fileName = openFileDialog1.FileName;
    //doc.InsertBefore(xDeclare, root);
    // Create a CSV Reader object.
    CSVReader reader = new CSVReader();
    ds = reader.ReadCSVFile(fileName, true);
    dataGridView1.DataSource = ds.Tables["Table1"];
    private void WXML_Click(object sender, EventArgs e)
    WriteXML();
    public void WriteXML()
    StringWriter stringWriter = new StringWriter();
    ds.WriteXml(new XmlTextWriter(stringWriter), XmlWriteMode.WriteSchema);
    string xmlStr = stringWriter.ToString();
    XmlDocument doc = new XmlDocument();
    doc.LoadXml(xmlStr);
    XmlDeclaration xDeclare = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    XmlNode docNode = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    doc.InsertBefore(xDeclare, doc.FirstChild);
    // Test code //
    // Load the style sheet.
    XslCompiledTransform xslt = new XslCompiledTransform();
    xslt.Load("style1.xsl");
    // Test code //
    // Transform the file and output an HTML string.
    string HTMLoutput;
    StringWriter writer = new StringWriter();
    xslt.Transform("XmlDoc.xml", null, writer);
    HTMLoutput = writer.ToString();
    writer.Close();
    // Create a procesing instruction.
    XmlProcessingInstruction newPI;
    // Stylesheet
    // String PItext = "<abc:stylesheet xmlns:abc=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    String PItext = "<xsl:stylesheet xmlns:xls=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    // newPI = doc.CreateProcessingInstruction("abc:stylesheet", PItext);
    newPI = doc.CreateProcessingInstruction("xls:stylesheet", PItext);
    doc.InsertAfter(newPI, doc.FirstChild);
    // Save document
    doc.Save(xmlfilename);
    private void btExportComplexXML_Click(object sender, EventArgs e)
    WriteXMLComplex();
    public void WriteXMLComplex()
    // Creates stringwriter
    StringWriter stringWriter = new StringWriter();
    ds.WriteXml(new XmlTextWriter(stringWriter), XmlWriteMode.WriteSchema);
    string xmlStr = stringWriter.ToString();
    XmlDocument doc = new XmlDocument();
    doc.LoadXml(xmlStr);
    XmlDeclaration xDeclare = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    XmlNode docNode = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    doc.InsertBefore(xDeclare, doc.FirstChild);
    // Create a procesing instruction.
    XmlProcessingInstruction newPI;
    // Uses XML transformation.
    String PItext = "<abc:stylesheet xmlns:abc=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    newPI = doc.CreateProcessingInstruction("xsl:stylesheet", PItext);
    doc.InsertAfter(newPI, doc.FirstChild);
    // Saves document.
    doc.Save(xmlfilecomplex);
    //Creates a CSVReader Class
    public class CSVReader
    public DataSet ReadCSVFile(string fullPath, bool headerRow)
    string path = fullPath.Substring(0, fullPath.LastIndexOf("\\") + 1);
    string filename = fullPath.Substring(fullPath.LastIndexOf("\\") + 1);
    DataSet ds = new DataSet();
    try
    if (File.Exists(fullPath))
    string ConStr = string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0}" + ";Extended Properties=\"Text;HDR={1};FMT=Delimited\\\"", path, headerRow ? "Yes" : "No");
    string SQL = string.Format("SELECT * FROM {0}", filename);
    OleDbDataAdapter adapter = new OleDbDataAdapter(SQL, ConStr);
    adapter.Fill(ds, "TextFile");
    ds.Tables[0].TableName = "Table1";
    foreach (DataColumn col in ds.Tables["Table1"].Columns)
    col.ColumnName = col.ColumnName.Replace(" ", "_");
    catch (Exception ex)
    MessageBox.Show(ex.Message);
    return ds;

    Hi Kristin,
    Yes, the error looks the same:
    Here is the style.xsl file:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:apply-templates select="book"/>
    <HTML>
    <BODY>
    <TABLE BORDER="2">
    <TR>
    <TD>Item_Code</TD>
    <TD>Item_Description</TD>
    <TD>Current_Count</TD>
    <TD>On_Order</TD>
    </TR>
    <xsl:template select="book"/>
    </TABLE>
    </BODY>
    </HTML>
    </xsl:template>
    <xsl:template match="book">
    <TR>
    <TD><xsl:value-of select="Item_Code"/></TD>
    <TD><xsl:value-of select="Item_Description"/></TD>
    <TD><xsl:value-of select="Current_Count"/></TD>
    <TD><xsl:value-of select="On_Order"/></TD>
    </TR>
    </xsl:template>
    </xsl:stylesheet>
    The XML file isn't saving (generating) on Click. Thank for you for your help.
    @Kylee,
    Here is the right format XSL file, Please check and test again.
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="book">
    <HTML>
    <BODY>
    <TABLE BORDER="2">
    <TR>
    <TD>Item_Code</TD>
    <TD>Item_Description</TD>
    <TD>Current_Count</TD>
    <TD>On_Order</TD>
    </TR>
    <xsl:apply-templates select="book"/>
    </TABLE>
    </BODY>
    </HTML>
    </xsl:template>
    <xsl:template match="book">
    <TR>
    <TD>
    <xsl:value-of select="Item_Code"/>
    </TD>
    <TD>
    <xsl:value-of select="Item_Description"/>
    </TD>
    <TD>
    <xsl:value-of select="Current_Count"/>
    </TD>
    <TD>
    <xsl:value-of select="On_Order"/>
    </TD>
    </TR>
    </xsl:template>
    </xsl:stylesheet>
    By the way, you also could check by yourself. Add a new XLS file in VS2013, It will help you check all the errors.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.
    Thanks Kristen. I have checked the file and it now reads. However, I have another error now. The XML file isn't saving and I am getting this error:
    Could not find file 'C:\Users\fenwky\documents\visual studio 2013\Projects\CSV Importer\CSV Importer\bin\Debug\XmlDoc.xml'.
    For some reason it's not writing the file (but trying to read it?) and I am not sure what I am doing wrong.
    Here is the screen shot:
    private void WXML_Click(object sender, EventArgs e)
    WriteXML();
    public void WriteXML()
    StringWriter stringWriter = new StringWriter();
    ds.WriteXml(new XmlTextWriter(stringWriter), XmlWriteMode.WriteSchema);
    string xmlStr = stringWriter.ToString();
    XmlDocument doc = new XmlDocument();
    doc.LoadXml(xmlStr);
    XmlDeclaration xDeclare = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    XmlNode docNode = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    doc.InsertBefore(xDeclare, doc.FirstChild);
    // Load the style sheet.
    XslCompiledTransform xslt = new XslCompiledTransform();
    xslt.Load("style1.xsl");
    // Transform the file and output an HTML string.
    string HTMLoutput;
    StringWriter writer = new StringWriter();
    xslt.Transform("XmlDoc.xml", null, writer);
    HTMLoutput = writer.ToString();
    writer.Close();
    var piText = "type=\"text/xsl\" href=\"style1.xsl\"";
    var newPI = doc.CreateProcessingInstruction("xml-stylesheet", piText);
    doc.InsertAfter(newPI, doc.FirstChild);
    // Save document
    doc.Save(xmlfilename);
    Thank you again Kristen.

  • XSLT Compile error at(649,16)

    I am using Xslt Call Template in several scripting functoid.
    Now I am getting the above error :
    XSLT compile error at (649,16). See InnerException for details.
    The contents of 'choose' are invalid.
    I want to narrow down my search. Please help me out which scripting functoid to look for and how to look.
    error at (649,16). --->Does this help to target the place of error.
    Urgent need.
    Plz help me I am new to Biztalk. :-(

    Best would be to investigate the script using Visual Studio as it highlights errors in scripts. Validate the map first and then in the output window  you should see:
    Invoking component...
        D:\Solutions\[...]\Your_Map.btm: The output XSLT is stored in the following file: <file:///C:\Users\[...]\your_map.xsl> 
        D:\Solutions\[...]\Your_Map.btm: The Extension Object XML is stored in the following file: <file:///C:\Users\your_map.xml>
    Component invocation succeeded.
    Open the your_map.xsl file using Visual Studio and go to line 649. 

  • Multiple constraining classifiers in generic templates - compiler broken

    can not compile multiple constraining classifiers to a generic template if the classifier is defined in the template:
         public <U, T extends U> void a() {}
    will compile.
    java language specification: 4.4 Type Variables says:
         public <T extends Object & Comparable<? super T> > void a() {}
    will compile, but:
         public static <U, T extends U & Comparable<? super T> > void a() {}
    will not compile.
    U is defined within the template but is only accepted as a constraining classifier to T if it is on its own. When the interface is added, the java compiler breaks.
    (please ignore ">" as required.)
    compile error message:
    "a type variable may not be followed by other bounds"

    thanks...You're wecome.
    B.t.w. my guess it's not the compiler, though.+1
    'select' isn't broken :-)I'll put that one in my bookmarks, next to The Ten Commandments
    ; )

  • Compilation error, When moving from 32-bit to 64-bit code

    Hello,
    I m getting Compilation error, This program already compiled on 32 bit, but getting compilation error on 64 bit.
    CC -V
    CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
    make
    Making dependencies...
    cc -g -D__EXTENSIONS__ -D_SVID_GETTOD -I../h -I/app/oracle/product/9.2_32/precomp/public -I. -xcg92 `getconf LFS_CFLAGS | head -1` -D UT_TRACE_FUNCTION -Dbool=int -g -D -I. -m64 -xarch=sparcvis -H -w -E 2>&1 >/dev/null Bitmap.cc BitmapData.cc BitmapInputTxnStream.cc BitmapOutputStream.cc UnexpectedException.cc FieldData.cc FieldDataCollection.cc FieldDefinition.cc FieldDefinitionCollection.cc OutputFixedStream.cc ParsingEngine.cc Schema.cc Statistics.cc String.cc TraceStream.cc TxnStream.cc c_api.cc SocketImpl.cc Socket.cc ServerSocket.cc UnixSocket.cc Thread.cc test.cc | grep -v License | grep -v command | ../dvl.bin/mkdep >.depends
    Dependencies updated...
    CC -g -D__EXTENSIONS__ -D_SVID_GETTOD -I../h -I/app/oracle/product/9.2_32/precomp/public -I. -xcg92 `getconf LFS_CFLAGS | head -1` -D UT_TRACE_FUNCTION -Dbool=int -g -D -I. -m64 -xarch=sparcvis -c Bitmap.cc
    "/opt/SUNWspro/prod/include/CC/Cstd/./limits", line 1046: Error: Multiple declaration for std::numeric_limits<int>.
    "/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 192: Error: Multiple declaration for std::ostream::operator<<(int).
    "/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 351: Where: While specializing "std::ostream ".
    "/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 351: Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 192: Error: Multiple declaration for std::wostream::operator<<(int).
    "/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 354: Where: While specializing "std::wostream ".
    "/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 354: Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./istream", line 104: Error: Multiple declaration for std::istream::operator>>(int&).
    "/opt/SUNWspro/prod/include/CC/Cstd/./istream", line 373: Where: While specializing "std::istream ".
    "/opt/SUNWspro/prod/include/CC/Cstd/./istream", line 373: Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 316: Error: A typedef name cannot be used in an elaborated type specifier..
    "/opt/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 317: Error: A typedef name cannot be used in an elaborated type specifier..
    "/opt/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 318: Error: A typedef name cannot be used in an elaborated type specifier..
    "RuntimeException.h", line 131: Error: Function RuntimeException::~RuntimeException() can throw only the exceptions thrown by the function std::exception::~exception() it overrides.
    "RuntimeException.h", line 97: Error: Could not find std::exception::exception(const char*) to initialize base class.
    "RuntimeException.h", line 121: Error: xmsg is not a member of std::exception.
    "Bitmap.cc", line 62: Error: Cannot return int(Bitmap::*)()const from a function that should return int.
    11 Error(s) detected.
    make: *** [Bitmap.o] Error 11
    In Makefile CFLAGS setting are as follows,
    ### Setup common symbols for .depends
    SRC = $(TEST_SRC)
    INCLUDES = $(TEST_INC)
    # clean objects, executeable, generated .pc -> .c
    CLEAN = -r *.o $(PGM_EXEC) Templates.DB/* SunWS_cache/*
    include $(ROOT)/h/common.mak
    # The system include directory must be specifically included first because some of the
    # ghost includes use system include file names (e.g., generic.h)
    # Modified these section to compile on TVLAPP1HAG
    CFLAGS += -D $(STDOUT_TRACE)
    CFLAGS += -Dbool=int -g -D$(MAINLINE) $(OUR_COLLECTION)
    #CFLAGS += -compat -Qoption ccfe -abirel=4.1
    #CFLAGS += -Qoption ccfe -abirel=4.1
    CFLAGS += -I. -m64 -xarch=sparcvis
    #CFLAGS += -I. -mt
    # Add the flag for multi-threaded apps
    LDFLAGS += -lsocket -lnsl -lthread
    # declare an empty macro for compiler directive flags, to be command-line
    # driven (ie, for -D directives)
    CCFLAGS=
    CCFLAGS += -DRW_NO_CPP_RECURSION
    # The following manipulation of CC and overriding the .cc.o suffix
    # dependency is removed here to use what is supplied by default int
    # the h/common.mak file.
    #XX = CC
    #CC = CC
    #COMPILE = $(CC) -o $*.o $(CFLAGS) $(CCFLAGS) -c $*.cc
    #.cc.o:
    # $(COMPILE)
    Please Help

    Hello,
    Still I am not able to solve the error. please help me.. Please see the below code...
    Error:
    s3dvap983:/export/home/pshirode/rel_v95/cc_lib > make
    Making dependencies...
    cc -g -D__EXTENSIONS__ -D_SVID_GETTOD -I../h -I/app/oracle/product/9.2_32/precomp/public -I. `getconf LFS_CFLAGS | head -1` -D UT_TRACE_FUNCTION -g -D -I. -m64 -xarch=sparcvis -H -w -E 2>&1 >/dev/null Bitmap.cc BitmapData.cc BitmapInputTxnStream.cc BitmapOutputStream.cc UnexpectedException.cc FieldData.cc FieldDataCollection.cc FieldDefinition.cc FieldDefinitionCollection.cc OutputFixedStream.cc ParsingEngine.cc Schema.cc Statistics.cc String.cc TraceStream.cc TxnStream.cc c_api.cc SocketImpl.cc Socket.cc ServerSocket.cc UnixSocket.cc Thread.cc test.cc | grep -v License | grep -v command | ../dvl.bin/mkdep >.depends
    Dependencies updated...
    CC -g -D__EXTENSIONS__ -D_SVID_GETTOD -I../h -I/app/oracle/product/9.2_32/precomp/public -I. `getconf LFS_CFLAGS | head -1` -D UT_TRACE_FUNCTION -g -D -I. -m64 -xarch=sparcvis -c Bitmap.cc
    "/opt/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 316: Error: A typedef name cannot be used in an elaborated type specifier..
    "/opt/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 317: Error: A typedef name cannot be used in an elaborated type specifier..
    "/opt/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 318: Error: A typedef name cannot be used in an elaborated type specifier..
    "RuntimeException.h", line 137: Error: Function RuntimeException::~RuntimeException() can throw only the exceptions thrown by the function std::exception::~exception() it overrides.
    "RuntimeException.h", line 103: Error: Could not find std::exception::exception(const char*) to initialize base class.
    "RuntimeException.h", line 127: Error: xmsg is not a member of std::exception.
    "Bitmap.cc", line 62: Error: Cannot return int(Bitmap::*)()const from a function that should return int.
    7 Error(s) detected.
    make: *** [Bitmap.o] Error 7
    96 class RuntimeException : public xmsg {
    97 public:
    98
    99 /**
    100 * Create an exception with a simple error message
    101 * @param message The error message
    102 */
    103 RuntimeException(const char* msg) : xmsg(msg) {}
    104
    105 /**
    106 * Create an exception with an error code, fileinfo, and message. This will
    107 * produce an error message that looks like:
    108 * in File:%s at line#: %d \n %error_message%
    109 *
    110 * @param error An integer error code. The catch block can use the error()
    111 * method to examine this value
    112 * @param fileinfo The location in a source file where the error occured
    113 * @param msg The error message
    114 * @see RuntimeException.error
    115 */
    116 RuntimeException(int p_error, const Fileinfo& f, const char* msg)
    117 {
    118 error = perror;
    119 strstream buffer;
    120 buffer << "in File:"
    121 << f.filename()
    122 << " at line#:"
    123 << f.lineno() << endl << msg
    124 << ends; // required for this strstream library, other versions
    125 // like Borland the stream is always null terminated
    126
    127 xmsg::xmsg(buffer.str());
    128 delete buffer.str(); // added by db 03-Jul-98 accoprding to the
    129 // ssbuf(3C++) man page - other implementations may
    130 // use malloc/free but Solaris uses new/delete
    131 }
    132
    133 /** @return the error code */
    134 int error() {return _error;}
    135
    136 /** Clean up instance */
    137 virtual ~RuntimeException() {}
    138
    139
    140 protected:
    141
    142 /**
    143 * Default constructor - not very useful to throw an exception without at
    144 * least an error message, so this is reserved for only subclasses.
    145 */
    146 RuntimeException() : xmsg() {}
    147
    148 private:
    149
    150 /** the error code associated with the error */
    151 int _error;
    152 };
    153

  • Compilation errors with boost 1.36

    Hi,
    My compiler
    CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-08 2002/06/02
    I am getting the followin*g errors when trying to compile
    Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 108: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 116: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 122: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 128: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 141: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 172: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    I have done configuration as following
    %> ./configure with-toolset=sun prefix=/u/jn/boost/boost_1_36_0
    my usr-config.jam file looks as below
    # Boost.Build Configuration
    # Automatically generated by Boost configure
    # Compiler configuration
    using sun : 6 : /home/nfs/sollocal/beatlehome1/F6U2/SUNWspro/bin/CC : <stdlib>sun-stlport
    <cxxflags>-library=stlport4 -m64 -xcode=pic32 -erroff=wvarhidemem,hidevf,hidevfinvb -errtag
    s=yes <linkflags>-library=stlport4 -m64 ;
    # Python configuration
    using python : 2.6 : /usr/local ;
    my Makefile
    BJAM=./tools/jam/src/bin.solaris/bjam
    BJAM_CONFIG= -sICU_PATH=/usr
    prefix=/u/jnarayan/boost/boost_1_36_0
    exec_prefix=$(prefix)
    libdir=$(exec_prefix)/lib
    includedir=$(prefix)/include
    LIBS=
    all: .dummy
    @echo "$(BJAM) $(BJAM_CONFIG) --user-config=user-config.jam $(LIBS)"
    @$(BJAM) $(BJAM_CONFIG) --user-config=user-config.jam $(LIBS) || \
    echo "Not all Boost libraries built properly."
    clean: .dummy
    rm -rf bin.v2
    distclean: clean
    rm -rf Makefile config.log
    check: .dummy
    @cd status && ../$(BJAM) $(BJAM_CONFIG) --user-config=../user-config.jam || echo "S
    ome Boost regression tests failed. This is normal for many compilers."
    install: .dummy
    @echo "$(BJAM) $(BJAM_CONFIG) address-model=64 user-config=user-config.jam pref
    ix=$(prefix) exec-prefix=$(exec_prefix) libdir=$(libdir) --includedir=$(includedir) $(L
    IBS) install"
    @$(BJAM) $(BJAM_CONFIG) address-model=64 --user-config=user-config.jam --prefix=$(p
    refix) --exec-prefix=$(exec_prefix) --libdir=$(libdir) --includedir=$(includedir) $(LIBS) i
    nstall || echo "Not all Boost libraries built properly."
    .dummy:
    thanks in advance for your help

    BOOST cannot be compiled with WS6u2.
    The oldest compiler that can build BOOST is Sun Studio 11 (C++ 5.8).
    You will have better luck with Sun Studio 12 (C++ 5.9). Both Studio 11 and Studio 12 are free.
    Get Sun Studio 12 here:
    [http://developers.sun.com/sunstudio/]
    Sun Studio 12 requires Solaris 9, 10, or Open Solaris.
    If you are running Solaris 8, get Sun Studio 11 instead:
    [http://developers.sun.com/sunstudio/products/previous/11/index.jsp]
    After installing the appropriate version of Sun Studio, get all current patches for it here:
    [http://developers.sun.com/sunstudio/downloads/patches/index.jsp]
    Then check Simon's blog for advice on building BOOST with Sun Studio 11 or 12.
    [http://blogs.sun.com/sga/category/Boost]

  • Boost compilation error

    I am trying to compile Boost 1_38_0 with Sun compiler (CC 5.9 on Solaris 10) but getting compilation errors.
    uname -a
    SunOS ss72edev06 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-V440
    CC -V
    CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
    I get different sets of errors. Below are some excerpts from the compilation output:
    =================================================================================
    "./boost/array.hpp", line 75: Error: Too few arguments for template std::reverse_iterator<boost::T*>.
    "./boost/array.hpp", line 76: Error: Too few arguments for template std::reverse_iterator<const boost::T*>.
    2 Error(s) detected.
    "./boost/array.hpp", line 75: Error: Too few arguments for template std::reverse_iterator<boost::T*>.
    "./boost/array.hpp", line 76: Error: Too few arguments for template std::reverse_iterator<const boost::T*>.
    2 Error(s) detected.
    "./boost/array.hpp", line 75: Error: Too few arguments for template std::reverse_iterator<boost::T*>.
    "./boost/array.hpp", line 76: Error: Too few arguments for template std::reverse_iterator<const boost::T*>.
    "./boost/regex/v4/basic_regex_parser.hpp", line 379: Error: Could not find a match for std::distance<std::Forwa
    rdIterator, std::Distance>(const char*, const char*) needed in boost::re_detail::basic_regex_parser<char, boost
    ::regex_traits<char, boost::cpp_regex_traits<char>>>::parse_open_paren().
    "./boost/regex/v4/basic_regex_parser.hpp", line 379: Error: Formal argument x of type const std::pair<unsigned,
    unsigned>& in call to std::vector<std::pair<unsigned, unsigned> >::push_back(const std::pair<unsigned, unsigne
    d>&) is being passed int.
    "./boost/regex/v4/basic_regex_parser.hpp", line 428: Error: Could not find a match for std::distance<std::Forwa
    rdIterator, std::Distance>(const char*, const char*) needed in boost::re_detail::basic_regex_parser<char, boost
    ::regex_traits<char, boost::cpp_regex_traits<char>>>::parse_open_paren().
    =====================================================================================
    My user-config.jam looks like:
    ===========================================
    # Boost.Build Configuration
    # Automatically generated by Boost configure
    # Compiler configuration
    using sun ;
    # Python configuration
    using python : 2.4 : /usr ;
    ==============================
    And the Makefile contents are:
    ===================================
    BJAM=./tools/jam/src/bin.solaris/bjam
    BJAM_CONFIG= -sICU_PATH=/usr
    prefix=/export/home/agoyal/boost_install_sun
    exec_prefix=$(prefix)
    libdir=$(exec_prefix)/lib
    includedir=$(prefix)/include
    LIBS=
    all: .dummy
    @echo "$(BJAM) $(BJAM_CONFIG) --user-config=user-config.jam $(LIBS)"
    @$(BJAM) $(BJAM_CONFIG) --user-config=user-config.jam $(LIBS) || \
    echo "Not all Boost libraries built properly."
    clean: .dummy
    rm -rf bin.v2
    distclean: clean
    rm -rf Makefile config.log
    check: .dummy
    @cd status && ../$(BJAM) $(BJAM_CONFIG) --user-config=../user-config.jam || echo "Some Boost regression tests failed. This is normal for many compilers."
    install: .dummy
    @echo "$(BJAM) $(BJAM_CONFIG) --user-config=user-config.jam --prefix=$(prefix) --exec-prefix=$(exec_prefix) --libdir=$(libdir) --includedir=$(includedir) $(LIBS) install"
    @$(BJAM) $(BJAM_CONFIG) user-config=user-config.jam prefix=$(prefix) exec-prefix=$(exec_prefix) libdir=$(libdir) --includedir=$(includedir) $(LIBS) install || echo "Not all Boost libraries built properly."
    .dummy:
    ===============================================================
    Can someone help what am I doing wrong here?

    Thanks. Yes, stlport was one of the issues. There are few other changes too. I found them in another thread which lists the exact steps for compilation. Below is the link:
    http://forums.sun.com/thread.jspa?threadID=5366011&tstart=30

  • Compile errors that don't make any sense

    After spending a day coding, I did something to cause my project file to explode with errors. When I revert everything back to a known working version on source control I still get the same errors. I've tried everything I can think of to fix this. I started this problem while fixing a simple compile warning. I've made sure all the frameworks are included correctly. I feel it must be a project setting thats causing these problems. The GLSprite demo still compiles fine, but no matter how far back I go on source control my project file explodes with the same 121 errors. I'm not sure what I could of changed that won't go away with reverting. Any help would be greatly appreciated. I guess my next attempt will be uninstalling XCode.
    Heres the errors i'm getting
    Line Location UIAlert.h:30: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIAlert.h:40: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIAlert.h:147: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIAlert.h:158: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIBarButtonItem.h:55: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIBarButtonItem.h:74: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIColor.h:17: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:17: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:18: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:18: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:18: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:18: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:19: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:19: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:19: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:19: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:24: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:24: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:25: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:25: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:25: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:25: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:26: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:26: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:26: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:26: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:56: error: expected ')' before 'CGFloat'
    Line Location UIFont.h:15: error: expected ')' before 'CGFloat'
    Line Location UIFont.h:23: error: expected ')' before 'CGFloat'
    Line Location UIFont.h:24: error: expected ')' before 'CGFloat'
    Line Location UIFont.h:25: error: expected ')' before 'CGFloat'
    Line Location UIFont.h:30: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:31: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:32: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:33: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:34: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:35: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:38: error: expected ')' before 'CGFloat'
    Line Location UIGeometry.h:13: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIGeometry.h:16: error: expected ')' before 'top'
    Line Location UIGeometry.h:22: error: 'UIEdgeInsets' has no member named 'left'
    Line Location UIGeometry.h:23: error: 'UIEdgeInsets' has no member named 'top'
    Line Location UIGeometry.h:24: error: 'UIEdgeInsets' has no member named 'right'
    Line Location UIGeometry.h:24: error: 'UIEdgeInsets' has no member named 'left'
    Line Location UIGeometry.h:25: error: 'UIEdgeInsets' has no member named 'bottom'
    Line Location UIGeometry.h:25: error: 'UIEdgeInsets' has no member named 'top'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'right'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'bottom'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'bottom'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'right'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'top'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'left'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'left'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'top'
    Line Location UIImage.h:52: error: expected ')' before 'CGFloat'
    Line Location UIImage.h:54: error: expected ')' before 'CGFloat'
    Line Location UIImage.h:67: error: expected declaration specifiers or '...' before 'CGFloat'
    Line Location UIInterface.h:35: error: expected ')' before 'CGFloat'
    Line Location UIInterface.h:36: error: expected ')' before 'CGFloat'
    Line Location UIInterface.h:37: error: expected ')' before 'CGFloat'
    Line Location UIInterface.h:38: error: expected ')' before 'CGFloat'
    Line Location UILabel.h:26: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UILabel.h:27: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UILabel.h:29: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UILabel.h:69: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UINavigationBar.h:22: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UINavigationController.h:28: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'UINavigationControllerHideShowBarDuration'
    Line Location UINavigationController.h:43: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UINavigationController.h:44: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIPickerView.h:83: error: expected ')' before 'CGFloat'
    Line Location UIPickerView.h:84: error: expected ')' before 'CGFloat'
    Line Location UIScrollView.h:78: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIScrollView.h:79: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIScrollView.h:108: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIScrollView.h:109: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UISearchDisplayController.h:30: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UISegmentedControl.h:71: error: expected ')' before 'CGFloat'
    Line Location UISegmentedControl.h:72: error: expected ')' before 'CGFloat'
    Line Location UISlider.h:38: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIStringDrawing.h:40: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:44: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:62: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:62: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:62: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:64: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:64: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:66: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:66: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:66: error: expected ')' before 'CGFloat'
    Line Location UITableView.h:48: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:49: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:50: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:183: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:184: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:185: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:316: error: expected ')' before 'CGFloat'
    Line Location UITableView.h:317: error: expected ')' before 'CGFloat'
    Line Location UITableView.h:318: error: expected ')' before 'CGFloat'
    Line Location UITableViewCell.h:64: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableViewCell.h:66: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableViewCell.h:118: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableViewCell.h:159: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:46: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:58: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:59: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:60: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:61: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:62: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:86: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:124: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIView.h:183: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIWindow.h:14: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'UIWindowLevel'
    Line Location UIWindow.h:21: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIWindow.h:60: error: expected specifier-qualifier-list before 'UIWindowLevel'
    Line Location UIWindow.h:77: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'UIWindowLevelNormal'
    Line Location UIWindow.h:78: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'UIWindowLevelAlert'
    Line Location UIWindow.h:79: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'UIWindowLevelStatusBar'
    Line Location WSMethodInvocation.h:759: error: expected declaration specifiers or '...' before 'CFXMLTreeRef'
    Line Location WSMethodInvocation.h:759: error: expected declaration specifiers or '...' before 'CFXMLTreeRef'
    Line Location WSProtocolHandler.h:486: error: expected declaration specifiers or '...' before 'CFXMLTreeRef'
    Line Location WSProtocolHandler.h:486: error: expected declaration specifiers or '...' before 'CFXMLTreeRef'

    Hi Adam -
    Can we assume your source code control doesn't include the .xcodeproj file? Did you backup the entire project folder at any point? I'm guessing probably not or you would have tried the backup folder by now.
    So to review, are you saying that these compile errors are only showing up in your current project? In addition to GLSprite, can we assume you can compile any of the New Project templates?
    Is the behavior the same when you switch between Debug and Release? Simulator and Device? iPhone OS 3.0 and iPhone 2.x? I assume you've tried Build->Clean All Targets, Xcode->Quit Xcode, and restarting your Mac.
    There's a long list of other things we could check, but if it's only this one project that's broken, I would recommend starting a new project and moving all your source code into the new project. I had to do this once with a nearly complete app because of a similar, mysterious disintegration of my project. Despite my frustration at being unable to isolate the cause, the process went smoothly and took less than two hours. I could have worked faster, but I was trying to rebuild and run at various stages to be sure the project was still clean. I would recommend this, even if you need to make some stub classes to get a subset of the project to link.
    Backing all your files into a new project is strong medicine, but it's likely to work. A re-install of the SDK is no day at the beach either, since you need to carefully clean out the previous installation. If you make a mistake in the cleanup, the new installation may fail, leaving you with two problems: a broken project plus a broken environment.
    Of course if I misunderstood, and you can't even compile a template now, a re-install might be the only choice.
    Hope some part of the above is helpful!
    \- Ray

  • Compilation error after installing Sun patches

    hello,
    One of our customer installed teh following Sun patches:
    119254-73
    124867-14
    124863-23
    124870-03
    124872-07
    126495-04
    126995-04
    127000-13
    127001-04
    127143-03
    118683-05
    119963-20
    120753-08Now when they compile the application they get the following error:
    cd /usr/opt/temip/mmtoolkit/examples/
    make -f temip_ef_user_library.make
    /opt/SUNWspro/bin/CC -c -m64 -xcode=pic32 -g -xO0 -D_POSIX_PTHREAD_SEMANTICS -mt -pto -I/usr/opt/temip/tfc/include -I//usr/opt/temip/mmtoolkit/include -I//usr/opt/temip/acloc/include -I//usr/opt/temip/ocs/include -D_RWCONFIG_m -o temip_ef_user_library.o temip_ef_user_library.cxx
    **"/opt/SUNWspro/prod/include/CC/Cstd/rw/traits", line 535: Error: The function "wcsstr" must have a prototype.*
    *1 Error(s) detected.
    *** Error code 1
    The following command caused the error:
    `echo "/opt/SUNWspro/bin/CC -c -m64 -xcode=pic32 -g -xO0 -D_POSIX_PTHREAD_SEMANTICS -mt -pto -I/usr/opt/temip/tfc/include -I//usr/opt/temip/mmtoolkit/include -I//usr/opt/temip/acloc/include -I//usr/opt/temip/ocs/include -D_RWCONFIG_m " | sed 's/[    ][      ]*/ /g'` -o temip_ef_user_library.o temip_ef_user_library.cxx
    make: Fatal error: Command failed for target `temip_ef_user_library.o'
    does anyone has an idea ?
    thank you for your help.
    regards,
    Christine

    Notes for future posting:
    1. When you have a question about patches, please also provide the one-line patch description. Otherwise, anyone who might be inclined to help first has to look them up. Making volunteers do extra work to help you for free is not the best strategy. 119254-73 Install and Patch Utilities Patch (unlikely to affect compiling programs)
    124867-14 Patch for C 5.9 compiler (unlikely to affect C++ compiling)
    124863-23 Patch for Sun C++ 5.9 Compiler (Aha!)   <-----------
    124870-03 Patch for Sun Performance Library (unlikely to affect compiling programs)
    124872-07 Patch for dbx 7.6 Debugger (unlikely to affect compiling programs)
    126495-04 Patch for debuginfo handling  (unlikely to affect compiling programs)
    126995-04 Patch for Performance Analyzer Tools (unlikely to affect compiling programs)
    127000-13 Patch for Fortran 95 8.3 Compiler (unlikely to affect C++ compiling)
    127001-04 Patch for Fortran 95 8.3 Dynamic Libraries (unlikely to affect compiling programs)
    127143-03 Patch for Fortran 95 8.3 Support Library (unlikely to affect compiling programs)
    118683-05 Patch for profiling libraries and assembler (could possibly affect compiling C++)  <----------
    119963-20 Shared library patch for C++ (unlikely to affect C++ compiling)
    120753-08 Microtasking libraries (libmtsk) patch (unlikely to affect compiling programs)If you had gone through this exercise, you could have eliminated many of these patches from consideration. For example, a Fortran runtime library patch or a dbx patch cannot cause the C++ compiler to generate a compile-time error that it did not generate before.
    2. Put all source code and error messages in "code" tags, as you did with the list of patches. The non-alphanumeric characters in source code and messages can be interpreted as formatting directives instead of being displayed. The result is often nonsense or is hard to read.
    Notes on the command line:
    1. The -xO0 option is not supported, and has unpredictable results. If you do not want optimization because you want to debug the code, use either no -xOn option, or use -xO1. Using no option is generally preferred: compilation is faster, and the generated code is usually better than with -xO1.
    2. The -pto (-instances=static) option is generally a really bad idea. Unless you have a specific reason why you need this template compilation mode, you should remove the -pto option from all command lines (to use the default -instances=global mode), delete all your binaries, and rebuild the application.
    Neither of these problems causes the error message, however.
    What could be wrong
    Also on the command line is a macro definition that appears to be -D_RWCONFIG_m
    Is that the correct rendering of the option? If not, please show the command line again inside "code" tags.
    I'm concerned that you are trying to override a configuration macro for libCstd, the C++ runtime library. Doing so is not supported and has unpredictable results. If -D_RWCONFIG_m is what is really on the command line, it will not cause a problem with the library.
    Except for the possible macro definition issue, finding the problem will require looking at the source code. Since the error message refers to one of the compiler's own headers, the most likely possibilities are
    1. A bug in the headers that might be fixed in a later patch -- 124863-23 is not the most recent patch.
    2. An error in your code that worked only by accident before. I'm thinking of an inappropriate macro definition.
    If you strip everything out of the temip_ef_user_library.cxx file after all the #include directives, you should be able to compile the resulting file and see the same error message. If so, please post that small file here (inside "code" tags).

  • BIP in Word having 'Compile error in hidden module'

    Hi, I have a question refer to use BIP in Word.
    I installed BIP Desktop and I have BIP Toolbar, but when I try use Oracle BI Publisher -> Log On I see:
    Compile error in hidden module: UserForm_ProgressBar,
    When I try load data I see:
    compile error in hidden module: Class_TvwCommon
    and so on.
    I have Windows XP (SP3), BIP 10.1.3.4, Word 2002.
    Where is problem? Can anyone help me out?
    Thanks,
    Patrick

    Can you try this?
    1) Set the Template Builder for Word Language. After installing BI Publisher Desktop, go to BI Publisher Desktop program menu and set the UI language. Close any running Microsoft Office programs. Steps: All programs -> Oracle BI Publisher Desktop -> Template Builder for Word Language. Select your language and click OK.
    Rgds
    Chundi

  • Compile error in hidden module :Module-starter

    Hi All,
    I would like to use template builder 5.6.2.I have already Installed it in my system.
    Whenver I am loading XML file it is giving me same error which mentioned in this forum.( Compile error in hidden module :Module-starter)
    I have tried resolution accordingly u people mentioned in this forum.But it is not working for me...is there any resolution for this? I am using Windows 2000 server SP4.
    One more question is , do we need to install .NET 2.0 in our system to install BI Publisher Desktop?
    Thanks&Regards,
    Madhu.M

    Hi Madhu,
    Have you applied security patch on you PC (KB936021). Some time we get error due to this patch.
    If you have applied and you are getting error then you need to uninstall this patch from your machine.
    Thanks
    Ravi

  • Compile error in hidden module: module starter  (Urgent)

    Hi Experts,
    I am trying to logon to my word document template which was working fine before and now i am getting the error compile error in hidden module: module starter any advise or help can be greatly appreciated. I am using word 2010 and OBIEE version 11.1.1.5
    Thanks,
    RC

    I was getting same error and able to resolve this problem by following below steps. I have windows 7 and office 2007.
    1. Uninstall BI Publisher. Check if all BI Publisher files are clean-up from your computer. Look for template file under C:\Users\UserID\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord and C:\Users\UserID\AppData\Roaming\Microsoft\Word\STARTUP. Recommended cleaning of temp folder under Window directory.
    2.     re-install BI publisher.
    3.     Rename MSComctlLib.exd file to MSComctlLib.exd_bak from “C:\Users\UserID\AppData\Roaming\Microsoft\Forms” directory. I have windows7, Path will not be same on other OS. Recommend searching for this file.
    4.     Restart MS Word, then click on Add-Ins->Oracle BI Publisher->Log On.
    Hope this will help.
    Edited by: user6107479 on Apr 25, 2012 1:47 PM
    Edited by: user6107479 on Apr 25, 2012 1:49 PM

Maybe you are looking for

  • Creation of SNP PDS using planned delivery time

    Dear Experts, How do i control creation of PDS because of operaion generated from planned delivery time,although planed delivery ime is zero. the scenario is as follows: Material :XXXXX Planned Delivery time Procurement Type:E Plant:XXXX in transacti

  • G62-144DX notebook does not start

    Hi, Out of nowhere, I had a problem with the wireless operation on a G62-144DX notebook w/ Windows 7 HP 64-bit. I noted the wireless indicator light glowing amber (disconnected) instead of blue (connected). In attempting to download the manual from H

  • Email in Batch Job

    Hello All, I need to set up a batch job and this would run daily. I can do this in SM36 and have done it. But the question is I have couple of email ID's from the company I am working in and some email ID's for a different company. The concern is whe

  • How to detect a flash player when...

    Hello, I have some flash movies that are not embeded or use the <object> tag. instead they use a javascript in order to eliminate those MS IE rectangular lines. (did anyone sue MS for that unpredictable change?) My problem is that if a user doesn not

  • Hi small doubt on network app?

    Hi we have developed an app in java which works on LAN. But according to new requirement we need to run that app on LAN which is established via WIFI. I mean all the systems connect to LAN using WIFI. So is there anything special that we have to do t