Using GDB to debug a code compiled with Sun cc

When using gdb to debug C code compiled with Sun's cc, the step-into doesn't work, i can only "step into" a function if i put a breakpoint on it. Also, sometimes if i set a breakpoint on a function name, like "break foo", gdb indeed breaks when foo is reached, but without showing the source code (this i could not reproduce with a small demo program).
I am using Sun Studio 12 on a SunOS 5.10 sun4u sparc machine.
My demo program is:
#include <stdio.h>
#include <strings.h>
void func1(str)
char str;
printf("This is the first line\n");
printf("STR: %s\n",str);
int main()
char str[10];
strcpy(str,"lalalal");
printf("Calling func1\n");
func1(str);
printf("Returned from func1\n");
The compilation command i run is:
cc -c -g step_into.c -o step_into.o
cc -g -o step_into step_into.o
When running the program with gdb, the "step" command does not step into func1, but runs it like "next".
I know there's the dbx debugger, but if there's a way to fix this with gdb - it is much preferable for us. Switching to dbx is not really feasible for us.
Regards,
Yael

Hello Yael,
I tried your example on my laptop (OpenSolaris x86/x64) with Sun Studio 12 update 1
and GDB 6.3.50 - it works properly:
$ gdb dist/Debug/SunStudio-Solaris-x86/forum_c_20091230
GNU gdb 6.3.50_2004-11-23-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-pc-solaris2.11"...
(gdb) break main
Breakpoint 1 at 0x8050a87: file src/args.c, line 15.
(gdb) run
Starting program: /export/home/nikm/SunStudioProjects/Forum_C_20091230/dist/Debug/SunStudio-Solaris-x86/forum_c_20091230
Breakpoint 1, main () at src/args.c:15
15         printf("Calling func1\n");
Current language:  auto; currently minimal
(gdb) next
Calling func1
16         func1(str);
(gdb) step
This is the first line
func1 (str=0x80477ba "lalalal") at src/args.c:7
7         printf("STR: %s\n",str);
(gdb) Could you please download and try Sun Studio 12 update 1?
It is available for free. Here is the web page:
http://developers.sun.com/sunstudio/
BTW, which GDB version do you use?
I'll try it on a sparc system and let you know.
Thanks.
Nik
P.S.: there is a typo in the source code:
void func1(str)
*char *str;I think it should be:
void func1(char *str)Probably a copy-paste problem.
Please use "CODE" mode when you copy-paste source lines (selected text, press 'CODE' button).

