How to run lint in the Sun Studio 12 IDE

I'm a newbie to the Sun Studio IDE, and I can't find a way to run lint in the IDE. The C compiler does not give many warnings (unused variables, etc), and lint does, so I want to get the lint diagnostics within the IDE.
I can run lint from a terminal, but that is very cumbersome when you have many source files.
Thanks

I've inherited a large project and need to run Lint on the code. I came across this thread doing an internet search. This is my first time using SunStudio, so I'm pretty clueless with every aspect of getting this code through Lint.
I have been able to get the code compiled and everything is imported correctly into Sun Studio, though I'm not 100% sure how I did it.
Can somebody explain the above commands for me to add into the Makefile, so I can run Lint in the IDE? Or, explain a better way to get Lint running on the code in the IDE?
Thank you for your help, in advance.

Similar Messages

  • Pros and Cons of the Sun studio IDE

    Hi all,
    I have played a bit with the Sun studio now and I want to give you some feedback.
    First of all, my background. I am working in a team with about 20 developers, developing a C++ application on Solaris.
    Last time I stumbled across an installed Sun Studio 9 and gave it a try.
    Initially I was verry impressed by the great debugger- and analyzer frontends, they look nice and work well.
    After using the debugger from time to time and really enjoyed it, I thought about testing the studio for all-day work.
    So, here are my impressions and the things that keep me away from using it.
    1. The default editor isn't very usefull. For example, I missed regular expression search (and replace) and the feature to mark columns. Furthermore I really missed syntax highlightning for some other file types like sql- and config files, or even the feature to create my own. By the way, the predefined highlightning for C-files is also a bit too simple.
    2. I think the external editor plugin is a bit buggy too, because sometimes I have trash in files that I have edited before. But this can also be my fault, because I use gvim and some editor macros to do sccs-actions. I think the problems occur mainly if I use this macros. In every case the external editor is not really an alternative way for me.
    2. In our team we are using teamware as version-control tool and it does a really good job. So for Workshop 7 we have some editor macros and the teamware-tools from version 6. In the studio I have found the feature to create my own version control profiles, but this is a hard way with many tries and errors. For example I have never accomplished it to set further status information in the explorer window, it's 'Local' all the time.
    3. The studio needs very much memory, I think about 250 MB or so. This is impressive, especially if all the 20 people in our team would start sunstudio. I have found a hint somewhere in the docu that the studio can work in a client-server mode over a VNC, but I haven't tried it because I don't know what the admins would say if I start running my own VNC.
    4. After I have also tried eclipse with the cdt plugin, I really began to like the source-browser and missed it in the studio.
    5. All in all I hoped that the newest Sunstudio got a netbeans update, because some of the plugins that exists only for newer netbeans-versions would also be useful for me and my team. But, at least the latest linux-preview is also based on netbeans 3.5. Maybee do you have plans to update netbeans within the studio?
    Ok, that's all for now ;-)
    Please don't understand me wrong, I really like some features of the studio, and it's a great improvement compared with the workshop version 6 that I used before. But, at all for me the studio is still not useable in all-day work.
    P.S.
    At work I have only access to Sun studio version 9, at home I have also tried version 11, that is the reason why I mixed the version-numbers sometimes ;-)
    With kind regards,
    Maaz76

    1. The default editor isn't very usefull. For example, I missed
    regular expression search (and replace) and the feature to
    mark columns. Furthermore I really missed syntax highlightning
    for some other file types like sql- and config files, or even the
    feature to create my own. By the way, the predefined highlightning
    for C-files is also a bit too simple.The current IDE we're working on is based on a current NetBeans
    and has regular expression search (and replace). I'm pretty sure
    NetBeans 5.0 (and presumably later versions) has syntax highlighting
    for sql (its got an "SQL Editor" module which I'm guessing has the
    highlighing you're asking for).
    We're also working on many new editor features not in current
    Sun Studio IDEs. These are mostly parser based stuff like code
    completion, code folding, and a class viewer.
    2. I think the external editor plugin is a bit buggy too, because
    sometimes I have trash in files that I have edited before. But this
    can also be my fault, because I use gvim and some editor macros
    to do sccs-actions. I think the problems occur mainly if I use this
    macros. In every case the external editor is not really an alternative
    way for me.Its very difficult keeping sources in synch between netbeans and
    an external editor. If you can give us a repeatable scenario for
    failure we can take a look.
    2. In our team we are using teamware as version-control tool and
    it does a really good job. So for Workshop 7 we have some editor
    macros and the teamware-tools from version 6. In the studio I have
    found the feature to create my own version control profiles, but this
    is a hard way with many tries and errors. For example I have never
    accomplished it to set further status information in the explorer
    window, it's 'Local' all the time.We'll definately have sccs support in the next release. TeamWare
    support depends on the status of TeamWare. Sun end-of-lifed it
    4 years ago. As long as its EOL'ed, we won't support it. But if it
    were officially brought back, we'd (most likely) support it.
    3. The studio needs very much memory, I think about 250 MB
    or so. This is impressive, especially if all the 20 people in our team
    would start sunstudio. I have found a hint somewhere in the docu
    that the studio can work in a client-server mode over a VNC, but I
    haven't tried it because I don't know what the admins would say if
    I start running my own VNC.The VNC model shouldn't help on memory. How do you use the IDE
    now? Do each of your 20 developers have Solars desktops? I'm
    guessing they don't since you're talking about 20 users on one
    system. The VNC approach runs all 20 IDEs (assuming all 20
    developers are concurrently running the IDE) on the server machine.
    So VNC won't help in that case.
    On the other hand, if the 20 developers have Windows PCs on their
    desktop then the next IDE should help substantially. We're working
    on having the IDE run locally on your desktop, and do remote building
    and debugging on your Solaris server. This puts most of the IDE
    overhead on your desktop rather than the server. This should be
    a much better model for multi-user development where Solaris
    developers don't have Solaris desktops.
    4. After I have also tried eclipse with the cdt plugin, I really began
    to like the source-browser and missed it in the studio.We're planning on some browser capabilities. Some are in the
    planning stages and others aren't even that far along. But we are
    getting repeated inquiries about a source browser.
    5. All in all I hoped that the newest Sunstudio got a netbeans
    update, because some of the plugins that exists only for newer
    netbeans-versions would also be useful for me and my team. But,
    at least the latest linux-preview is also based on netbeans 3.5.
    Maybee do you have plans to update netbeans within the studio?Well, each major netbeans release has had so many internal
    changes its been difficult keeping up. Our next release is planning
    to be much more in synch with NetBeans releases. We're doing
    current development on the NetBeans trunk (currently thats targeting
    the NetBeans 6.0 release).
    Gordon

  • Welcome to the Sun Studio General Discussion!

    Ask questions or seek answers to topics that do not fit other Sun Studio forums, such as installation, upgrading to recent Studio versions, IDE wizards, and documentation.
    In addition, visit the Sun Studio developer site for technical articles, code samples, knowledge base and more:
        http://developers.sun.com/sunstudio
    Finally, make sure you have the latest version of Sun Studio as well as appropriate patches:
        http://developers.sun.com/prodtech/cc/downloads/index.html

    Here is content of my .cshrc file:
    # @(#)cshrc 1.11 89/11/29 SMII'm sorry, it seems like I wasn't clear about what I meant.
    The command "sunstudio" is itself a shellscript. It isn't a binary executable. In Sun Studio 10 it is a bash script. It's first line is
    #!/bin/bash
    This means that when it is passed to the exec system call, the kernel searches for /bin/bash, and runs bash with its input connected to the script. If you don't have bash on your system, you will get the message you described (although there could be other reasons for getting that message).
    You need to check whether /bin/bash exists on your system, and if it doesn't, install the appropriate package from the Solaris companion software CD. I believe the package is SUNWbash.
    --Terry.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Getting used to the SUN studio

    Hey,
    Forgive my newness to the sun studio, but I have problems executing applications using MIDP 2.0, using the Studio 4 Update 1 ME. I can get the tutorials to compile and execute fine, but when I try to execute anything that uses MIDP 2.0, I always end up with a classnot found exception. I cant even get J.Knudsens muTank example to execute.
    The apps all compile fine, it is just when the apps are launched. Is there something simple I am missing? I have mounted the midpapi.zip, mmapi.zip * wma.zip files to include the game API stuff, but my problems are solely upon launch.
    Cheers,
    KG.

    You need to have MIDP-2.0 emulator mounted in registry and selected as default one, otherwise you are not able to it. Mounting jar's on classpath is not enough for execution. Otherwise, if have correct emulator mounted and selected, you can compile/run without mounting anything.

  • How to run form in the background from command line

    please can anybody tell me to
    how to run form in the background from command line
    vishal

    Ummm....Oracle Forms is a foreground runtime kind of thing. What you want is a database procedure (or an OS utility - it depends on what sort of processing you want to do in the background).
    Cheers, APC

  • How to Run scenario from the web using HTTP web page?

    Hi guys
    Please let me know How to Run scenario from the web using HTTP web page?
    Regards
    Janakiram

    Hi Janakiram,
    ODI provides web based UI for running the scenarios using Metadata Navigator (read only of ur ODI components) and Lighweight designer (u can edit the mapping here).
    Please explore how to install metadata navigator in ODI and have a look at ODI Setup document for more information.
    Thanks,
    Guru

  • How to run applets on the internet?

    I want my applet class run on the Internet but not in the Internet browser but instead maybe in appletviewer or something else...For example in java.sun.com the chatroom is an applet and it doesn't run in browser as I understand.because when I clicked on the exit button on the right most side, it understands that I clicked on it which means that it has got window events(e.g. windowclosing) which belongs to appletviewers.But I think internet browsers doesn't have such a capability to understand these windowevents.So the question is: how can I run my applet over the Internet without running it on the browser? or how I can make the browser understand that the windowclosing event occured on it?
    thanks for your attention??

    what chatroom are you talking about ?

  • Can I run Servlets in the Sun App Server?

    I am trying to run a servlet. I am not sure if I can run the same using the Sun app server. any help to clarify the following queries would be appreciated.
    1. Should I have to specify a path in the environmental variables?
    2. Is there a web site that tells me the same with respect to running the servlet on a Sun app server.
    Thanks in advance.
    --Srikanta                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    I'm not sure what you want in regards to question, but I can assure you that you can run servlets in S1AS7. My recommendation is to just package your servlet into a web archive (war) and deploy it. You can deploy it via the commandline (asadmin) or the web based administrative client (likely http://localhost:4848). For more information on this I suggest reading:
    http://docs.sun.com/source/816-7150-10/index.html
    You must likely want to read the section on assembling and deploying web applications.
    Matt Bauer

  • How to run clientgen from Workshop 9.2 IDE

    Is there a way to run clientgen for wsdl from within IDE, rather than creating your ant script and running it from dos prompt.
    -Anil Patel

    Hi Andrey,
    Are you on Workshop 9.2.1 ?
    The client jar gets created only during publish. Hence if you have deployed your application or ejb to a running server instance and you choose to publish the app, the jar will be created in the root of your project, assuming you have left default values.
    You can run a quick test by right clicking the project and selecting WebLogic EJB
    In that screen uncheck use default setting for the client jar value and specify your own jar file name
    with the server running, publish the app to the server.
    the jar should be created in the root of your project.
    you can always specify the fullpath to the jar too
    let me know if this works for you
    cheers
    Raj

  • How to Run XSQL on the web

    I am having problems running my .xsql file on the web using JRUN. I have set the classpath and was able to run the xsql file from the command line and also was able to get the xml output. But here is the error that i get when i try to execute the same file on the web using the below URL.
    http://someserver.com/servlet/xsql/demo/helloworld/helloworld.xsql
    500 Internal Server Error
    xsql:
    Could not load servlet
    Could any one give some pointers about how to set up environment in JRUN on Solaris5.7 to run the xsql.

    Hi Steven,
    I read the installation / configuration documentation at http://technet.oracle.com/tech/xml/xsql_servlet/htdocs/relnotes.html#ID175 . It is very helpful. I ahev a question about how to map .xsql in JRUN as i dont have admin permissions on JRUN. Is there way i can setup in my environment or in the code itself. Please let me know.
    Thanks,
    Shivaji.

  • How to run cfstoredproc in the background

    Hi,
    I'm looking for a possibility to run an oracle procedure via cfstoredproc
    and continue my CF-page immediately afterI starting the procedure.
    I need to do that because the procedure sometimes needs more than 10 mintues  so that I get
    a timeout.
    Does anybody has an idea?
    regards Claudia

    I tested cfthread, but still I have the same problem like before(page timeout).
    Here is what I do:
    Start Database procedure to create a data export file. It will be saved on the server.
    <cfthread  name="t1" action="run" priority="normal">
    <cfstoredproc procedure="exp" datasource="test" returncode="no" >
        <cfprocparam type="in" dbvarname="id"  cfsqltype="cf_sql_integer" value="#url.id#">   
    </cfstoredproc>
    </cfthread>
    When the procedure finished, (this can take some minutes), the export file is opened.
    If it is a big export I get a page timeout. If the export is fast enough a popup window opens to download or
    open the file.
    <cfthread  name="t1" action="join"  />
      <cfheader
        name="content-disposition" charset="utf-8"
        value="attachment; filename=export.txt"
        />
    <cfcontent type = "text/plain" 
        file = "export" 
        deleteFile = "no">
    What's wrong with my code? How to tell the page to wait until the procedure is finished and not to get a timeout?

  • How to run VI without the DAQ card connected to the labtop

    This may be a silly question but I want to have the answer and couldn't find the answer for spending time in searching in the web.
    I want to run the VI that controls the intruments in my labtop. The VI was run in a destop that has a DAQ card in the PC (a PCI card).  I know it is possible to run it without errors (without a DAQ card) in my labtop . Anyone knows how to do it? I used labview 7.1. Thanks,
    Jun

    If you are using DAQmx and if the DAQ card is supported, you can add a simulated device in MAX.

  • How can a clean out the Visual Studio References dialog entries?

    My reference dialog box is a mess, it has entries which I don't need any more. Some of the entries have duplicate names but differ by version. This means I have to carefully look at each reference to make sure I add the correct one. If I could simply right-click
    on the reference and click on delete the world would be a better place. Since this cannot be done, how else could I remove these bad entries?
    I am using VS2013 Community, this problem has driven be crazy in all versions since 2005.
    I don't know why this question needs to be asked since the situation should have been obvious at (Visual Studio) development time.
    Sic itur ad astra

    Thanks for jdweng’s help.
    Hi Anaristos,
    >> My reference dialog box is a mess. Some of the entries have duplicate names but differ by version.
    To really help us understand this issue, could you share us a screen shot about the real “reference dialog” in your side?
    >>What I would like to do is to have no resent entries when I click to add a reference to a project unless the references on the list are relevant to my current work. I don't need references to past projects, especially if the entries have the same
    name as a reference that I need now but are not either relevant or are the wrong version.
    Do you mean that it is the Reference Manage like the following screen shot?
    For example, you add a dll file(ClassLibrary1(C1)) as the reference in project A, you also have a project B which refer to another dll file which have the same name as ClassLibrary 1(C2), but not the same dll file. Now you create a new project C which will
    refer to C2, but there are two dll files have the same name, so it is hard for you to select the dll file as the reference in project C. 
    Did I understand this issue correctly?
    If not, please share us a simple sample, so we could understand it better.
    But for the reference issue, if possible, I suggest you remove the references with the right click options like the following screen shot, and then re-add the dll files your projects refer to with “Browse” button.
    Or you know that what the dll file’s path is, and then move the mouse on the references, I think you could get the folder or the dll file, and then add the correct references. 
    If I misunderstood this issue, please share us more detiled information, so jdweng and I will provide better answer for this issue. 
    Sincerely,
    Jack
    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 get rid of the DVD studio pro extension?

    I cut an actors reel in DVD SP 4 and saved the file just with the actors name and when I burn dvd's of it, it always has the the actors name .."studio pro" ho can i get rid of the studio pro, so when they play there reel for clients it just comes up as there name without the studio pro after it?
    Thanks for any help ya all
    Greg

    That will be the name of your disc in the property inspector for DVDSP. Click on the disc background/icon in the graphical or outline view, and change the title in the property inspector.
    When you go to build/format, make sure the settings in all three tabs are as you want them.

  • How to run jsp on the hosting?

    Hi there,
    I signed up a hosting for my website which is basically run PHP,but I want to make JSP available too. Can you tell me what I have to do? I know that JSP is platform independence ,but I'm not sure where to start.
    Thanks
    Message was edited by:
    xm6

    it must be a j2ee container so it can understand java..

Maybe you are looking for

  • Material opening and closing stock for a given day- Tables or FM

    Dear Friends          i have to make a report  , related to Material opening and closing stock for a given day  , i check the T-Code- MB5B , it is not giving correct date . is any functional module is available  ? . i checked some table like mbew , m

  • Down payment processing

    Hi Friends, Could somebody throw light on as how Down payment process is carried out in general. Provide flow for the same. Thanks

  • IMovie´09 Project with synced photo clips and workflow

    Hi, as I am new to Imovie, I have some difficulties to start with, no real Manual available and so on. Maybe someone can help me out a bit. I want to sync Pictures to a given music piece which has 120 bpm. I want to change the pictures every four sec

  • Startup DB, error ORA-01078

    Hi, I tried to startup the db but I receive erros. This is the operation I do: [oracle@server04 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.1.0.6.0 - Production on Wed Apr 21 16:18:26 2010 Copyright (c) 1982, 2007, Oracle.  All rights reserved. Conn

  • Transport Dependency check

    Hi, How to enable transport dependecy check for transport that are to be imported. When i try to import a request from STMS_IMPORT, it should check for any dependecy of the transport which has been used or modified the same object and it should promp