Operating System - OpenVMS
1819838 Members
2606 Online
109607 Solutions
New Discussion юеВ

How can I compile my C program in vms 7.0?Following error,solute?

 
SOLVED
Go to solution
kismet_1
Advisor

How can I compile my C program in vms 7.0?Following error,solute?

%LINK-W-RECTYP, file DKA200:[KINGDEER]BIG_GB.C;6 record 73 is illegal (8224.)
%LINK-W-RECTYP, file DKA200:[KINGDEER]BIG_GB.C;6 record 74 is illegal (8224.)
%LINK-W-RECTYP, file DKA200:[KINGDEER]BIG_GB.C;6 record 75 is illegal (8224.)
%LINK-W-RECTYP, file DKA200:[KINGDEER]BIG_GB.C;6 record 76 is illegal (8224.)
%LINK-W-NOEOM, no end-of-module record found
in module file DKA200:[KINGDEER]BIG_GB.C;6
%LINK-W-SEQNCE, illegal record sequence
in module file DKA200:[KINGDEER]BIG_GB.C;6
%LINK-W-EMPTYFILE, no modules found in file DKA200:[KINGDEER]BIG_GB.C;6
%LINK-W-USRTFR, image DKA200:[KINGDEER]BIG_GB.EXE;1 has no user transfer address

13 REPLIES 13
Hein van den Heuvel
Honored Contributor

Re: How can I compile my C program in vms 7.0?Following error,solute?


Kismet,

Welkom to the ITRC forum.

be sure to check out:
http://forums1.itrc.hp.com/service/forums/helptips.do?
and at some point:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140137

Unlike Unix systems where the compiler often automatically chains to a loader/linker functions these steps are always explicit in VMS.
So you have to first use $ CC big_bg
This will create an object file big_bg.obj
next you must $ LINK big_bg
That step will read the .obj file and create an .exe file.
This .exe can then be executed: $ RUN big_bg

Hope this helps,
Hein.
kismet_1
Advisor

Re: How can I compile my C program in vms 7.0?Following error,solute?

Thanks your repid reply!
But I used the following command,there are errors:
$ CC new_withprint.C
%DCL-W-IVVERB, unrecognized command verb - check validity and spelling
\CC\

First I used commands is a com:
$ ed ccc.com
$ cc /stand=vax 'p1
$ link 'p1
Command: quit

If I run the com:
$ @CCC NEW_WITHPRINT
%DCL-W-IVVERB, unrecognized command verb - check validity and spelling
\CC\
%LINK-F-OPENIN, error opening DKA200:[KINGDEER.BAK]NEW_WITHPRINT.OBJ; as input
-RMS-E-FNF, file not found

why?
Thanks agains!

David B Sneddon
Honored Contributor

Re: How can I compile my C program in vms 7.0?Following error,solute?

Kismet,

The following...

$ CC new_withprint.C
%DCL-W-IVVERB, unrecognized command verb - check validity and spelling
\CC\

implies that you DO NOT have a C compiler.

Dave.
kismet_1
Advisor

Re: How can I compile my C program in vms 7.0?Following error,solute?

Thanks you very much!
But there are a lots of the old C program in my VMS system.Some is running.I think it has setuped.If it's true,how can I have a C compiler?GCC for vms?


Sorry,everyone!My english is very poor ,I know it's very poor too!Learning...
David B Sneddon
Honored Contributor

Re: How can I compile my C program in vms 7.0?Following error,solute?

Kismet,

The C compiler for VMS is a separate layered product
which means that you have to purchase a license in
order to use it. Once you have a license, you can
install it (from the Consolidated distribution).
If however this is a hobbyist system (that is not
being used for commercial purposes) you can obtain
licenses for almost everything that runs on VMS.

http://www.openvmshobbyist.com/ is the address of
the hobbyist site. You will need a valid DECUS
membership. You can try at
http://www.encompassus.org/

Hope this helps.
Dave
kismet_1
Advisor

Re: How can I compile my C program in vms 7.0?Following error,solute?

David Sneddon ,thank you very much!I firstly go the site seeing.If any problem,I consult you and other kind of friends!!!
Willem Grooters
Honored Contributor
Solution

Re: How can I compile my C program in vms 7.0?Following error,solute?

Kismet,

membership. You can try at
http://www.encompassus.org/>

Associate membership - which is free - is sufficient, though you will not be able to use the full potential (a lot of free/low cost software is available)

Willem
Willem Grooters
OpenVMS Developer & System Manager
Antoniov.
Honored Contributor

Re: How can I compile my C program in vms 7.0?Following error,solute?

Kismet,
I heard you can find gcc for vms. Look for it at follow links:
http://public.planetmirror.com/pub/gcc-vms/
http://www.au.horde.org/pub/gcc-vms/

Antonio Vigliotti
Antonio Maria Vigliotti
kismet_1
Advisor

Re: How can I compile my C program in vms 7.0?Following error,solute?

To Willem Grooters├г Antoniov:
Good evening!I try to apply for a valid DECUS membership at http://www.encompassus.org,but I failed at step 3)register,following errors:

Please enter all required information

Required Information:
Your Membership Number is not in our database or is incorrect. Please check with your Chapter to insure it is correct and they have updated us. Sorry for any inconvenience.

Then ,I try to set up gcc that download from
http://public.planetmirror.com/pub/gcc-vms/

First step is ok,but the command "$ @disk:[this.directory]GCC_STARTUP.COM" occured following errors :
%DCL-W-ACTIMAGE, error activating image GNU_CC:[000000]GCC-CPP.EXE
-CLI-E-IMGNAME, image file AS1000$DKA200:[KINGDEER.BAK.GCC-VMS-2_7_1.GCC.][000000]GCC-CP
P.EXE;1
-IMGACT-F-NOTNATIVE, image is not an OpenVMS Alpha image

If you have any good seggestion ,pls tell me!Because my english is very poor,I hope some friends that understand chinese can help me!My hotmail address is:mtkt_7@hotmail.com,Welcome to contact me!Firstly thanks,I solute it to need urgently!

Bye-bye everyone,see you tomorr
Ian Miller.
Honored Contributor

Re: How can I compile my C program in vms 7.0?Following error,solute?

that GCC download site is for VAX/VMS only.
____________________
Purely Personal Opinion
Ian Miller.
Honored Contributor

Re: How can I compile my C program in vms 7.0?Following error,solute?

this is the form
https://www.encompassus.org/secure/membApp/index.cfm?form_type=ASSOC
you should be filling in
____________________
Purely Personal Opinion
kismet_1
Advisor

Re: How can I compile my C program in vms 7.0?Following error,solute?

To Lan Miller,the GCC FOR vms is that I want to use.At www.encompassus.org I'v already a member!I'v registed successfully on the form
https://www.encompassus.org/secure/membApp/index.cfm?form_type=ASSOC,but appear to above errors!
kismet_1
Advisor

Re: How can I compile my C program in vms 7.0?Following error,solute?

Thanks everyone for helping me!The gcc is setuped successfully ,Its URL is
http://www.tmk.com/ftp/vms-freeware/gcc-for-alpha/