[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::axp-developer

Title:Alpha Developer Support
Notice:[email protected], 800-332-4786
Moderator:HYDRA::SYSTEM
Created:Mon Jun 06 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3722
Total number of notes:11359

3267.0. "Fretwell-Downing SHEFFIELD - Point 21589" by KZIN::ASAP () Tue Mar 04 1997 09:44

    Company Name :  Fretwell-Downing SHEFFIELD - Point 21589
    Contact Name :  Tim Scott
    Phone        :  0114.281.60.00
    Fax          :  0114.281.60.01
    Email        :  [email protected]
    Date/Time in :   4-MAR-1997 14:44:29
    Entered by   :  Nick Hudson
    SPE center   :  REO

    Category     :  vms
    OS Version   :  6.2
    System H/W   :  


    Brief Description of Problem:
    -----------------------------

From:	ESSB::ESSB::MRGATE::"ILO::ESSC::rallen"  4-MAR-1997 14:29:15.16
To:	RDGENG::ASAP
CC:	
Subj:	ESCALATION: POINT No.21589, Company Fretwell-Downing SHEFFIELD TO ASAP READING:    

From:	NAME: ESCTECH@ILO          
	TEL: (822-)6704          
	ADDR: ILO                  <rallen@ESSC@ILO>
To:	ASAP@RDGENG@MRGATE


Hello - 

POINT Log Number	21589

Company Name 	Fretwell-Downing SHEFFIELD

Engineers name	Tim Scott

Telephone Number 	0114.281.60.00

Fax Number		0114.281.60.01

E-mail Address		[email protected]

Operating System, Version	Alpha VMS 6.2

Platform			

Problem Statement		

Installed compiler from SDK. Error message on running compiler is: "Cannot find file: 'malloc.h'

Thanks & Regards,

Richard
Richard Allen
Pre-Sales Technical Support                      DTN fax 822.44.45  
European Software Center                        DTN phone 822.43.52  
Digital Equipment International B.V.    [email protected] 
        ~ FREEPHONE NUMBERS ARE AVAILABLE ON REQUEST ~
T.RTitleUserPersonal
Name
DateLines
3267.1KZIN::HUDSONThat&#039;s what I thinkTue Mar 04 1997 10:3057
From:	DEC:.REO.REOVTX::HUDSON       "[email protected] - UK Software
Partner Engineering 830-4121"  4-MAR-1997 15:30:02.41
To:	nm%vbormc::"[email protected]"
CC:	HUDSON
Subj:	RE:POINT No.21589, can't find malloc.h  

Hello Tim Scott

Thanks for your ASAP question on malloc.h

I am assuming you are getting this error ("Cannot find file: 'malloc.h'") when
you are attempting to build some code that you've taken from a Unix system.

The file malloc.h doesn't ship with DEC C for VMS.  

From looking on my Unix system, the function prototypes it contains are for
"mallopt()" and "mallinfo()".  The documentation on Digital Unix says that
these are provided for System V compatibility only and that new applications
shouldn't be using them.

"mallopt()" and "mallinfo()" have never been provided by C compilers on VMS.

From the description of the functions, I guess you should be able to remove
any reference to them in your application without ill-effect.  Perhaps your
application isn't actually using them anyway, and so removing the reference to
"malloc.h" would mean your programs would compile without you having to edit
the rest of the code.

Functions such as "malloc()" and "free()" are supported under DEC C for VMS. 
For these functions, you need to include "stdlib.h".

On VMS, you can find out which header files are required for a given run-time
function using the on-line help, e.g.

$ help cc run-time malloc
CC

  Run-time_functions

    malloc

       Allocates an area of memory.  This function is AST-reentrant.

       Syntax:

            #include <stdlib.h>

            void *malloc(size_t size);



I hope this information is useful to you

Regards

Nick Hudson
Digital Software Partner Engineering
3267.2KZIN::HUDSONThat&#039;s what I thinkWed Mar 05 1997 07:5397
From:	VBORMC::"[email protected]" "Tim Scott"  5-MAR-1997 12:45:55.08
To:	hudson <[email protected]>
CC:	
Subj:	RE: RE:POINT No.21589, can't find malloc.h


Please close.

Thank you.
Tim.

 ----------
From: hudson
To: "[email protected]"
Cc: hudson
Subject: RE:POINT No.21589, can't find malloc.h
Date: 04 March 1997 16:27

Hello Tim Scott

Thanks for your ASAP question on malloc.h

I am assuming you are getting this error ("Cannot find file: 'malloc.h'") 
when
you are attempting to build some code that you've taken from a Unix system.

The file malloc.h doesn't ship with DEC C for VMS.

From looking on my Unix system, the function prototypes it contains are for
"mallopt()" and "mallinfo()".  The documentation on Digital Unix says that
these are provided for System V compatibility only and that new applications
shouldn't be using them.

"mallopt()" and "mallinfo()" have never been provided by C compilers on VMS.

From the description of the functions, I guess you should be able to remove
any reference to them in your application without ill-effect.  Perhaps your
application isn't actually using them anyway, and so removing the reference 
to
"malloc.h" would mean your programs would compile without you having to edit
the rest of the code.

Functions such as "malloc()" and "free()" are supported under DEC C for VMS. 

For these functions, you need to include "stdlib.h".

On VMS, you can find out which header files are required for a given 
run-time
function using the on-line help, e.g.

$ help cc run-time malloc
CC

  Run-time_functions

    malloc

       Allocates an area of memory.  This function is AST-reentrant.

       Syntax:

            #include <stdlib.h>

            void *malloc(size_t size);



I hope this information is useful to you

Regards

Nick Hudson
Digital Software Partner Engineering

% ====== Internet headers and postmarks (see DECWRL::GATEWAY.DOC) ======
% Received: from mail.vbo.dec.com (mail.vbo.dec.com [16.36.208.34]) by
vbormc.vbo.dec.com (8.7.3/8.7) with ESMTP id NAA22925 for
<[email protected]>; Wed, 5 Mar 1997 13:42:52 +0100
% Received: from server21.digital.fr (server21.digital.fr [193.56.15.21]) by
mail.vbo.dec.com (8.7.3/8.7) with ESMTP id NAA08266 for
<[email protected]>; Wed, 5 Mar 1997 13:47:35 +0100 (MET)
% Received: from duct.mail.pipex.net (duct.mail.pipex.net [158.43.128.21]) by
server21.digital.fr (8.7.5/8.7) with SMTP id NAA22954 for
<[email protected]>; Wed, 5 Mar 1997 13:50:12 +0100 (MET)
% Received: from swan.fdgroup.co.uk by duct.mail.pipex.net with SMTP (PP); Wed,
5 Mar 1997 12:44:18 +000
% Received: from dodger by swan.fdgroup.co.uk (AIX 3.2/UCB 5.64/4.03) id
AA07175; Wed, 5 Mar 1997 12:36:50 GM
% Received: by dodger.fdgroup.co.uk with NT SMTP Gateway ver 31 id
<[email protected]>; Wed, 05 Mar 97 12:41:56 
% From: Tim Scott <[email protected]>
% To: hudson <[email protected]>
% Subject: RE: RE:POINT No.21589, can't find malloc.h
% Date: Wed, 05 Mar 97 12:41:00 G
% Message-Id: <[email protected]>
% Encoding: 68 TEXT
% X-Mailer: Microsoft Mail V3.0