The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to compile from source code? wrapster UNIX and Linux Applications 1 05-27-2008 04:03 PM
Still unable to compile pro*c program satvd Shell Programming and Scripting 1 05-20-2008 09:47 AM
Convert file from Unix - ANSI to PC - ANSI ssmallya Shell Programming and Scripting 0 02-05-2008 06:07 AM
Unable to compile the c programme in unix vasudeva UNIX for Dummies Questions & Answers 10 12-01-2006 04:58 PM
Compile a code for running on boot d4n1l0d Filesystems, Disks and Memory 2 08-14-2006 02:44 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-05-2001
jyotipg jyotipg is offline
Registered User
  
 

Join Date: Oct 2001
Location: Bangalore
Posts: 95
Angry Unable to compile ANSI compatible code on HP-UX

Hi!!,
my HP-UX - 10.2 compiler doesnt appear to support ANSI style of coding. On compiling my C code, it flags error messages like

error 1705: Function prototypes are an ANSI Feature

Is it a generic problem with the HP compiler or do I need to use some special switches on the command line for compling my code??

Thanx in advance,

JP
  #2 (permalink)  
Old 10-05-2001
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
I don't think HP C is ANSI compliant. I'm not sure if they offer it as an add-on package. You could always check out <a href="http://gcc.gnu.org">GCC</a> as a widely-used replacement...
  #3 (permalink)  
Old 10-05-2001
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,100
The free compiler that comes bundled with hp-ux is basicly just a k&r c. There is a separate c package that they sell that gives you full ansi c.
  #4 (permalink)  
Old 10-05-2001
bitman bitman is offline
Registered User
  
 

Join Date: Oct 2001
Location: Bangalore, India
Posts: 2
Exclamation

I think if you want to compile with Ansi C, then there is a compiler aCC... just type the following in the prompt....
$>type aCC

if you are able to get the path, then
$><PATH> <filename>.C

and it will compile the way u want

also if u could give the program, probably could find the actual reason such an error
  #5 (permalink)  
Old 10-05-2001
jyotipg jyotipg is offline
Registered User
  
 

Join Date: Oct 2001
Location: Bangalore
Posts: 95
I am using an aCC-1.23 compiler for compiling this code. Still is doesnt help much. An the code I am try to compile is the GDB source downloaded from GNU site for HP-UX. So, I dont expect errors in the code either.
  #6 (permalink)  
Old 10-05-2001
bitman bitman is offline
Registered User
  
 

Join Date: Oct 2001
Location: Bangalore, India
Posts: 2
Lightbulb

If it is a source code by GNU, then there is all the possibility that there is a file called makefile...
if that exists, then all you have to do is...
$>make makefile

and it will compile for you....
  #7 (permalink)  
Old 10-05-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
In my experience the HP compilers are pretty worthless. Download and install the HP-UX version of gcc from here:

http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-3.0.1/
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:03 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0