Operating System - OpenVMS
1752714 Members
5794 Online
108789 Solutions
New Discussion юеВ

Re: Exit is implicitly declared as a function

 
SOLVED
Go to solution
Kris Clippeleyr
Honored Contributor

Re: Exit is implicitly declared as a function

Ram,

Here is an excerpt of how I have found the info about IMPLICITFUNC on one of our VAXes.

Btw, going on holidays in 15 minutes.

Greetz,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Antoniov.
Honored Contributor

Re: Exit is implicitly declared as a function

Hi,
IMPLICITFUNC tell you function exit() is not declared as that.
I guess you compile with ANSI compliance; since 1999, in C language you must declare any fucntion with prototype while ancient Ritchie & Kerningha C doesn't need of it.
Prototype of exit is in stdlib, so you must add
#include
on top of your source file.

Antonio Vigliotti
Antonio Maria Vigliotti
Antoniov.
Honored Contributor

Re: Exit is implicitly declared as a function

Again,
for help execute follow steps:
Type
$ HELP CC
see list of options; press RETURN until can see messages;
type MESSAGES (without abbreviation)
see list of messages; press RETURN until you can see IMPLICITFUNC;
type IMPLICIT and read message text.
I guess you try to abbreviate MESSAGES while help has MESSAGES_GROUP and MESSAGES choices.

Antonio Vigliotti
Antonio Maria Vigliotti
ram_47
Frequent Advisor

Re: Exit is implicitly declared as a function

thanks, am able to see it now. looks like i missed it. sorry about that.

also, how did u redirect your screen output to a file? was it copy-paste or using some command?
Antoniov.
Honored Contributor

Re: Exit is implicitly declared as a function

Most of vms commands use /OUT qualifier to redirect output like greater than symbol > of unix.
So you can type
$ HELP CC MESSAGES IMPLICIT /OUT=

Antonio Vigliotti
Antonio Maria Vigliotti
Kris Clippeleyr
Honored Contributor

Re: Exit is implicitly declared as a function

Ram,

Redirecting the output was easy.

From one of our systems

$ SET HOST/LOG ITM2

Login into ITM2, do whatever you like, finally logout, and lo and behold the file SETHOST.LOG is created containing the output.

I'm off now, speak to you later.

Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...