delorie.com/archives/browse.cgi | search |
Path: | news.mv.net!news.shore.net!newsfeed.mathworks.com!europa.netcrusader.net!194.176.220.130!newsfeed.icl.net!news.vas-net.net!server2.netnews.ja.net!news.ox.ac.uk!plato.wadham!not-for-mail |
From: | jstacey AT plato DOT wadham DOT ox DOT ac DOT uk (J-P) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: ok, I have more info on problem at hand |
Date: | 2 Sep 2000 13:53:10 +0100 |
Organization: | Wadham College, Oxford |
Lines: | 10 |
Message-ID: | <8oqt7m$6of$1@plato.wadham.ox.ac.uk> |
References: | <Mtg9LD_00Uw9QI9Fw3 AT andrew DOT cmu DOT edu> <hsn1rs04jjeiksk1saev2cfjv5fpafqp1f AT 4ax DOT com> |
NNTP-Posting-Host: | plato.wadham.ox.ac.uk |
X-Trace: | news.ox.ac.uk 967899274 28783 163.1.164.74 (2 Sep 2000 12:54:34 GMT) |
X-Complaints-To: | newsmaster AT ox DOT ac DOT uk |
NNTP-Posting-Date: | 2 Sep 2000 12:54:34 GMT |
Xref: | news.mv.net comp.os.msdos.djgpp:103083 |
In article <hsn1rs04jjeiksk1saev2cfjv5fpafqp1f AT 4ax DOT com>, Jason Green <mail AT jgreen4 DOT fsnet DOT co DOT uk> wrote: >The error message says it all. You cannot implicitly cast the void >ptr return from malloc() to a int ptr. If this is a C++ program you >should use new/delete rather than malloc()/free(). .... unless you ever want to resize, in which case use malloc() and realloc() and explicitly cast the pointers. Discuss (20 marks). J-P
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |