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

[340 byte] By [zaocoma] at [2007-11-27 8:55:26]
# 1

Hi

cc -v produces more warnings (as does CC +w or even +w2 for the C++ compiler).

As for lint, you should be able to add it to your Makefile so that you can do a 'make lint', something like

.PHONY: lint

SOURCES = foo.c bar.c

CPPFLAGS = -Ilibfoo -Dfrob

lint: ${SOURCES}

lint ${CPPFLAGS} $^

Paul

Paul_Floyda at 2007-7-12 21:16:32 > top of Java-index,Development Tools,Solaris and Linux Development Tools...