Similar Messages

  • Problem while using GDB to debug a binary generated with Sun's CC compiler

    When I compile any .cpp file with CC compiler using -g option:
    CC -g test.cpp
    and use GDB to debug, it works fine. However if I compile in two steps as in:
    CC -g test.cpp -o test.o
    CC -g test.o
    GDB complains and says "Debug Symbol not found"
    THis is definately not correct, however not sure if its a GDB Bug or SunCompiler Bug. I've checked on both forums however could not fin any such bug reported? Is it that I am missing on something ?
    Regards,
    Sumit

    Just in case it is not a misprint: first command for compilation in two steps is weird -- it's missing -c (compile) parameter. If it's not there, test.o would be executable, not object. From the other hand, linker seem to treat that as an error producing no output, so I consider lack of -c as an artifact of forum post.
    Now, to gdb complaints... I just tried to compile a tiny program using CC 5.9 (from Sun Studio 12) and debug it with gdb 6.4 (from Nexenta repository) and 6.6 (built from source). First one (6.4) didn't recognize a.out as an executable, second one (6.6) read a.out fine and I was able to debug it.
    So the point is it's all about versions. I don't know much about [recent] changes in gdb, but Sun Studio C++ compiler has only recently switch it's default debugging information format to DWARF, which gdb should understand. Previous version (5.8 from Sun Studio 11) produced stabs by default and this format was known to be incompatible with what GCC produces for GDB.
    If you have Sun Studio 11 (or earlier) you can try switching to dwarf by adding -xdebugformat=dwarf to C++ compiler command line. But if at all possible, I'd recommend you to upgrade to Sun Studio 12 (and probably latest gdb) and start from there.
    Also, dbx should be able to debug executables produced by Sun Studio compilers in any way and the transition from gdb to dbx might be easier, especially if you're on Solaris where all power of dbx unveils. Check out this table, it should help you to start using dbx:
    http://blogs.sun.com/dbx/entry/gdb_vs_dbx_commands_mapping
    And remember there's 'gdb on' command, which makes dbx accept some gdb native commands.

  • Will 1.3 code compiled with 1.4 run on JVM/JRE 1.3?

    Will byte code created with j2se 1.4.2 only run on JRE 1.4.2 and forthcoming versions even if my java source code only contains classes that were available already in version 1.3?
    If so, is it a good idea to install and use the earliest version of java compiler that will digest my code in order to create an applet that is accessible to more users without downloading the latest JRE/JVM?
    Grateful for any help,
    /Sven

    Byte code generated by 1.4.2 javac will run on 1.2 and up (assuming that coming versions keep backwards compatibility). You might want to have a look at javac's cross-compilation capabilities (aka -target switch):
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html#options
    HTH, Markus

  • SOLVED: SQL Developer Code Compilation with warnings

    Hi, I think I found one bug in sql developer.
    I have one pl/sql package, that contains a lot of code. In the previous SQL Developer releases (prior to 1.2) when you compile the code, first appears the errors and then the warnings. Because of some type conversion in my sql statements i have more than 20 warnings, and now i cannot see the errors (i think that they will appear if i'm able to increase this "20 messages" limit). I was searching for some option in SQL Developer to increase the number of displayed warnings or errors (or turn off the warnings) but i cannot find such parameter.
    Is this a bug, or i'm missing something ?
    PS: because of this, i'm not able to compile my package with sql developer, and i'm compiling via sqlplus.
    null

    Yes, you're missing something: the forum's search feature.
    See:
    compile with many warnings causes compiler dont show errors correctly
    Compiling an invalid packagebody without errormessage
    SQL Developer says Compile sucessful but it is not
    K.

  • Code compiled with licensed FB Premium stops automation with error.

    My setup:
    Windows 7
    Flash Builder 4 Premium, Version 4.0 (build 272416), volume license
    SDK 4.5.1, Flex 3 compatibility mode
    RIATest 4.3, RIATestAgent3.swc
    See the existing thread on this in the RIATest forum. I'm "nekobasu" there:
    http://www.riatest.com/forums.html?func=view&catid=9&id=4136#4136
    Here's what I do:
    I compile our application code in Flash Builder, including the RIATest and Flex automation SWCs. Here are the compiler flags:
    -include-libraries  "C:\Program Files (x86)\RIATest 4\agent\RIATestAgent3.swc" "C:\Program  Files (x86)\Adobe\Adobe Flash Builder  4\sdks\4.5.1\frameworks\libs\automation\automation.swc" "C:\Program  Files (x86)\Adobe\Adobe Flash Builder  4\sdks\4.5.1\frameworks\libs\automation\automation_dmv.swc" "C:\Program  Files (x86)\Adobe\Adobe Flash Builder  4\sdks\4.5.1\frameworks\libs\automation\automation_agent.swc"
    Everything compiles fine. So, I launch RIATest, then run my automated test against the freshly compiled application. My test automatically launches our application in a browser.
    The automated tests proceed normally, but after a while, a dialog/alert/message appears in our application stating, "License not present. With the trial version only limited replays are allowed." I'm using only legitimate, legal, valid licenses for Flash Builder, RIATest, and Windows. I'm not using the trial or limited version of anything. According to the folks at Cogitek, and from what I've found by searching, it is an error thrown by Flash/Flex; not by RIATest.
    This problem is preventing me from doing my job.

    Hello,
    It may be bcz of flex automation API
    Please see this link:
    http://www.gorillalogic.com/forumpost/1388
    Thanks and Regards,
    Kanchan Ladwani | [email protected] | www.infocepts.com

  • X99S GAMING 9 AC Not booting - Debug 94 code - Issue with GTX 980 SLI in WoW

    Hello, I bought the X99S GAMING 9 AC motherboard but have ran into some issues.
    The computer won't boot when I put my second MSI GTX 980 Gaming 4 GB card in the last PCEI 3.0 port (PCIE port 5) and I get the debug LED message 94 on the motherboard. I have a SLI setup.
    The first card I have in the second PCIE 3.0 port due to the Noctua U14S CPU fan takes up space for the first slot. So I have been running my grafic cards in PCIE slot 2 and 4 with some issues.
    First the card in slot 2 gets really warm over 86 celsius. And second: SLI runs really poorly in World of Warcraft. I get a lot higher performance with just one card activated. I am not sure if it's cause I am not running my cards in the recommended PCIE 3.0 ports or because WoW has some issues with SLI, but I heard other people have no issues at all with WoW in SLI.
    I got the same issue with 3Dmark firestrike, the cards perform really poor in SLI. I get higher score with SLI turned off..
    Though SLI seems to run pretty well in 3dmark 11 and Diablo 3 Reaper of Souls.
    But the main issue right now, is that the computer won't boot with the grafic cards in PCIE port 2 and 5. The solution to run them next to each other is not good, cause it gets really hot and I get bad performance in WoW and Firestrike.
    Picture of my setup before I switched places with the grafic cards as you can see, it is really tight:
    Any upcoming bios updates (got v1.3) that will solve this issue on the horization? Hopefully this get sorted out really soon..
    My whole computer setup:
    Intel i7 5820K | MSI X99S Gaming 9 AC (bios 1.3) | SLI MSI GTX 980 Gaming 4GB | Samsung 850 Pro 512 GB | WD Red 4TB | G.Skill Ripjaws DDR4 3000MHz 4x4GB | EVGA SuperNOVA P2 1000W | Noctua NH-U14S PnP | Fractal Design Define XL R2 | 5 Noctua NF-A14 PWM 140mm fans | Windows 7 Pro 64 bit

    You must use the recommended PCIE slots as the manual says for your CPU type, PCIE #1 and PCIE #4 if I remember, just open the manual :P for optimal 2Way SLI, also your 5820k will limit to 28 pcie lanes only if you plan to add more vgas...the other problem is your giant CPU air cooler blocking PCIE#1, do a favor to yourself, buy a watercooler for your 5820k and your problems are gone, add some overclock in your system, low noise and better temps.
    Here I use 3x980 in SLI with X99S Gaming 9 AC, going soon to WC the VGAs with EK blocks.....3way is far more temperature critical than 2way spaced one.
    Cheers

  • Netbeans 6.1 C++ / SunStudio12 compiler / Solaris 10 - can I use GDB?

    Hello,
    My team dev stack is Solaris 10 and compilers that come with SunStudio12 (latest patches installed). We have been evaluating Netbeans 6.1 and it runs really nice. We like features, we like performance.
    Now, can we use DBX in Netbean6.1 (C++ module) or even better, can we use GDB to debug binaries made with SS12 compiler?
    I was looking for an answer on the forum but I'm confused. Can sb clarify this for me?
    Thanks a lot!
    Regards,
    Przemyslaw Owczarek
    Programmer / Analyst
    Sabre Airline Products & Services

    Some facts, not in any particular order.
    - A version of sunstudio which runs on NB 6.0 has been available since Feb.
    See the sticky articles at the beginning of this forum.
    - NB 6.1 C++ pack only works with gdb.
    - You can try gdb with sunstudio12 compilers but it's unlikely to work
    well since debuggers and compilers work best when used as a matched pair.
    - A sunstudio based on NB6.1 will be available sometime in the early summer.

  • Debug RMI - Service with Sun One Studio

    Hi, I'm trying to debug an rmi - service with sun one studio 4u1 (win nt 4.0). To do so I start the rmid daemon via
    rmid -J-Xdebug -J-Xnoagent -J-Djava.compiler=NONE -J-Xrunjdwp:transport=dt_shmem,server=y,address=dime,suspend=n -J-Djava.security.policy=%POLICY% -log %RUNDIR% >%RUNDIR%\server.log
    Then I register the service to the daemon and attach the debugger in the studio to the address "dime". This seems to work, but the service does not stop at breakpoints set in the debugger.
    Can someone help?

    I set the breakpoints at false line numbers (method heads). Now It works fine (breakpoints, watches, ...). The only thing is, that the current line is not visible in the source (although the line number is displayed correctly).

  • Compiling with two CPU cores

    Is it possible to compile with two or more CPU cores or just with one?
    As it seems, javac uses only one core when I compile with the Ant tasc "javac".

    I don't know of a way to do this, but I've never seen a need to do this either, since java compilation is never too slow for me (even for huge projects).
    If you seriously need faster compilation, you could switch to a faster compiler (jikes is seriously fast, ecj (the eclipse compiler) is even faster, sometimes).
    You might also try compiling seperate (independent) parts of your sourcecode with explicit parallel constructs in ant ('though I don't know if it's worth the overhead).

  • Trouble viewing disassembly with Sun Studio 11

    I was wondering how someone can bring up a window with a program�s disassembly when debugging a C program with Sun Studio 11. (SPARC). I would like to be able to set breakpoints at specific assembly instructions using Sun Studios�s GUI interface rather than using typed commands with DBX. I would also like to know how to get a window that shows the current value of the registers. Any help would be greatly appreciated.
    Chris

    Oops, it appears that you can't set breakpoints
    through Disassembler window, it just shows the code
    and current position within the code, that's all.It
    gives you better view of context than dbx's 'dis' or
    'list -i' commands, though.Actually you can set breakpoints through Disassembler window:
    - select an address, click right mouse button to open context menu
    - choose "Set Breakpoint"
    If you need this feature, please file an RFE (Request
    For Enhancement) through bugs.sun.comThe Disassembler window has been significantly improved between
    EA1 and FCS. Now users can set and delete breakpoints using the
    same way as they do in source file - click on the left gray area (toggle
    breakpoints). Also Disassembler window has "Step Into", "Step Over",
    "Step Out" and "Run To Cursor" buttons.
    Thanks,
    Nik

  • Hello friends , I have started with writing  c code on mac using xcode .....but one of my friend told me to use gcc for coding. He started with terminal And used a text editor to compil the c program on his mac.. So please tell me how to do the same

    Hello friends , I have started with writing  c code on mac using xcode .....but one of my friend told me to use gcc for coding. He started with terminal And used a text editor to compil the c program on his mac.. So please tell me how to do the same and is there any pre stalled text editor on mac if yes then where and if no then which text editor to install and how to install gcc...please help me out thanks in advance !!!

    I have started with writing  c code on mac using xcode .....but one of my friend told me to use gcc for coding.
    Why? If you are developing and writing code on a Mac why would you not use the tools Apple has given you? And Xcode, once you get use to it, is a very nice development environment that will make you life a whole lot easier.
    If you insist on using an editor and the terminal I would recommend  Emacs   but it has a long learning curve so  something like TextWrangler  will work too.
    As for the compiler if you have Xcode installed install the command line tools and you will be able to compile from the terminal.
    good luck

  • Copied objects are compiled with debug True

    I had an issue with copied packages/triggers/procedures that when they were copied showed up as compiled with debug status.
    My sql developer client has a default setting of compilng PL/SQL code with optimization level = 0 , while our database has a default = 2.
    When modifying this level and setting it to 0, the debug flag is turned on, although not specified in the sql developer client)
    preferences -> database -> PL/SQL -> Optimization Level = 2
    select * from v$parameter where name like 'plsql%' returns
    888         plsql_debug      1             FALSE    FALSE
    889         plsql_optimize_level     3             2             2 after setting the level to 0 the same query returns:
    888         plsql_debug      1             TRUE     TRUE
    889         plsql_optimize_level     3             0             0this compile with debug behavior is shown on oracle 10 and 11 databases.

    I also have sqldeveloper version 3.2.20.09 and look up the value for optimizer in the preferences menu via preferences -> database -> PL/SQL (just as in my first message)
    BTW I can still reproduce this issue (and 15 other dbas and developers at where I work) on both oracle 10 and 11.
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    "CORE     10.2.0.4.0     Production"
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    and
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE     11.2.0.2.0     Production"
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    BTW We've been using sqldeveloper here since version 2.x. We found a workaround by setting the value for Optimization Level to 2, although you might not reproduce the issue, I suggest to keep it for others, although it seems not many others experience this issue.

  • Compiling with debug option

    How to give user Compiling with debug option, i have try to by giving grant debug any procedure and debug connect session but it failed.
    Any ideas?
    Edited by: rootsman on Jul 15, 2010 12:00 AM

    Post the error screenshot..
    eg:
    grant DEBUG CONNECT SESSION to username;
    grant DEBUG ANY PROCEDURE to username;
    Check the below explanation:
    DEBUGGING:
    DEBUG CONNECT SESSION
    Connect the current session to a debugger that uses the Java Debug Wire Protocol (JDWP).
    DEBUG ANY PROCEDURE
    Debug all PL/SQL and Java code in any database object; displayinformation on all SQL statements executed by the application
    Note: Granting this privilege is equivalent to granting the DEBUG object privilege on all applicable objects in the database.

  • How can I allow user to customize the functionality of program at runtime? (not using runtime code compilation)

    Using .NET Framework 4.0 what features are available that would allow to accomplish something very modular and user customizable, like depicted in this XML.  Where I define specific base operations like Get() and Put() methods that operate on strings. 
    And allow the user to add and remove those or mix and match them in a way that they basically design their own run time functionality that suits them.  So they just create their own 'Operation' and fill it with the operations they want to perform on some
    incoming data type, in this case it is a string - with substring and insert methods. 
    EDIT - Assuming end user is non programmer and Dynamic Code compilation is not an option.  I have an idea maybe using dynamic keyword, but not sure if it makes what i suggest possible.
    <Operation Name="GetValues">
      <Get id=123"  FromIndex="2" ToIndex="23"/>
      <Get id="234"  FromIndex="3" ToIndex="5"/>
       <Output Path="C:\" Filename="testOut.txt" Append="true">
         <Format>
              <Result id="123"/> , <Result id="234"/>
         </Format>
       </Output>
    </Operation>
    <Operation Name="InsertValue">
      <Put AtIndex="5">stringtoinsert</Put>
      <Put AtIndex="36">anotherstringtoinsert</Put>
    </Operation>

    Hi sjs1978,
    I am not familiar with dynamic code, and I made a research about it.
    >> I'm aware of dynamic code compilation, but that requires user to input pieces of code.
    Did you try to store the pieces of code into a file and call the code when the dynamic code compilation requires user to input code?
    In addition, I found links about using code provider to compile a source file, and the links below might be useful to you.
    # Dynamic Source Code Generation and Compilation
    https://msdn.microsoft.com/en-us/library/650ax5cx(v=vs.110).aspx
    # CSharpCodeProvider Class
    https://msdn.microsoft.com/en-us/library/microsoft.csharp.csharpcodeprovider(v=vs.110).aspx
    # Is it possible to dynamically compile and execute C# code fragments?
    http://stackoverflow.com/questions/826398/is-it-possible-to-dynamically-compile-and-execute-c-sharp-code-fragments
    Best Regards,
    Tony
    Help each other

  • 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

Maybe you are looking for

  • How can you print a single page of a multipage report.

    I am using Office 2003 pro, the LabVIEW Report Gen Toolkit, LabVIEW 7.0, and Windows 2000. I have created a lengthy report with the first page being a summary. I would like the user to be able to select; print the entire report, or just the first pag

  • ITunes Episode Description not showing on iPad

    I've made a series of short videos to show as episodes of a TV show in iTunes but the episode description that I've put into iTunes does not show on the iPad once sync'd. I have also got a TV series that I bought from the iTunes store and on this, th

  • Alu 12" Powerbook G4, shuts down instead of sleeps

    Hey all, recently (the last few days), my powerbook, instead of going to sleep when the battery juice runs out, is shutting down hard (as if you were holding down the power button) when the battery is down in reserve power. It's happening when the ba

  • How much room does a game or app take up?

    I was wondering how much room on an ipod a game or app takes up. If you know it would be awesome if you could let me know. Thanks.

  • Select Members in Data Forms via UDA or Substitutionvariable

    Hello, I want to select members in row or colum dimension of a Planning data form via an UDA. But it is only possible to select members via hierarchy (member, sibling, parent,...). Is there a possibility to select members via UDA? What I tried is: 1.