From: James W Sager Iii Newsgroups: comp.os.msdos.djgpp Subject: Anomolies old Gcc allowed(also problem) Date: Sat, 2 Sep 2000 01:40:18 -0400 Organization: Fifth yr. senior, MCS Undeclared, Carnegie Mellon, Pittsburgh, PA Lines: 38 Message-ID: NNTP-Posting-Host: po6.andrew.cmu.edu X-Trace: bb3.andrew.cmu.edu 967873289 2041 128.2.10.106 (2 Sep 2000 05:41:29 GMT) X-Complaints-To: advisor AT andrew DOT cmu DOT edu NNTP-Posting-Date: 2 Sep 2000 05:41:29 GMT X-Added: With Flames (outnews v2.6) Path: news.mv.net!newspeer.phoen-x.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.cis.ohio-state.edu!xxxx1.sei.cmu.edu!bb3.andrew.cmu.edu!andrew.cmu.edu!sager+ Xref: news.mv.net comp.os.msdos.djgpp:103067 Mp is a structure containing: int *blk; int *vt_wall; int *hz_wall; Mp.blk=realloc(Mp.blk,10000*4*Mp.max); Mp.vt_wall=realloc(Mp.vt_wall,10000*4*Mp.max); Mp.hz_wall=realloc(Mp.hz_wall,10000*4*Mp.max); Recieved compiler errors: ) Error: ANSI C++ forbids implicit conversion from `void *' in assignment ) Error: ANSI C++ forbids implicit conversion from `void *' in assignment ) Error: ANSI C++ forbids implicit conversion from `void *' in assignment What does the above mean? Does it mean I need to malloc before I remalloc? This would require a coding overhaul on code I forget. I can't find any solution but this, yet I find it odd a programming language would switch conventions... Upgrading from my ghetto version of Djgpp to the newer one, I noticed some odd things the previous compiler let me play off. *It allowed me to declare: static i; It assumed static int. *It allowed me to give content for a constructor of a class without specifying in the .h that there was a constructor to begin with. *(allegro only) Allowed direct access to datafiles when using the blit command.