Codepage problem when compiling with fastjavac

Hi,
I'm getting the following warnings when compiling with fastjavac:
fastjavac: warning: Can't find codepage for "Cp1250" encoding.
fastjavac: warning: Use default ANSI codepage.
2 warnings
How could I suppress these warnings?
Thanks in advance

I think you are posting it on the wrong Forum. This is for Forte 4GL not Forte for Java.

Similar Messages

  • Problem when working with package???Please, help me!!!

    I got 3 .java files from one Java tutorial as follow:
    Server.java (in package mygame.server)
    Utilities.java (in package mygame.shared)
    Client.java (in package mygame.client)
    All the above files are placed in "E:\Java Programmes\source"
    After compiling, i got correspponding .class files:
    Server.class (placed in "E:\Java Programmes\class\mygame\server")
    Utilities.class (placed in "E:\Java Programmes\class\mygam\shared")
    Clients.class (placed in "E:\Java Programmes\class\mygame\client")
    But when i run Server.class which contains main method, i got error as follow:
    E:\Java Programmes>java class\mygame\server\Server
    Exception in thread "main" java.lang.NoClassDefFoundError: class\mygame\server\S
    erver (wrong name: mygame/server/Server)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    That was very puzzled for me. I cannot find out what wrong with my files. Please., any boby, help me!!! I always got this problem when working with package and managing files. Thanls a lot.

    java -cp "E:\Java Programmes\class" mygame.server.Server

  • Silly problem when compiling main class

    hi there,
    i have a problem when compiling the main class.
    the classes used by the main class are not recognized. the compiler can't locate the children classes.
    i've already set the path and classpath environment variables, but there's still something missing.
    how should i organize my folders in order to be able to compile the main class successfully, please?
    thanks.

    It would be good to have a precise problem description: the actual command used, folder structure and environment variable settings. Even if you have to construct a simple test case with a couple of classes that illustrates the problem.
    In the absence of that some generic remarks:
    The PATH variable typically points at all the folders that contain executable files that you use often. You can always access other executable files by specifying there full names.
    The CLASSPATH variable is typically left unset.
    When you use the java tools (like the javac compiler or the java runtime) you can specify the classpath that you want to use with -cp. This will override any CLASSPATH value. So in the simple case of two classes (Main and MyClass), you can put them in anywhere you like (for example C:\MyJavaStuff) and compile and run with:
    {noformat}
    C:\MyJavaStuff> javac -cp . *.java
    C:\MyJavaStuff> java -cp . Main
    {noformat}(Mind the dot after -cp))
    By a "main" class I guess you mean a class with a static void main(String args[]) method, but I am suspicious of your "child" classes. Perhaps packages are involved. A precise description of the problem would help.

  • -Xlint warning when compiling with command prompt.

    1 of the method i write in the program has a compilation warning when compiling with command prompt. When i compile the codes with the application i used to write the program has no error at all. Below is my code:
    private static ArrayList readNum(String NumFile)
    ArrayList key = new ArrayList();
    String keyAttributes = readInput(NumFile);
    StringTokenizer stk = new StringTokenizer(keyAttributes);
    while(stk.hasMoreTokens())
    key.add(stk.nextToken());
    return key;
    When i javac the program with -X;int, this errror occured:
    warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.ArrayList
    key.add(stk.nextToken());
    ^
    1 warning
    Anyidea how to solve this problem? Thanks for the help.

    A quick google for that message would have told you that you're not using generics and the compiler complains about that.
    Google for "Java Generics" to find out what all the fuss is about.

  • My iPhone 5 got problem when connect with lighting cable, this will keep pop up message "this accessory may not be supported"

    My iPhone 5 got problem when connect with lighting cable, this will keep pop up message "this accessory may not be supported", I can't charge or sync at all. I tried plug and unplug many time, still can't detect/charge my iPhone5, but sometime will 'lucky' that can connect to my iTunes and charge battery…
    This message will auto pop up also when I don't have plug anything in my iPhone 5, It is very annoying…
    The lighting cable is original and now i'm using OS 7.0.4 / iTunes is 11.1.3
    What I can do to fix this problem? Thank you.

    I would try using another cable you can likely borrow one to test from somebody
    if it's the same then likely the connector in your iphone have been damaged

  • Data not visible in table o/p when compiled with webdynpro compiler

    Hi,
    I am using a Z BAPI to retrieve data from backend ECC6 server and show it using a VC application.
    When I compile this VC application using FLASH(FLEX2), the data is shown in the table, whilst if the VC application is compiled using Webdynpro compiler, the data is not shown in the table.
    The No. Of Rows  parameter has been updated with 10.
    Please suggest what can be done so that data is shown when compiled with Webdynpro compiler.
    Regards,
    Ranu

    Hi Ranu,
    WebDynpro Compiler only supports Webservices.
    You can look at the below link to get into full details -
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/limitationsofWeb+Dynpro
    Regards,
    Vipin Vijayan.

  • Pragma error when compiling with SDK X

    Hi,
    I am trying to compile my plugin application (which compiled fine with the previous sdk) using the SDK X, but receive errors in CAVAlert.h on the exception handler construct DURING, HANDLER, END_HANDLER.
    The errors are listed here:
    Headers/API/CAVAlert.h:156:3: error: 'suppress' was not declared in this scope
    Headers/API/CAVAlert.h:156:3: error: 'warning' was not declared in this scope
    Headers/API/CAVAlert.h:156:3: error: '__pragma' was not declared in this scope
    Headers/API/CAVAlert.h:156:3: error: expected ';' before 'jmp_buf'
    Headers/API/CAVAlert.h:156:3: error: 'ASException' was not declared in this scope
    Headers/API/CAVAlert.h:156:3: error: expected ')' before ':' token
    Headers/API/CAVAlert.h:156:3: error: expected ';' before 'struct'
    Headers/API/CAVAlert.h:162:3: error: request for member 'E_RETURNOutsideDURINGBlock' in 'gBadReturnCatcher', which is of non-class type 'int'
    Headers/API/CAVAlert.h:162:3: error: expected ')' before ':' token
    Headers/API/CAVAlert.h:162:3: error: expected ';' before 'int'
    Headers/API/CAVAlert.h:165:3: error: 'ENDHANDLEROutsideHANDLER' was not declared in this scope
    To compile against to SDK X all I did was:
    1) Used PIMain.c from the SDK X API directory.
    2) Changed ACRO_SDK_LEVEL=0x00090000 => ACRO_SDK_LEVEL=0x000A0000
    3) Changed the include directories to point to the new SDK X directories
    Is there another directive I must add to get the plugin to compile with SDK X?
    My preprocessor list is as follows:
    ACRO_SDK_LEVEL=0x000A0000
    HAVE_W32API_H
    PDMETADATA_HFT=1
    PLUGIN=1
    WIN32
    WIN_ENV
    WIN_PLATFORM
    WXUSINGDLL
    _CRT_SECURE_NO_DEPRECATE
    _DEBUG
    _WINDOWS
    __GNUWIN32__
    __WIN32__
    __WXMSW__
    Thank you,
    Magda

    Without seeing your code, I can't really help.
    If you want help with your code, open a formal support ticket.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Tue, 6 Dec 2011 04:09:25 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Pragma error when compiling with SDK X
    Pragma error when compiling with SDK X
    created by magdakuit<http://forums.adobe.com/people/magdakuit> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4066378#4066378

  • Problem when streaming with the CLI flash media encoder 2.5

    I have a problem when streaming with Flash Media Encoder 2.5. When I run the GUI, everything works, but when I use the commandline with the same profile I have created using the GUI, it says it can't connect to the server.
    I have to use this version of the encoder, because the other is not working with the server, and I have to create a program to remotely control the flash media encoder, so I have to use the CLI. What can i do to go over this problem?
    Any help would be really appreciated. Thankyou.

    First of all, thankyou.
    There is no authentication needed. I can't use Flash Live Media Encoder 3 because it is not supported by the people which manages the server i have to connect to.
    In fact, I don't know why they dont support it, but that is the way it is.
    Through the GUI, i connect directly and without problems, without user/pass.
    Thankyou again.

  • Nexus 1000V. problem when working with the console VMWare

    I have a problem when working with the console VMWare.
    Sometimes it is impossible to connect any of the hypervisor to the guest OS managed by them.
    I get the message: "Unable connect to the MKS: Host address lookup for server <name of the hypervisor> failed: No such host is known."
    This message always appears in conjunction with the reconfiguration of virtual switch: "Reconfigure vNetwork Distributed Switch .... Initiated by Cisco_Nexus_1000V_ ....."
    Upon completion of the reconfiguration, Communication console, with guest OS is restored, or on its own or after a reboot srv-vc.
    In this time, I do not see any message in Nexus 1000v log.
    What is this?
    Thanks in advance.

    Smells of a DNS issue.  Are you sure your ESX hosts are reachable from your client via DNS hostname?  Try pinging them from a command prompt/terminal.  You may have DNS server issues.
    As a temp fix, edit your [windowspath]/system32/etc/drivers/hosts file and manually add the ESX host name and IP, then re-test.
    Regards,
    Robert

  • Problem when iterating with JSTL

    hi ,
    i have occured a problem when iterating with JSTL
    althought this error,my application works fine but i would like to know why this error:
    ther is my iteration code:
    <c:forEach items="#{sWIMmoduleStatistiques.listeModules}" var="m">
               <h:panelGroup>
                <br>
                 <div class="connectorChartHeader" onclick="toggleImage('${m.nomChart}');" >
                <span class="headerTitle">${m.nom}</span>
            </div>
                   <br><br>
                   <img src="${m.nomChart}" id="${m.nomChart}" />
               </h:panelGroup> 
           </c:forEach>       
         the error is:
    javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items" in <forEach>
         at org.apache.taglibs.standard.tag.common.core.ForEachSupport.toForEachIterator(ForEachSupport.java:274)
         at org.apache.taglibs.standard.tag.common.core.ForEachSupport.supportedTypeForEachIterator(ForEachSupport.java:238)
         at org.apache.taglibs.standard.tag.common.core.ForEachSupport.prepare(ForEachSupport.java:155)
         at javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(LoopTagSupport.java:256)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspx_meth_c_005fforEach_005f0(modulesStatistiques_jsp.java:434)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspx_meth_h_005fpanelGrid_005f0(modulesStatistiques_jsp.java:399)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspx_meth_f_005fview_005f0(modulesStatistiques_jsp.java:181)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspService(modulesStatistiques_jsp.java:109)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
         at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at TimeoutFilter.doFilter(TimeoutFilter.java:60)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Thread.java:595)

    that line generated an error:
    java.lang.NumberFormatException: For input string: "class"
         java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         java.lang.Integer.parseInt(Integer.java:447)
         java.lang.Integer.parseInt(Integer.java:497)
         javax.el.ListELResolver.coerce(ListELResolver.java:166)
         javax.el.ListELResolver.getValue(ListELResolver.java:51)
         javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
         com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
         org.apache.el.parser.AstValue.getValue(AstValue.java:118)
         org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
         org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
         javax.faces.component.UIOutput.getValue(UIOutput.java:184)
         com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:201)
         com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:284)
         com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:154)
         javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
         javax.faces.component.UIComponent.encodeAll(UIComponent.java:946)
         javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
         javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
         javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
         javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
         com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
         org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
         com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         TimeoutFilter.doFilter(TimeoutFilter.java:64)
         org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)

  • Bug report: ube_ipa: internal error when compiling with -xO5

    When compiling imlib2-1.1.2, one source file causes compilation to fail with the following error message:
    ube_ipa: internal error
    cc: ube_ipa failed for loader_tiff.c
    The command which fails is (probably wrapped):
    cc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I../loaders -I../libltdl -I/usr/X11R6/include -I/usr/openwin/include -I/opt/csw/include -I/opt/csw/include -I/opt/csw/include -g -fast -xarch=386 -xstrconst -v -xildoff -xO5 -c loader_tiff.c -KPIC -DPIC -o .libs/loader_tiff.o
    Changing -xO5 to -xO4 works around the problem. The source file in question is imlib2-1.1.2/loaders/loader_tiff.c
    Patch 112756-10 has been applied, and doesn't correct the problem. GCC doesn't have any problem compiling the file.
    A quick note to any Sun employees reading this: it took me 45 minutes to find somewhere to submit this bug report. Searching sun.com for "submit bug report" turned up many forum postings where people asked "Where do I submit bug reports?", a bug report form for Sun One Java Studio, and not much else. It might be in your interest to make submitting bugs easier.

    Internal errors, such as the one you encountered, are generally considered compiler bugs. They indicate that the compiler reached an unexpected state and therefore bailed out. I opened bug 20703141: internal error: pic_relocs(): hh reltype? to investigate. I see the same error message emitted by the current Studio development release; I will update this thread if I find a work-around.
    Thanks,
    Mark

  • Create problem when compiling the servlet

    hi,
    i got a problem when i compile a servlet
    when i try to compile the servlet, it shows that it could
    not found the classes like httpservlet, etc.
    means the classes of the servlet
    i am using the j2sdk1.4.1 edition,
    i had include the javax.servlet.*; in the program
    please tell me what can be the problem & especially any solution for that

    the javax.servlet package and it's sub packages (javax.servlet.http, javax.servlet.jsp, javax.servlet.jsp.tagext) are not included with the Standard Edition. These packages are part of the Enterprise Edition. Check out this link for download:
    http://java.sun.com/j2ee/sdk_1.3/

  • Error LNK2019 occurred when compiling with CS6 on Win

    When i try to use GetMousePosition() in my code, i got bellowing link error when compiling in VS2010.
    Is there any library i can include to resolve it?
    error LNK2019: unresolved external symbol __imp__GetCursorPos@4 referenced in function "struct tagPOINT __cdecl GetMousePosition(void)" (?GetMousePosition@@YA?AUtagPOINT@@XZ)
    Thanks,
    Aidy

    Steps to reproduce the problem:
    1. New an empty project with name "test" using DollyXs on Windows;
    2. In testActionComponent.cpp, modify DoAbout() to be
    void testActionComponent::DoAbout()
              GetMousePosition();
    3. Build the project.
    Then, we will get bellowing link error
    1>     Creating library ..\..\..\build\win\objD\test/test.lib and object ..\..\..\build\win\objD\test/test.exp
    1>testActionComponent.obj : error LNK2019: unresolved external symbol __imp__GetCursorPos@4 referenced in function "private: void __thiscall testActionComponent::DoAbout(void)" (?DoAbout@testActionComponent@@AAEXXZ)
    1>..\debug_cs6\test.sdk.pln : fatal error LNK1120: 1 unresolved externals
    There is no such link error in the sdk sample BasicDragDrop.sdk.vcxproj, but i cannot find any special setting in its project property.
    Any suggestion will be appreciated.
    Thanks,
    Aidy

  • Can't find library when compiled with debugging

    Hi all,
    Compiling this code segment cannot find a library when using -g
    bash-3.2$ cat tester.cc
    #include <iostream>
    #include <string>
    using namespace std ;
    static void
    myRoutine()
    string str= "this is in routine" ;
    string str3 ;
    str3 = str.substr(11,7) ;
    if(str.substr(0,4) == "this") cout << "Have a hit" << endl ;
    cout << "this is str3 - " << str3 << endl ;
    int main(int argc, char **argv)
    string str = "this is a test" ;
    string str1, str2 ;
    str1 = str.substr(0,4) ;
    str2 = str.substr(10,4) ;
    cout << "this is str1 - " << str1 << endl ;
    cout << "this is str2 - " << str2 << endl ;
    myRoutine() ;
    return 0 ;
    bash-3.2$ CC -g -o tester tester.cc
    bash-3.2$ ldd tester
         libCstd.so.1 =>     /usr/lib/libCstd.so.1
         libCstd.so.1 (SUNW_1.4.2) =>     (version not found)
         libCrun.so.1 =>     /usr/lib/libCrun.so.1
         libm.so.2 =>     /usr/lib/libm.so.2
         libc.so.1 =>     /usr/lib/libc.so.1
    If I comment out:
    if(str.substr(0,4) == "this") cout << "Have a hit" << endl ;
    bash-3.2$ cat tester.cc
    #include <iostream>
    #include <string>
    using namespace std ;
    static void
    myRoutine()
    string str= "this is in routine" ;
    string str3 ;
    str3 = str.substr(11,7) ;
    // if(str.substr(0,4) == "this") cout << "Have a hit" << endl ;
    cout << "this is str3 - " << str3 << endl ;
    int main(int argc, char **argv)
    string str = "this is a test" ;
    string str1, str2 ;
    str1 = str.substr(0,4) ;
    str2 = str.substr(10,4) ;
    cout << "this is str1 - " << str1 << endl ;
    cout << "this is str2 - " << str2 << endl ;
    myRoutine() ;
    return 0 ;
    bash-3.2$ CC -g -o tester tester.cc
    bash-3.2$ ldd tester
         libCstd.so.1 =>     /usr/lib/libCstd.so.1
         libCrun.so.1 =>     /usr/lib/libCrun.so.1
         libm.so.2 =>     /usr/lib/libm.so.2
         libc.so.1 =>     /usr/lib/libc.so.1
    Or if I remove -g:
    bash-3.2$ cat tester.cc
    #include <iostream>
    #include <string>
    using namespace std ;
    static void
    myRoutine()
    string str= "this is in routine" ;
    string str3 ;
    str3 = str.substr(11,7) ;
    if(str.substr(0,4) == "this") cout << "Have a hit" << endl ;
    cout << "this is str3 - " << str3 << endl ;
    int main(int argc, char **argv)
    string str = "this is a test" ;
    string str1, str2 ;
    str1 = str.substr(0,4) ;
    str2 = str.substr(10,4) ;
    cout << "this is str1 - " << str1 << endl ;
    cout << "this is str2 - " << str2 << endl ;
    myRoutine() ;
    return 0 ;
    bash-3.2$ CC -o tester tester.cc
    bash-3.2$ ldd tester
         libCstd.so.1 =>     /usr/lib/libCstd.so.1
         libCrun.so.1 =>     /usr/lib/libCrun.so.1
         libm.so.2 =>     /usr/lib/libm.so.2
         libc.so.1 =>     /usr/lib/libc.so.1
    then I can run successfully
    Any thoughts or hints?
    bash-3.2$ CC -V
    CC: Sun Ceres C++ 5.10 SunOS_i386 2008/07/10
    Usage: CC [ options ] files. Use 'CC -flags' for details
    bash-3.2$ uname -a
    SunOS alpha 5.11 snv_86 i86pc i386 i86pc
    Thanks,
    Jim

    Ack! Please ignore my earlier posting. I did not play close enough attention to details in your post. I apologize for the confusion. Let me start over:
    The Studio Express release you have contains a newer version of the C++ runtime library libCstd.so.1 than is available yet in Solaris patches. We bump the internal version number when we add new interfaces. The internal version number of the Studio Express library is SUNW_1.3.2. The version of the latest release Solaris patch is SUNW_1.3.1.
    Some new string class operator functions are in version SUNW_1.3.2. I think these are also defined as inline functions in the compiler headers. When you compile with -g, inlining is disabled, and you create a dependency on library version SUNW_1.3.2. (Compiling with -g0 allows function inlining, and might resolve your problem, but read on.)
    We have not released a libCstd.so.1 with internal version SUNW_1.4.2, so I don't understand how that version number could appear in an error message. Did you really see that version, or is it a transcription error? For now, let's assume it is a transcription error.
    When you compile and link with CC, the program gets a runpath pointing into the compiler installation area. At program run time, the loader looks for libraries in directories listed in the runpath, with /lib and /usr/lib as last resort. The "ldd" command reports what the runtime loader will do regarding dependent libraries.
    If the compiler is installed in /opt, a 32-bit program gets a runpath that includes /opt/SUNWspro/lib. In that directory in Sun Studio Express is a symbolic link that points to ../prod/usr/lib/libCstd.so.1, the library with version SUNW_1.3.2.
    If you try this:
    % /opt/SUNWspro/bin/CC hello.cc
    % ldd a.out
    you should see, among other things,
    libCrun.so.1 => /opt/SUNWspro/lib/libCstd.so.1
    (Depending on the OS version, you might see
    libCrun.so.1 => /opt/SUNWspro/prod/usr/lib/libCstd.so.1 instead.)
    But if ldd can't resolve the library, you probably have a corrupted Sun Studio Express installation. In that case, uninstall it, and reinstall from a fresh download.
    If you run the program on a different computer where Sun Studio Express is not installed, the loader won't be able to find the right library version, and you will get "not found" results. I addressed this issue in another thread:
    http://forums.sun.com/thread.jspa?threadID=5340163

  • Kaffeine embedded crash fixed when compiled with libxcb support?

    From kaffeine website:
    Embedded Kaffeine crash fixed.
    This long standing bug is now fixed in current svn ...
    In order to make it possible, we have ported Kaffeine and xine to xcb (a thread-safe replacement for xlib).
    You can give it a try right now:
    1) install libxcb=>1.0
    2) install current xine-lib cvs (it contains xcb based video output plugins: xshm and xv)
    2) install current Kaffeine svn
    Notes
    a) Both xine-lib and Kaffeine have to be compiled with xcb support (autodetected, check configure results).
    b) Kaffeine will still work with xlib based video out plugins if compiled without xcb (but then, no fix!)
    From 0.8.4 changelog:
    * xine-part: support for xcb. Requires libxcb 1.0 and xine-lib 1.1.5. Fixes several issues.
    Any reason not to incorporate this? If it lives up to it's promises It could mean kde users only need ONE media player :-)  (I have 2 installed just to get DVD menus and embedding in konqueror without crashing)
    Any thoughts?
    Cheers,
    Steve.

    I felt that the laptop was possibly overheating and that is why I started down the road to call "customer support", thinking that a fan went out or there was damage to hardware due to it over heating.  And that road got me no where in a fast manner, and two "techs" telling me it was a software related issue and that I needed to reformat the laptop (twice) and re-install to factory settings.  Even when I did this, it still had the issue and they again told me that it was software related when there was no software on the computer except for Windows 7.  The only thing that customer support helped me with is the knowledge of next time I buy a laptop, but Dell or any other laptop besides a Toshiba.  That is too bad.
    Anyway, I tried to continue on with my thinking of a possible over heating issue, so I blew air into the vents and fins of the laptop.  A lot of dust came out.  I kept blowing air into the vents until no more dust came.
    My wife had to re-install everything again to her laptop after I got the major items re-installed.  She has been running it for the last day or so with no issues.  We hope that this was the issue.  I know she enjoys the laptop when it was running well.
    I guess we will see how it goes.

Maybe you are looking for