Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

comipling external libraires in GNU ?

SOLVED
Go to solution
nipun_2
Regular Advisor

comipling external libraires in GNU ?

hello all,
I have OpenVMS 7.3-2
I have two questions

1) I installed GNU however it seems to use
gcc,g++ I need DEC C and CXX installed as per the link
http://h71000.www7.hp.com/opensource/gnvreadme_first.html#heading_2.1

I already have CC compiler installed which works with DEC so shouldn't gcc work in bash shell

How or where can I get DECC and CXX installed ?

2) I am planning to build binaries for Tcl/Tk should I use GNU for this purpose or normal CC compiler in openvms ?
4 REPLIES
Steven Schweda
Honored Contributor

Re: comipling external libraires in GNU ?

> I installed GNU [...]

What does this mean? GNV? GNU != GNV.

> I already have CC compiler installed [...]

So, as I read the GNV docs, a gcc command in
bash should work.

> How or where can I get DECC and CXX installed ?

"How" is normally covered in the product
installation instructions. "Where"?

> [...] should I use GNU [...]

If you have a pure UNIX kit, then GNV might
work better. If you have a VMS-adapted kit,
then the normal VMS environment will probably
work better.
nipun_2
Regular Advisor

Re: comipling external libraires in GNU ?

Thanks for your reply Steven.
I should correct myself
I have installed "GNV" I was trying to use the original name GNU from which came GNV


Regarding Pt 2.
I installed GNV using the manual so that was the first thing I looked for.
However, I couldn't find one for DECC or CXX
I wasn't able to understand if DecC would be an application or a part of package or a license that I would require?

And gcc and g++ didn't work in the bash shell and the reason for that as stated in the GNV manual (I have put as a link) is because there seems to be requirement for DECC and CXX.

Let me know if anyone has gcc,g++ working on GNV before and what steps you did. I am trying get a practical steps in doing so as am new to this.

Thanks again.

Nipun




Steven Schweda
Honored Contributor

Re: comipling external libraires in GNU ?

VMS C and C++ compilers are separate
("layered") products, which required separate
licenses (and PAKs).

http://h71000.www7.hp.com/commercial/cace.html

I've used an old GCC on VMS VAX. I have no
idea what's available in GCC for VMS Alpha.

I believe that GNV provides a GCC-like
interface to the DEC/Compaq/HP compilers.

If you have a hobbyist VMS license, you
should have (or be able to get) free compiler
licenses (and PAKs). If you're in the
educational program, it may be similar. If
you're commercial, some actual money is
probably required.
Steven Schweda
Honored Contributor
Solution

Re: comipling external libraires in GNU ?

In GNV V1.6-2 (with the DEC/Compaq/HP
compilers installed):

bash$ type cc
cc is hashed (/gnu/bin/cc)

bash$ type gcc
gcc is hashed (/gnu/bin/gcc)

Different files, but the same:

bash$ diff /gnu/bin/cc /gnu/bin/gcc
bash$

bash$ cc -V
GNV Jun 8 2004 10:49:58
HP C V7.1-015 on OpenVMS Alpha V7.3-2

bash$ gcc -V
GNV Jun 8 2004 10:49:58
HP C V7.1-015 on OpenVMS Alpha V7.3-2

bash$ g++ -V
GNV Jun 8 2004 10:49:58
HP C++ V7.1-015 for OpenVMS Alpha V7.3-2

(Apparently similar C and C++ versions are
coincidental.)

bash$ uname -a
OpenVMS ALP 0 V7.3-2 COMPAQ_Professional_Workstation Alpha

bash$ cat /dka0/sms/fred.c
#include

main()
{
printf( " %s\n", "Hi.");
}

bash$ gcc /dka0/sms/fred.c -o fred

bash$ ./fred
Hi.