[HPADM] Re: Compiling on HP-UX with cc



try  man cc
I believe cc would default to HP-C or maybe even HP aCC
depending on whats installed.

'cc -c some_code.c' would create  some_code.o, just the
object file, where the -c switch means objects only.
'cc -o some_code some_code.c' should create an executable named
  'some_code'.

I think gcc as well as many other packages are available for
hpux in binary and source forms from
(The porting and archive center for HPUX)
 http://hpux.cs.utah.edu/    or    http://hpux.connect.org.uk/
or from many of the other mirror sites.

Keven Miller
kevenm@xxxxxxxxxxxxxxxxxxxx


Shaw, Marco wrote:
Beginner question...

I thought 'cc' would be a compiler.  I figured I could
simply do something like 'cc -c some_code.c' and get
executable code.  Is that how cc works?

I've used gcc on Linux before, I've just never used
cc on HP-UX or Solaris.


-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@xxxxxxxxxxxxx Name: hpux-admin@xxxxxxxxxxxxx Owner: owner-hpux-admin@xxxxxxxxxxxxx

Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
           http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)



Relevant Pages

  • Re: 2.6.6-rc3: gcc 2.95: cx88 __ucmpdi2 error
    ... > the switch in set_tvaudio. ... It might help to use "objdump" to disassemble the object file and see ... slower and bigger code, it's historically been pretty buggy in gcc, so ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: RFC: Building libstdc++ with -frandom-seed=RepeatabilityConsideredGood
    ... >>This is a new option in gcc 3.4 which allows a string to be specified ... gcc needs to construct a name from each object file ... externally visible symbol. ...
    (freebsd-current)
  • Re: gcc fixed size char array initialization bug - known?
    ... .rodata section of the compiled object file. ... So gcc does that kind of recovery, ... without \0 appendix or other extraordinary padding. ...
    (Linux-Kernel)
  • Re: skip compilation of unused functions
    ... are some functions of the dietlibc I'll never need in the final program. ... int reached ... gcc can't split object files. ... referenced from another object file. ...
    (comp.os.linux.development.apps)
  • Re: Linking a C++ library to a C program.
    ... >>> use a C compiler (gcc). ... >> best bet is to write the C code in the common subset of the two ... > resembling a standard, so that everything is totally non-portable. ... Whether a C object file can actually be linked with a C++ object file ...
    (comp.lang.c)