Heade files in sun studio 12

Hello,
I have Sun Studio Express - February 2007 Early Access Release.
I intend to use it only in "C" projects.
I had tried to create a "C" project successfully.
When I generate a "C" header , named for example list.h, it is created thus:
#ifndef listH
#define     listH
#ifdef     __cplusplus
extern "C" {
#endif
#ifdef     __cplusplus
#endif
#endif     /* listH */
I want to get rid of the "#ifdef     __cplusplus" so next time I will
create a "C" header file it will not be created. How do I achieve this ?
Regards,
Ian

Hi,
This is not the time which bothers me.
This is simply reduant since I am NOT working in c++, and I wish to get rid
of this lines.
The question is: how can I get rid of this lines in the template ?
or is this somehow hard coded ?
Regards,
Ian

Similar Messages

  • About header files in sunStudio C++

    Please send the details about the header files in Sun Stdio C++.
    In our college we are using some header files are not working like
    "iostream.h".
    Instead of this what header we have to use
    Please send the the details as quickly as possible

    The C++ Users Guide explains the sets of headers and libraries supplied with the compiler. Refer to the section on LIbraries.
    To find all the Sun Studio documentation, point your browser to
    file:///<install-dir>/docs/index.html
    where <install-dir> is the base directory where Sun Studio is installed. The default location is /opt/SUNWspro
    Or you can go to here
    http://docs.sun.com/app/docs/prod/studio.prod
    to find documentation for all releases of Sun Studio

  • How to generate gdb compatible .o for CMT using Sun Studio C compiler?

    Hello,
    we've been working on a joint project for telco bearer plane applications on CMT.
    We started the project using gcc for Sparc and we switched to Sun Studio compiler when we hit some bugs in gcc (optimized mode was not completely stable). The switch took a few weeks due to syntax differences and toolchain option changes.
    With Sun Studio we got a double digit percent performance improvement, so Sun Studio proved more stable and faster than gcc.
    To debug programs we require gdb, because the Telco customers are more familiar with it. The problem is that Sun Studio generates object files which are not compatible with gdb.
    Our main requirement is to be able to generate gdb compatible object files using Sun Studio compiler.
    We checked this link:
    http://cooltools.sunsource.net/gcc/ReleaseNotes.html
    but this seems to be a variant of gcc. At this point we cannot switch compiler because of the performance and stability issues mentioned above and because it will take a few weeks to months to switch.
    We have two questions:
    1) Is there a way to generate gdb compatible object files using Sun Studio 11?
    2) If not, is this funcionality going to be available in a future release of Sun Studio and what is the time frame?
    Thanks for your help.
    Marco Zandonadi
    Teja Technologies

    The undefined symbol is in the C++ runtime support library that is part of Solaris. Probably you have an out-fo-date version of the libraries.
    You can get current patches from the Sun Studio patch page:
    http://developers.sun.com/prodtech/cc/downloads/patches/index.html
    From the page for your version of WorkShop or Sun Studio, select the C++ Runtime Library patch for the version of Solaris that your are running. While you are at it, you can get the current compiler patches as well.
    If patching the runtime libraries does not fix the problem, let me know, and also show the exact command lines that you use for compiling and linking the program.

  • Sun Studio cc includes unused static inline functions in object file

    While trying to compile some code originally compiled with GCC I run into a linking problem. My problem seems to be caused by that GCC does not include unused static inline functions in the object files while cc does. The following simple example can be used for illustrating this:
    void foo();
    static inline void bar()
      foo();
    int main()
    }This program compiles and links without any problems using GCC and Sun Studio 12 CC (the C++ compiler) but fails to link using Sun Studio 12 cc:
    khepri%> cc staticinline.c
    Undefined first referenced
    symbol in file
    foo staticinline.o
    ld: fatal: Symbol referencing errors. No output written to a.out
    It is probably fine of cc to include foo() in the object file (although not necessary?). My questions are:
    1. Are there any reasons for why cc includes unused static inline functions in the object file while CC does not?
    2. Are there any ways or options to tell cc to not include unused static inline functions in the object file?
    In the example above this is easy to fix by just removing or #ifdef away the code but the original code where I have this problem is not maintained by me and the static inline functions are in header files that get included in multiple C files and in some of these the functions are used.
    Thanks,
    Olav

    olavsa wrote:
    1. Are there any reasons for why cc includes unused static inline functions in the object file while CC does not?
    2. Are there any ways or options to tell cc to not include unused static inline functions in the object file?Removing dead code is an optimization, so you need at least -xO1 for that.

  • Sun Studio 11: Cannot create a new file

    When I want to create a new *.h or *.cc file in my CVS mounted directory tree, studio raises it's famous "Unexpected Exception" dialog with a java stack trace. I have them prepared if you want, I just wanted to check before if there is some already known bug or advice. This worked flawlessly on Sun Studio 10.
    As for source browser (another topic in this forum), yeah, I would also very much like some kind of source browser, e.g. to be able to find all definitions/calls to my virtual method, have a class hierarchy...
    And one final note on the constant problems in communication between NetBeans and XEmacs, especially if there are two or more XEmacs windows open. Initially all works ok, but with time it starts...source error hyper links from make/build window and search dialog fail to open and position in the source file, then it can't open a file from Filesystems window, and when I restart the SunStudio, everything works again for some time.
    This was most annoying in release 9, then somewhat better in 10 but still present, and I see now nothing is better in release 11.
    Details:
    OS = SunOS 5.8 Generic_117350-26
    HW = sun4u sparc SUNW,Sun-Blade-1500
    SunStudio 11, netbeans 3.5V11, jdk1.5.0_06
    (all mounted from a Solaris 9 driven server)
    Thanks for reading and answers.
    Best regards.

    Thank you for your report! There is no bug filed for
    this issue,
    so, please, provide us with the java stack trace . OK, so there is a stack trace when opening a new header file:
    java.lang.NullPointerException
    at org.netbeans.modules.cpp.editor.CCFSrcFileIterator.addChangeListener(CCFSrcFileIterator.java:110)
    at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:73)
    at org.openide.loaders.TemplateWizard.setTemplateImpl(TemplateWizard.java:168)
    at org.openide.loaders.TemplateWizard1.implStoreSettings(TemplateWizard1.java:499)
    at org.openide.loaders.TemplateWizardPanel1.storeSettings(TemplateWizardPanel1.java:112)
    at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:471)
    at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:619)
    at org.openide.WizardDescriptor.goToNextStep(WizardDescriptor.java:612)
    at org.openide.WizardDescriptor.access$300(WizardDescriptor.java:55)
    at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1110)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
    at java.awt.Dialog$1.run(Dialog.java:515)
    at java.awt.Dialog.show(Dialog.java:536)
    at org.netbeans.core.NbPresenter.superShow(NbPresenter.java:690)
    at org.netbeans.core.NbPresenter.doShow(NbPresenter.java:733)
    at org.netbeans.core.NbPresenter.run(NbPresenter.java:721)
    at org.openide.util.Mutex$1.run(Mutex.java:952)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Then there is one for cpp file:
    java.util.NoSuchElementException
    at org.openide.loaders.TemplateWizard$DefaultIterator.nextPanel(TemplateWizard.java:812)
    at org.openide.loaders.TemplateWizardIterImpl.nextPanel(TemplateWizardIterImpl.java:136)
    at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1106)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
    at java.awt.Dialog$1.run(Dialog.java:515)
    at java.awt.Dialog.show(Dialog.java:536)
    at org.netbeans.core.NbPresenter.superShow(NbPresenter.java:690)
    at org.netbeans.core.NbPresenter.doShow(NbPresenter.java:733)
    at org.netbeans.core.NbPresenter.run(NbPresenter.java:721)
    at org.openide.util.Mutex$1.run(Mutex.java:952)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    About XEmacs: yes, the communication between IDE and
    XEmacs is not stable. It was a little bit improved in
    Sun Studio
    10, but not enough. We plan to improve it in next
    release. I'll
    try to create a test case according to your
    description. BTW,
    why there are two or more XEmacs windows? Usually
    there
    should be only one window with many buffers. I don't
    think
    Sun Studio IDE can manage several XEmacs windows.Why? Because it is a great help to be able to watch two different buffers/modules at the same time when writing source code. If there is only one window with many buffers, I have to either split window in two (Ctrl X 2) or continuously switch between two buffers, which is annoying.
    Thanks for the feedback.

  • Sun Studio 11 do not parse make output and create link to file?

    Hi,
    Running Sun Studio 11 and can only get file links in the output window when I run a make command that uses CC -g (debug option). We have integrated other tools into our make system (flexlint, cppUnit..) and even though we make sure that the syntax is exactly the same as the compiler output and matches regular expression under tools->options->building->make settings->error expression, it doesn't work. Why do you have to debug compile to get sun studio to create a file link in the output window? Doesn't sun studio just parse the text from the make command?
    example of flexlint output for which no link is created:
    "/vobs/project/oss/fm/fm4/fm-fmalib/fmbal/fmaaulib/src/FMA_List.cc", line 440: Error 84: sizeof object is zero or object is undefined'�
    example of make debug output for which we do get a link:
    "/vobs/project/oss/fm/fm4/fm-fmalib/fmbal/SunOS5.10/inc/FMA_alarm_record.hh", line 1310: Warning (Anachronism):Info "static" is not allowed and is being ignored.
    Regards,
    Ola

    I'd second Maxim's suggestion: try NetBeans 5.5 with C/C++ Development Pack. The official release of NetBeans C/C++ Development Pack 5.5 has happened a few days ago. You can download it from
    http://www.netbeans.info/downloads/all.php?b_id=2284
    Some of the changes between the beta3 build and FCS are:
    * Significant performance improvements in the code parser resulting in faster results in the Class View and Code Completion
    * Programs now run in an external terminal (system dependent) by default. This allows better input control
    * Significant performance improvement in the debugging module
    * Significant functionality improvement in the debugging module
    * New project type "C/C++ Project From Existing Code" which simplifies creating a project from existing code
    * Macro support in code completion
    * Hyperlink navigation for macro usages and #include directives
    * Reformat code
    * Code folding
    * Code completion
    All these features will appear in next Sun Studio release, so you can
    consider NetBeans C/C++ Development Pack 5.5 as a preview of new
    Sun Studio IDE.

  • VS2010: Why does my C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include does not get all the needed header files?

    Hello,
    I have installed VS2010 Professional. I have done a full install. The I install the 2010 redistributable and 2010 SP1. So I think I have installed all the needed products. But my include files has only 3 files :(. anmintrin.h, srv.h, wmiatlprov.h. My colleagues
    who have installed the same three products have some 200 header files. My guess these header files are coming from some SDK or so. I have 5.0, 6.0A, 7.0A. 7.1A, 8.0, 8.0A SDKS installed. What am I missing? 
    Please check this http://stackoverflow.com/questions/13656856/cant-get-visual-studio-c-include-file-excpt-h-to-get-installed and there the person tells to practically remove all and install all and another answer says just copy it. My hope is Microsoft
    might have a more logical and technical answer than doing something blindly without rhyme or reason
    A clear cut answer might help the community. 
    thanks
    ananda

    Hi Ananda Vardhana,
    What about your issue now?
    If you have resolved it, you can share the solution here, which will be beneficial for other members with the same issue.
    If you did not, whether you can provide us more information as Barry said for resolving this issue?
    Best regards,
    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.

  • How to change Makefile file name in sun studio for linux 11?

    Greetings,
    For historical reasons, our makefiles are called Make.bld
    Sun Studio refuses to accept these as makefiles.
    It'd be a big pain to modify our entire build system to take makefile as the name.
    Is there a way to instruct sun studio to accept a different filename for makefiles ?
    Thanks,
    Bill

    There is no supported way of getting the Sun Studio IDE (or NetBeans) to recognize
    Make.bld as a Makefile. However, the solution Nik pointed out with a .nbattrs file will
    work.
    Here is a complete file which, if copied to each directory containing a Make.bld file
    will work. However, if the directory already contains a .nbattrs file you should edit
    the existing one and add the <fileobject>...</fileobject> lines rather than overwriting
    the entire file.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE attributes PUBLIC "-//NetBeans//DTD DefaultAttributes 1.0//EN"
    " http://www.netbeans.org/dtds/attributes-1_0.dtd">
    <attributes version="1.0">
    <fileobject name="Make.bld">
    <attr name="MAKEFILE_TYPE" stringvalue="foo"/>
    </fileobject>
    </attributes>
    Note: I split the DOCTYPE line myself. It should be a single line in the file (although
    its probably OK if split, I didn't verify that so I'll suggest a single line).
    I should warn you that the next release of the Sun Studio IDE will no longer use
    .nbattrs files and you'll need a different solution. A preliminary version of the next
    release is currently available by downloading Sun Studio Express 3. The IDE is
    significantly better than the current one! You also get a lot of the same features
    by downloading NetBeans 5.5 with the C/C++ Development Pack.
    Gordon

  • Control Sun Studio 12 log files

    Hi everybody. I'm new using the Sun Studio IDE. I'm not a developer, i'm a system administrator.
    What I would like to know is how to control the size of the Sun Studio log file. For example, I have some users with the following files:
    ~/.sunstudio/12.0-SunOS-sparc/var/log
    ls -lah
    total 5227472
    drwxrwxr-x 2 username groupname 4.0K Mar 4 11:52 .
    drwxrwxr-x 5 username groupname 4.0K Mar 4 10:38 ..
    -rw-rw-r-- 1 username groupname 283M Mar 4 11:55 messages.log
    -rw-rw-r-- 1 username groupname 1.2G Mar 4 11:52 messages.log.1
    -rw-rw-r-- 1 username groupname 1002M Mar 4 10:16 messages.log.2
    tail messages.log
    at org.netbeans.modules.cnd.modelimpl.uid.KeyBasedUID.getObject(KeyBasedUID.java:37)
    at org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDtoNamespace(UIDCsmConverter.java:81)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase._getGlobalNamespace(ProjectBase.java:1155)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getGlobalNamespace(ProjectBase.java:154)
    at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:48)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.render(FileImpl.java:295)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl._parse(FileImpl.java:470)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.parse(FileImpl.java:437)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:239)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:66)
    Why these files are so big? How can I control the size of the files? When the rotation is done? Can be compressed after rotation like "logrotate"?
    Thanks in advance.

    Hi everybody. I'm new using the Sun Studio IDE. I'm not a developer, i'm a system administrator.
    What I would like to know is how to control the size of the Sun Studio log file. For example, I have some users with the following files:
    ~/.sunstudio/12.0-SunOS-sparc/var/log
    ls -lah
    total 5227472
    drwxrwxr-x 2 username groupname 4.0K Mar 4 11:52 .
    drwxrwxr-x 5 username groupname 4.0K Mar 4 10:38 ..
    -rw-rw-r-- 1 username groupname 283M Mar 4 11:55 messages.log
    -rw-rw-r-- 1 username groupname 1.2G Mar 4 11:52 messages.log.1
    -rw-rw-r-- 1 username groupname 1002M Mar 4 10:16 messages.log.2
    tail messages.log
    at org.netbeans.modules.cnd.modelimpl.uid.KeyBasedUID.getObject(KeyBasedUID.java:37)
    at org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDtoNamespace(UIDCsmConverter.java:81)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase._getGlobalNamespace(ProjectBase.java:1155)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getGlobalNamespace(ProjectBase.java:154)
    at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:48)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.render(FileImpl.java:295)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl._parse(FileImpl.java:470)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.parse(FileImpl.java:437)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:239)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:66)
    Why these files are so big? How can I control the size of the files? When the rotation is done? Can be compressed after rotation like "logrotate"?
    Thanks in advance.

  • Sun Studio 12 IDE doesn't allow me to edit the C++ source files...

    I installed Sun Studio 12 on my PC:
    SunOS version 5.10 running on x86
    Java 1.5.0_16
    I created a shared library project but I can't properly edit the source files. I can't scroll up/down or right/left over the source files. I would appreciate very much if somebody could support me with that.
    Thanks and regards,
    Ioan

    Hi Gordon,
    First of all thanks for your prompt answer. Now let's go back to my problem :-) - I tried removing the folder you indicated me but there was no change...:-(. Please find below the log file you asked for:
    Log Session: Saturday, August 30, 2008 3:16:22 PM EEST
    System Info: Product Version = Sun Studio (Build 200704122300)
    Operating System = SunOS version 5.10 running on x86
    Java; VM; Vendor; Home = 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-b02; Sun Microsystems Inc.; /usr/jdk/instances/jdk1.5.0/jre
    System Locale; Encoding = en (sunstudio); ISO646-US
    Home Dir.; Current Dir. = /export/home/ioanp; /export/home/ioanp
    Installation; User Dir. = /opt/netbeans-5.5.1/nb5.5:/opt/netbeans-5.5.1/ide7:/opt/netbeans-5.5.1/harness:/opt/netbeans-5.5.1/cnd1:/opt/SUNWspro/atd1:/opt/SUNWspro/prod:/opt/netbeans-5.5.1/platform6; /export/home/ioanp/.sunstudio/12.0-SunOS-i386
    Boot & Ext. Classpath = /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/i18n.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/sunrsasign.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/jsse.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/jce.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/charsets.jar:/usr/jdk/instances/jdk1.5.0/jre/classes:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/dnsns.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/localedata.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/sunjce_provider.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/sunpkcs11.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/jhall.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/jmf.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/jmplay.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/mediaplayer.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/multiplayer.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/jai_codec.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/jai_core.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/mlibwrapper_jai.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/clibwrapper_jiio.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/jai_imageio.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/jmfmp3.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/mp3plugin.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/gnome-java-bridge.jar
    Application Classpath = /opt/netbeans-5.5.1/platform6/lib/boot.jar:/opt/netbeans-5.5.1/platform6/lib/org-openide-modules.jar:/opt/netbeans-5.5.1/platform6/lib/org-openide-util.jar:/opt/netbeans-5.5.1/platform6/lib/locale/boot_ja.jar:/opt/netbeans-5.5.1/platform6/lib/locale/boot_pt_BR.jar:/opt/netbeans-5.5.1/platform6/lib/locale/boot_zh_CN.jar:/opt/netbeans-5.5.1/platform6/lib/locale/org-openide-modules_ja.jar:/opt/netbeans-5.5.1/platform6/lib/locale/org-openide-modules_pt_BR.jar:/opt/netbeans-5.5.1/platform6/lib/locale/org-openide-modules_zh_CN.jar:/opt/netbeans-5.5.1/platform6/lib/locale/org-openide-util_ja.jar:/opt/netbeans-5.5.1/platform6/lib/locale/org-openide-util_pt_BR.jar:/opt/netbeans-5.5.1/platform6/lib/locale/org-openide-util_zh_CN.jar:/opt/netbeans-5.5.1/platform6/lib/locale/swing-l10n_pt_BR.jar
    Startup Classpath = /opt/netbeans-5.5.1/platform6/core/core.jar:/opt/netbeans-5.5.1/platform6/core/org-openide-filesystems.jar:/opt/netbeans-5.5.1/platform6/core/locale/core_pt_BR.jar:/opt/netbeans-5.5.1/platform6/core/locale/core_zh_CN.jar:/opt/netbeans-5.5.1/platform6/core/locale/org-openide-filesystems_ja.jar:/opt/netbeans-5.5.1/platform6/core/locale/org-openide-filesystems_pt_BR.jar:/opt/netbeans-5.5.1/platform6/core/locale/org-openide-filesystems_zh_CN.jar:/opt/netbeans-5.5.1/platform6/core/locale/core_ja.jar:/opt/netbeans-5.5.1/nb5.5/core/org-netbeans-upgrader.jar:/opt/netbeans-5.5.1/nb5.5/core/locale/core_nb_ja.jar:/opt/netbeans-5.5.1/nb5.5/core/locale/core_nb_pt_BR.jar:/opt/netbeans-5.5.1/nb5.5/core/locale/core_nb_zh_CN.jar:/opt/netbeans-5.5.1/nb5.5/core/locale/org-netbeans-upgrader_ja.jar:/opt/netbeans-5.5.1/nb5.5/core/locale/org-netbeans-upgrader_pt_BR.jar:/opt/netbeans-5.5.1/nb5.5/core/locale/org-netbeans-upgrader_zh_CN.jar:/opt/netbeans-5.5.1/nb5.5/core/locale/core_nb.jar:/opt/netbeans-5.5.1/ide7/core/org-netbeans-modules-utilities-cli.jar:/opt/SUNWspro/prod/atd1/core/locale/core_sunstudio.jar
    Turning on modules:
         org.openide.util [6.8.31 200704122300]
         org.openide.modules [6.5.31 200704122300]
         org.openide.awt [6.7.31 200704122300]
         org.openide.filesystems [6.4.31 200704122300]
         org.openide.dialogs [6.5.31 200704122300]
         org.openide.nodes [6.7.31 200704122300]
         org.openide.windows [6.5.31 200704122300]
         org.openide.options [6.4.31 200704122300]
         org.openide.text [6.9.32 200704122300]
         org.openide.explorer [6.5.31 1 200704122300]
         org.openide.actions [6.5.31 200704122300]
         org.openide.loaders [5.9.31 200704122300]
         org.netbeans.api.xml/1 [1.13.30 200704122300]
         org.netbeans.spi.navigator/1 [1.2.31 200704122300]
         org.openide.io [1.9.31 200704122300]
         org.netbeans.core.output2/1 [1.7.31.1 1 200704122300]
         org.netbeans.modules.xml.core/2 [1.12.30.4 4 200704122300]
         org.netbeans.bootstrap/1 [2.3.31 200704122300]
         org.netbeans.core.startup/1 [1.5.31 200704122300]
         org.netbeans.swing.plaf [1.5.31 200704122300]
         org.netbeans.core/2 [3.2.31.1 200704122300]
         org.netbeans.libs.xerces/1 [1.8.32 2.8.0 200704122300]
         org.netbeans.modules.xml.tax/2 [1.12.30.4.4 4 200704122300]
         org.openide.execution [1.8.31 200704122300]
         org.netbeans.api.java/1 [1.10.31 200704122300]
         org.netbeans.modules.editor.util/1 [1.8.31 200704122300]
         org.netbeans.modules.editor.mimelookup/1 [1.3.31 200704122300]
         org.netbeans.modules.editor.fold/1 [1.5.31 200704122300]
         org.netbeans.modules.editor.lib/1 [1.9.31.1 1 200704122300]
         org.netbeans.modules.editor.plain.lib/1 [1.3.31 200704122300]
         org.netbeans.modules.queries/1 [1.7.31 200704122300]
         org.openidex.util/3 [3.9.32 200704122300]
         org.netbeans.modules.editor.settings/1 [1.4.31 200704122300]
         org.netbeans.modules.editor/3 [1.26.31.1 200704122300]
         org.netbeans.modules.editor.plain/1 [1.3.31 200704122300]
         org.netbeans.core.ui/1 [1.9.31 200704122300]
         org.netbeans.modules.settings/1 [1.10.51 200704122300]
         org.netbeans.modules.projectapi/1 [1.9.31 200704122300]
         org.netbeans.modules.cnd.api.model/1 [1.1.1 1 070814]
         org.jdesktop.layout/1 [1.3.41 1.0 200704122300]
         org.netbeans.api.progress/1 [1.5.31 200704122300]
         org.netbeans.libs.formlayout/1 [1.2.31 1 200704122300]
         org.netbeans.modules.options.api/0 [1.3.31 200704122300]
         org.netbeans.modules.cnd/1 [1.1.1 1 070814]
         org.netbeans.modules.projectuiapi/1 [1.13.32.5 5 200704122300]
         org.netbeans.modules.project.ant/1 [1.12.31 200704122300]
         org.netbeans.modules.cnd.makeproject/1 [1.1.1 1 070814]
         org.netbeans.modules.cnd.discovery [1.1.1 070814]
         org.netbeans.modules.cnd.modeldiscovery [1.1.1 070814]
         org.netbeans.modules.javahelp/1 [2.8.31 200704122300]
         org.netbeans.modules.diff/1 [1.15.31.42 42 200704122300]
         org.netbeans.modules.editor.errorstripe.api/1 [2.2.31.1 1 200704122300]
         org.netbeans.modules.editor.errorstripe/2 [2.2.31.1.1 1 200704122300]
         org.netbeans.modules.versioning/1 [1.3.31.1 1 200704122300]
         org.netbeans.lib.cvsclient/1 [1.14.31 200704122300]
         org.netbeans.modules.masterfs/1 [1.8.33 200704122300]
         org.netbeans.core.execution/1 [1.9.31 200704122300]
         org.apache.tools.ant.module/3 [3.24.31.1 1 200704122300]
         org.netbeans.libs.jsch/1 [1.4.31 0.1.24 200704122300]
         org.netbeans.modules.versioning.system.cvss/1 [1.7.31.1.42.1 1 200704122300]
         org.netbeans.modules.cnd.modelutil/1 [1.1.1 1 070814]
         org.netbeans.modules.cnd.qnavigator/1 [1.1.1 070814]
         org.netbeans.modules.cnd.antlr [2.7.5 070814]
         org.netbeans.modules.cnd.repository.api/1 [1.1.1 1 070814]
         org.netbeans.modules.cnd.apt [1.1.1 1 070814]
         org.netbeans.modules.cnd.dwarfdump [1.1.1 070814]
         org.netbeans.modules.xml.xam/1 [1.1.30 1 200704122300]
         org.netbeans.modules.favorites/1 [1.11.41 200704122300]
         org.apache.xml.resolver [1.1.30 1.1 200704122300]
         org.netbeans.modules.xml.catalog/2 [1.11.30.4.4 4 200704122300]
         org.netbeans.modules.projectui [1.9.10.5 200704122300]
         org.netbeans.modules.editor.bookmarks/1 [1.3.31 200704122300]
         com.sun.tools.swdev.advtools.actions.api [1.1.1 070730]
         org.netbeans.modules.cnd.folding [1.1.1 1 070814]
         org.netbeans.tasklistapi/1 [1.20.31.7 7 200704122300]
         org.netbeans.modules.tasklist.core/2 [1.37.31.16.7 16 200704122300]
         org.netbeans.modules.suggestions_framework/2 [1.15.31.9.16.7 9 200704122300]
         org.netbeans.modules.tasklist.docscan/2 [1.23.31.9.16.7 200704122300]
         org.netbeans.modules.ant.grammar/1 [1.14.31 200704122300]
         org.netbeans.modules.cnd.dwarfdiscovery [1.1.1 070814]
         org.netbeans.modules.cnd.highlight [1.1.1 070814]
         org.netbeans.lib.terminalemulator [1.3.1 070814]
         com.sun.tools.swdev.sunstudio.update/1 [1.1.1 070730]
         org.netbeans.modules.servletapi/1 [1.10.30 200704122300]
         org.netbeans.modules.editor.completion/1 [1.6.31 200704122300]
         org.netbeans.spi.palette/1 [1.6.10 200704122300]
         org.netbeans.modules.cnd.model.services/1 [1.1.1 1 070814]
         org.netbeans.modules.cnd.completion/1 [1.1.1 1 070814]
         org.netbeans.modules.cnd.gotodeclaration [1.1.1 070814]
         org.netbeans.modules.xml.schema.model/1 [1.1.30 1 200704122300]
         org.netbeans.modules.xml.wsdl.model/1 [1.1.30 1 200704122300]
         org.netbeans.modules.editor.codetemplates/1 [1.2.31 200704122300]
         org.netbeans.modules.cnd.modelimpl/1 [1.1.1 1 070814]
         org.netbeans.modules.css/2 [1.12.30 200704122300]
         org.netbeans.modules.image/1 [1.17.31 200704122300]
         org.netbeans.modules.editor.structure/1 [1.12.30.1 1 200704122300]
         org.netbeans.modules.xml.text/2 [1.12.30.4.4 4 200704122300]
         org.netbeans.modules.xml.retriever/1 [1.0.20 200704122300]
         org.netbeans.modules.cnd.classview/1 [1.1.1 1 070814]
         org.netbeans.modules.cnd.modelui [1.1.1 070814]
         org.netbeans.modules.utilities/1 [1.21.32 200704122300]
         org.netbeans.modules.utilities.project/1 [1.5.33 200704122300]
         org.netbeans.swing.tabcontrol [1.6.31 200704122300]
         org.netbeans.core.windows/2 [2.7.31.1 200704122300]
         org.netbeans.modules.httpserver/2 [2.6.30.42 42 200704122300]
         org.netbeans.modules.xsl/1 [1.12.30.4 200704122300]
         org.openide.src [1.8.31 200704122300]
         org.netbeans.modules.xml.tools/2 [1.12.30.4.4.4 4 200704122300]
         com.sun.tools.swdev.toolscommon [1.16.0.2 ${bm.build.name} ${bm.build.date}]
         com.sun.tools.swdev.sunstudio/1 [1.1.1 070730]
         org.netbeans.spi.viewmodel/2 [1.9.31 200704122300]
         org.netbeans.api.debugger/1 [1.7.33 200704122300]
         org.netbeans.spi.debugger.ui/1 [2.8.33 200704122300]
         com.sun.tools.swdev.advtools.actions.spi [1.1.1 070730]
         com.sun.tools.debugger.dbxgui/3 [3.0.0.2 FCS 2007/08/06]
         org.netbeans.modules.html.editor.lib/1 [1.5.30 200704122300]
         org.netbeans.modules.html.editor/1 [1.5.30 200704122300]
         org.netbeans.modules.properties/1 [1.17.31 200704122300]
         org.netbeans.modules.xml.xdm/1 [1.1.30 1 200704122300]
         org.netbeans.modules.cnd.repository [1.1.1 070814]
         org.netbeans.upgrader [4.5.31 200704122300]
         com.sun.tools.swdev.projectimport/1 [1.1.1 070730]
         org.netbeans.modules.defaults/1 [1.2.31 200704122300]
         org.netbeans.modules.html/1 [1.20.30 200704122300]
         org.netbeans.modules.xml.schema/1 [1.12.30.4 200704122300]
         org.netbeans.modules.editor.settings.storage/1 [1.4.31 200704122300]
         org.netbeans.modules.autoupdate/1 [2.16.31 200704122300]
         org.netbeans.modules.options.editor/1 [1.2.31 200704122300]
         org.netbeans.modules.properties.syntax/1 [1.17.31 200704122300]
         org.netbeans.configuration.api [1.1.1 070814]
         com.sun.tools.swdev.advtools.actions.control [1.1.1 070730]
         org.netbeans.core.ide/1 [1.9.31 200704122300]
         com.sun.forte.st.mpmt/1 [8.2]
         com.sun.tools.swdev.advtools.actions.performanceanalyzeractions/1 [1.1.1 070730]
         org.netbeans.modules.extbrowser/1 [1.10.30 200704122300]
    ConfigurationDescriptorProvider: I/O in EQ is not good idea
    THANKS AGAIN AND REGARDS,
    John

  • General and specific questions on the applicability of Sun Studio 11

    Hi. In an e-mail letter from Sun Microsystems I read about Sun Studio 11 to "utilize its record-setting parallelizing compilers." From this message I was attracted by the possibility of adding something like parallel processing, not by changing the processor (hardware), but by adding Sun-Studio-11 software to a Linux operating system. Now I already have a Fortran compiler, the Intel Fortran Compiler for Linux, which is free and can handle Cray-style pointers, a feature hard to find in a free Fortran compiler.
    1a. So for the most basic of questions, without having parallel-processing hardware, just an ordinary processor [a 1-GigaHertz (GHz) Advanced MicroDevices Duron central processing unit, in my case], is it possible to have parallel processing and thereby increase one's computing speed by installing Sun Studio 11 in a Linux operating system?
    1b. If so, by what factor could one expect the speed of computation to increase over not having Sun Studio 11 installed? (If the gain in speed is dependent on the type of computations being performed, I imagine possibly using a Fortran code to perform numerical calculations using and perhaps searching for minima or maxima in a two-or-more-dimensional surface. So please give me an idea of the sort of gain in speed one could expect for these two types of activites, calculations using formulas and searches for minima and maxima among already-computed quantities.)
    1c. Again if so, how could one just by adding software have parallel processing without two or more hardware processors? In other words, what is the basic working principle of the software to make the simultaneous performance of multiple tasks (multitasking or parallel processing) possible?
    2a. Does Sun Studio 11 include a Fortan compiler?
    2b. If so, must one use it to have parallel processing with Sun Studio 11?
    2c. Or will the Intel Fortran Compiler for Linux work with Sun Studio 11 to have a parallel processing capability?
    Concerning hardware requirements I read that Sun Studio 11 requires a minimum of 512 MegaBytes (MB) of memory, presumably Random Access Memory (RAM). My Hewlett-Packard, ZE1110, Pavilion, notebook computer has 256 MB of RAM, but is expandable to a maximum of 512 MB of RAM. So in this respect it is in principle at least technically possible for me to meet the minimum system requirement for Sun Studio 11 with my computer, if I choose to increase its RAM. Somehow accommodating the cost of such a RAM addition, including whether one may have to buy two, matching, 256-MB RAM modules or just presumably one additional 256-RAM module, is another requirement. But before spending money for such an upgrade, one should first thoroughly investigate other matters to determine if other things are going to work and to determine what gain, if any, one could expect in computing speed with Sun Studio 11 and an additional 256 MB of RAM; then decide, based on such data, whether the purchase is personally worth the money or not. That's one motivation behind this posting; another motivation is for me to learn some things.
    Lastly I would like to here thank whoever was thoughtful enough to provide the Sun Download Manager (SDM) 2.0, which allows the pausing and resumption of the 207-MB download studio11-lin-x86.tar.bz2 for the Linux version of the Sun Studio 11! Using a slow, dialup, Internet connection like mine having a maximum speed of 28.8 kilobits/second, this makes it possible to download that file over a number of Internet sessions instead of having to have an uninterrupted, 19-or-more-hour Internet session. Besides the invconvenience of tying up one's telephone line for that long a time, it might be even be difficult to have such an uninterrupted Internet session for that long a time. I have at least started such a download using the SDM 2.0 potentially over multiple Internet sessions. Whether or not I carry it out to completion could depend on whether everything looks good with Sun Studio 11 for my particular situation. Thanks in advance for your help.

    Thanks for both of your postings here. I'm mostly trying to learn something here.
    From Maxim Kartashev: "For example, if one thread (or process, or lwp) frequently performs an I/O operation, then the other thread (process, lwp) can utilize processor resources to perform, say, some computations while first one waits for operation to complete."
    I think I might understand what you meant above. I guess lwp in the above context stands for light-weight process. And I think you may be talking about a potential gain in speed with just one, ordinary processor. I guess you meant that one program, or perhaps group of programs, could perform input/output processes at the same time it is performing calculations because different parts of the processor are being used in these two groups of processes. Then on "while first one waits for operation to complete" I guess you meant that if the input/output operations finish before the computations finish, then thread 1 that was performing the input/output operations will have to wait until the current computations ordered by thread 2 are complete before thread 1 can utilize the computational resources for its own computations; i.e., two threads can't use the same computational resources of an ordinary processor at the same time. How is my thinking so far, Maxim, right, partly right, or all wrong?
    Now if the above thinking of mine is right, then it appears that one could have some gain in speed doing things like you suggest with just one, ordinary processor. And if so, I imagine that the gain could be a maximum of a factor of two for a program that requires spending as much time in input and output as it does in computation; i.e., keeping both the computational and input/output resources working all of the time without the input/output resources waiting on the computational resources or vice versa. How is my thinking here?
    If the above thinking is correct, just for purposes of discussion with just one, ordinary processor, not a dual processor, and a program which does nothing but computations there would be no gain in speed using Sun Studio 11 and a Fortran compiler over not using Sun Studio 11. In other words, to increase the speed of computation one would have to buy a faster computer, buy parallel processing hardware for an existing computer and use parallel-processing software, or somehow figure out how to harness two or more computers to work for you at the same time with instructions from one piece or perhaps set of pieces of code set up for parallel processing using two or more different computers. The latter case would be a computer analogue or "two 'heads' are better than one," not human heads, but computers. How is my thinking here?
    Here I am still assuming that it is possible for one processor to be used to do two different kinds things at once. However, I don't see how one Fortran program could instruct two things to be done at once. This is because I have not seriously studied parallel processing, I suppose. That is I am used to a sequential set of instructions that proceed from top to botton down the lines of code; i.e., one instruction or line of code can't be executed until the line of code before it has been completely executed. That is the computing "world" with which I am familiar. So how about someone here teaching me with an example of parallel-processing Fortran code how parallel processing works, explaining what instruction or group of instructions tells the computer to execute input and computational instructions at the same time?
    Based on the encouraging information from one or more other people I have been able to use the Intel Fortran for Linux 8.1.024, if I remember correctly, in a computer with a 1-GigaHertz (GHz), Advanced MicroDevices (A.M.D.), Duron Processor. So this is at least one case where it is not essential to have an Intel processor to use the Intel Fortran Compiler for Linux 8.1.024.
    Is the Sun Fortran compiler free for personal use? And can it handle Cray-style pointers?

  • [Sun Studio 11] Classpath issue: com.mysql.jdbc.Driver not found

    Greetings !!
    I'm trying in an Applet to connect to a mysql database but the Applet fails everytime.
    It works perfectly in console environnement with the same javaconnector.
    I read this:
    +Classpath. Specifies the path to the classes that the IDE uses. By default the IDE uses its internal class path, which includes all mounted filesystems and various directories in the IDE's installation and user directories. The IDE ignores your CLASSPATH environment variable. Click the ellipsis button to display a property editor in which you can change the class path settings.+
    So my CLASSPATH environnement variable is passed by (as I redoubted) but I don't know why even specifying classpathes in Options/Building/Compiler Types/internal compilations/expert/class path the I got the same behaviour from the Applet... is there another way to specify that this Driver* is located in */usr/share/java/mysql-connector-java-5.1.7-bin.jar* ??
    I also added the jar files in Options/IDE configuration/System/File System settings/java librairies but same behaviour again... but when compiling the output windows indicates that it has finished jdbc... that's all, the Applet still can't open a connexion with the mysql server...
    Can somebody could explain to me how set up the IDE to use this javaconnector in order to connect to the mysql database ?
    Thank you for your time...
    Hurukan

    This forum is about the tools provided with Sun Studio, the development system for C, C++, and Fortran programming.
    Since your question is about Java, you are more likely to get a helpful answer in a Java forum. Go to forums.sun.com, and look under the Java heading.
    Or if your question is about Netbeans, try a forum at netbeans.org

  • Problem in compilation using Sun Studio 11

    Hello,
    We are migrating from a Solaris 8 to a Solaris 10 OS. At the same ttime we are also migrating from Ingres 2.6 to Ingres 2006. As a part of the creation of teh development environment, we are recompiling all the codes on teh new OS. WE have installed teh Sun Studio 11 compiler for this purpose. When compiling some C codes, we are getting the following error:
    "am_xxxxxxxx.c", line 2596: warning: statement not reached
    "am_xxxxxxxx.c", line 2778: undefined symbol: i8
    "am_xxxxxxxx.c", line 2778: syntax error before or at: )
    "am_xxxxxxxx.c", line 2858: undefined symbol: i8
    "am_xxxxxxxx.c", line 2858: syntax error before or at: )
    "am_xxxxxxxx.c", line 2889: warning: implicit function declaration: IIresnext
    "am_xxxxxxxx.c", line 2891: warning: statement not reached
    "am_xxxxxxxx.c", line 2920: warning: statement not reached
    "am_xxxxxxxx.c", line 2931: undefined label: IIfdF1
    "am_xxxxxxxx.c", line 2931: undefined label: IIosl9139
    "am_xxxxxxxx.c", line 2931: undefined label: IIfdE1
    "am_xxxxxxxx.c", line 2931: cannot recover from previous errors
    cc: acomp failed for am_xxxxxxxx.c
    The command used for compiling is :
    cc -xarch=generic64 am_xxxxxxxx.c
    We have exported teh following:
    LD_LIBRARY_PATH_64=/usr/sfw/lib/sparcv9:/usr/local/lib/sparcv9:/usr/lib/sparcv9:/usr/openwin/lib/sparcv9:/usr/dt/lib/sparcv9:/opt/SUNWspro/lib/v9:/opt/SUNWspro/lib/v9:/eu/ingad/ingres/lib:/opt/oracle/lib:/usr/lib:/usr/ucblib:/usr/openwin/lib:/opt/SUNWspro/lib/:/opt/lib/cobol/coblib
    LD_LIBRARY_PATH=/opt/SUNWspro/lib/v9:/eu/ingad/ingres/lib:/eu/ingad/ingres/lib:/opt/oracle/lib:/usr/lib:/usr/ucblib:/usr/openwin/lib:/opt/SUNWspro/lib/:/opt/lib/cobol/coblib
    CXXFLAGS=-fast -xarch=v9b
    CFLAGS=-fast -xarch=v9b
    LDFLAGS=-L/usr/sfw/lib/sparcv9 -L/usr/lib/sparcv9 -R/usr/sfw/lib/sparcv9 -R/usr/lib/sparcv9
    We are struggling with this issue for the last one week. Can someone please help me with this issue?
    Could this be because the 64 bit library files are not installed? Please help.
    Aneesha

    The LD_LIBRARY_PATH environment variables determine where the runtime loader looks for shared libraries when you run an application. It is unlikely to be the source of compile-time errors.
    I suspect that doing two major changes at the same time has resulted in undefined names and other problems, probably due to missing or incorrect header inclusion. If possible, make one change at a time, either compile the old code on the new OS, or the new code on the old OS, and get that to work first.
    Check the Ingress documentation to see if you need to make source code changes when upgrading, and follow any recommendations there. You might also need to take up this problem with Ingress tech support.
    Regarding LD_LIBRARY_PATH, the best advice is usually "don't set it at all". For more on this topic, see this article:
    http://blogs.sun.com/rie/entry/tt_ld_library_path_tt
    Just to eliminate this as a possible build problem, try removing LD_LIBRARY_PATH and LD_LIBRARY_PATH_64 from your environment when building the program. Then modify the build process to set the executable runpath (-R option) to include the Ingress or Oracle libraries that need to be searched. You don't normally want to point into /usr/lib or into the compiler installation area.

  • Error building using Coverity Prevent and Sun Studio 11

    We recently started using a static code-checking tool called Coverity Prevent. When we first started using it, we were on a very old verison of the Forte Compiler (Forte 6 update 2). Builds completed fine through Prevent. In the last month, we've upgraded to Sun Studio 11 (can't go to 12 because we're using Solaris 8). Now I can't get a build to run completely through Prevent. Prevent has a preprocessor that's a bit more strict than most compilers. I'm getting the following errors in a lot of places.
    "/vobs1/cots/ForteDeveloper/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 316: error #101:
    "istream" has already been declared in the current scope
    class _RWCLASSTYPE istream;
    ^
    "/vobs1/cots/ForteDeveloper/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 317: error #101:
    "ostream" has already been declared in the current scope
    class _RWCLASSTYPE ostream;
    ^
    "/vobs1/cots/ForteDeveloper/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 318: error #101:
    "ios" has already been declared in the current scope
    class _RWCLASSTYPE ios;
    ^
    "/vobs1/cots/ForteDeveloper/SUNWspro/prod/include/CC/Cstd/iostream.h", line 4: error #101:
    "istream" has already been declared in the current scope
    using std::istream;
    ^
    "/vobs1/cots/ForteDeveloper/SUNWspro/prod/include/CC/Cstd/iostream.h", line 9: error #101:
    "ostream" has already been declared in the current scope
    using std::ostream;
    ^
    I've googled a bit, and most of the solutions involve someone mistakenly putting "using namespace std" in a header file. I can't find any case where we do this in our code. One specific file that is failing includes one local header, and that header only includes <fstream.h> and <rw/cstring.h>. It seems like RW and std are conflicting with each other somewhere, but I can't figure out where. The compiler command looks like:
    /vobs1/cots/ForteDeveloper/SUNWspro/bin/CC -xildoff -instances=static -mt -g -fsimple
    -xlibmil -xO3 -xtarget=ultra -DUSE_VFU_LL_C -DXRT -KPIC -library=rwtools7_std -x
    libmopt -DRW_MULTI_THREAD -I/vobs1/cots/rogue/workspaces/SOLARIS7/SUNPRO50/12d -c c4i_file_stream.cpp
    We're still pointing at an older version of RW for the DBTools libraries (rebuilt using the compiler's internal Tools++), but we're using the compiler's internal Tools++ headers and libraries for everything else.

    It sounds like Prevent is not processing the #include directives, or possibly some other preprocessing directives, the same way as the Sun C++ compiler.
    The C++ Users Guide documents how #include directives are processed, and in particular the order in which directories are searched.
    [http://docs.sun.com/app/docs/doc/819-5267/bkaso?a=view]
    If Prevent provides similar documentation, you can compare the docs. If you see a difference, maybe Prevent has some options to control the behavior to make it work like the Sun compiler.
    Note: The CC driver passes some -I directives to the C++ compiler proper (ccfe) that do not appear on the CC command line that you write. The exact -I options depend on other options on the command line. Possibly Prevent is not using the same set of implicit -I directives.
    If you can't resolve the #include directive issue, you might need to talk to Coventry tech support.
    We at Sun are happy to work with 3rd-party vendors to help them get their products working correctly on Sun.

  • Including Header files

    Hi
    Am a mainframe guy and new to these stuffs.
    Now ,I want to compile a C++ program in Sunstudio.
    My question is how & where to add the header files ?
    What is the extension to be used for the header files ?
    Please someone help me in this regard.

    [I had replied to this yesterday but it didn't appear to show up in the thread]
    The header file is added to the 'Header files' in the same project For Sun Studio, I am pretty sure that the header files listed in the project
    is not used by the compiler to find the header files.
    That list of header files is merely a convience for the programmer
    as a reference and to quickly find and open header files used in the project.
    You need to tell the IDE which directories to search for header files
    (that are not standard header files)
    I am presuming that the header file(s) the compiler is complaining about is not a standard library header file,
    but instead is a header file associated with the source code you are compiling or are associated with
    a 3rd party library required by the program.
    The #include semantics, as ralphw mentioned, can be a little complex.
    As a quick follow up to ralphw's response
    generally #includes of the form
    #include "foo.h"
    indicates that the header file is in the same directory as your project source files.
    Normally the compiler can find this file with some simple seach heuristics so
    I suspect the offending include line is of the form:
    #include <foo.h>
    The <> brackets indicates that the header file is in a directory to be specified
    in one of the listed include directories.
    Include directories may be intrinsic to the compiler implementation
    such as standard libraries and/or libraries added by the compiler vendor;
    or they may be header files for 3rd party libraries or your own libraries
    stored in some directory other than the application program you are compiling.
    For 3rd party libraries or your own libraries, provide a list of
    directories to seach for included header files.
    for command line mode, in almost all c/c++ compilers these directories are listed with
    the -I command line argument.
    In SunStudio 12, you list the include directories in
    your project properties / Parse configuration / Sun C++ compiler / General / Preprocessor definitions
    If you have further questions on this, it would be helpful to know
    if you are attempting to compile some preexisting code
    or are you creating code from scratch.
    (It sounds like you are compiling preexisting code that
    presumably has been compiled correctly in some other implementation
    and are trying to port it to Sun Studio.
    If this is the case, it sounds like you simply need to add the
    path of the directory containing the offending header file to
    this list of include directories.)
    It would also be helpful to know the fully qualified
    file name of the offending .h file,
    and the form of the #include line in the file that is being compiled.
    If the #include line is of the form
    #include <dir/foo.h> then you need to add the
    path of the 'dir' parent directory to the include directories list.

Maybe you are looking for