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

error while executing a program in C

 
Highlighted
mi7ssana
Occasional Advisor

Re: error while executing a program in C

when i run it in the same environnement it works
what i mean by copying in another environnement is i make a cop/ftp of my test1.exe to another environnement ( actually the environnement of test) and the program send an error
Highlighted
Hoff
Honored Contributor

Re: error while executing a program in C

Using "TEST" or "TEST1" or "DEBUG" is poor practice; too many folks do that, and collisions are common, and confusion ensues, and those names are not at all descriptive of the application itself. Add some extra characters to the names, both to describe that this example is HELLOWORLD.C and to avoid logical name collisions with the logical names that can be defined and used on VMS systems. Getting into the habit of good names and good comments is good programming.

How to use the Debugger? Read the manuals. The two manuals you should have already read are:

http://h71000.www7.hp.com/doc/84final/4538/4538pro.html

http://h71000.www7.hp.com/doc/82final/5841/5841pro.html

The documentation shelf is here, including OpenVMS and the above manuals, as well as the C programming shelf:

http://www.hp.com/go/openvms/doc

The C library manual is (confusingly) in the base OpenVMS documentation set and not in the C shelf.

As for your direct question on the debugger...

$ CC x.c /DEBUG /NOOPTIMIZE
$ LINK x.obj /DEBUG
$ RUN x

Common Debugger Commands:

SET MODE SCREEN
STEP
STEP /INTO
EXAMINE
GO
SET BREAK line
HELP

And the next error you'll almost certainly hit is the Access Violation (ACCVIO), and the stackdump provides a wealth of information:

http://labs.hoffmanlabs.com/node/800

You're probably colliding with a logical name TEST1 or whatever you've named this as defined on the target system; you're not running the application you think you're running. This can be a direct logical name collision with the filename, or somebody might have a "creative" DCL$PATH definition, or such. Pick a different filename; test this with HELLOWORLD.EXE or such.

Reposting this. ITRC choked again, as is its wont. Apologies on any dups.
Highlighted
Joseph Huber_1
Honored Contributor

Re: error while executing a program in C

[ i make a cop/ftp of my test1.exe to another environnement ( actually the environnement of test) ]

"another environment" in this case is another system having a different CPU architecture:
You build the program on an Alpha (or vax), and try to run it on an Itanium system, I bet.
http://www.mpp.mpg.de/~huber
Highlighted
Jan van den Ende
Honored Contributor

Re: error while executing a program in C

Hi,

>>>
what i mean by copying in another environnement is i make a cop/ftp of my test1.exe to another environnement
<<<

This may well be the explanation of
>>>
-IMGACT-F-NOT_I64, image is not an HP OpenVMS Industry Standard 64 image
<<<

It looks like you do the COMPILATION on a system running the Alpha architecture, and then copy the executable to an IA64 system.

YES, the BOTH run VMS (actually, so does Vax), and they appear much alike, but ünder the hood" they are quite different.
Camppare automobiles: they a very similar to drive, but "under the hood" it DOES make a different if it runs on Diesel, Gasoline, (or LPG, just to add the 3rd).

The very same would apply to your Cobol colleagues, so they should be able to help you in this.

hth

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Highlighted
mi7ssana
Occasional Advisor

Re: error while executing a program in C

thanks for helping me i finally found the cause of my error . thanks again
Highlighted
abrsvc
Respected Contributor

Re: error while executing a program in C

Could you post the final solution? Many users use this forum as a reference when encountering problems. The solution here might be of assistance to others.

Thanks,
Dan
Highlighted
Stanley F Quayle
Valued Contributor

Re: error while executing a program in C

And please assign point values to the responses -- some were quite detailed and helpful.
http://www.stanq.com/charon-vax.html