Operating System - HP-UX
1830930 Members
2302 Online
110017 Solutions
New Discussion

how to check C compiler status

 
Shashi Bhargava
Advisor

how to check C compiler status

hi,
i would like to check the C or ANSI C or C++ compiler working fine or not, because of user facing some problem so they are saying problem with C Compiler, so they asking to reload the C compiler, the user got error like


ld: Unsatisfied symbols:
$global$ (data) (probably missing /usr/ccs/lib/crt0.o)
Building the independent server mulserv
*** Expect unresolved references similar to:
/usr/ccs/bin/ld: Unsatisfied shared library symbols:


so that is error, and how can i check it out.

thanks
siva


4 REPLIES 4
Peter Godron
Honored Contributor

Re: how to check C compiler status

Hi,
I would suggest you look at:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1059351

Seems to be the same/similar problem. Having one thread for one problem means updates can be tracked by the contributors.

James R. Ferguson
Acclaimed Contributor

Re: how to check C compiler status

Hi Siva:

# cat ./hello.c
#include
main ()
{
printf ("%s\n", "Hello world!");
exit (0);
}

# cc ./hello.c -o hello
# ./hello
Hello world!

Regards!

...JRF...

Shashi Bhargava
Advisor

Re: how to check C compiler status

hi,


peter yes offcourse that's our backend support team, so i am getting terminate this seesion, let him to continue

Dear James your recomentation is working fine, so that means, can come to conclusion C compiler is working fine?????.


thanks
siva
A. Clay Stephenson
Acclaimed Contributor

Re: how to check C compiler status

This is related to your previous posting. Technically, you are not having compiler problems, you are having linker (ld) problems but the problems really have nothing to dowith the compiler/linker itself and everything to do with your use of these tools. Your problems revolve around pilot error. Having said this, it is still a good idea to look for and install the latest compiler (and run-time compiler related), ld, and as patches applicable to your development environment.

You cannot conclude from the simple "Hello world" compile and link that all is well because very few libraries are included in that trivial exercise. It is, however, a good indication that the compiler/linker is fully functional.

If you correct your pilot errors, (ie properly configure your makefiles and select the correct compiler/linker options), then your problems will disappear.

If it ain't broke, I can fix that.