Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!amdahl!lamont From: lamont@uts.amdahl.com (Rick LaMont) Newsgroups: comp.lang.c Subject: Re: Problems with malloc() Message-ID: <57Dk0195504o00@amdahl.uts.amdahl.com> Date: 3 Apr 91 05:14:04 GMT References: <1991Apr1.171908.2198@cs.mcgill.ca> Reply-To: lamont@amdahl.uts.amdahl.com (Rick LaMont) Organization: Amdahl Corporation, Sunnyvale CA Lines: 23 In article <1991Apr1.171908.2198@cs.mcgill.ca> storm@cs.mcgill.ca (Marc WANDSCHNEIDER) writes: >m,m1...m5 are all pointers to a struct of type Message (ie, they're type Link) > > m4 = msgallloc(); /* <--- WARNING 1 (see below) */ > >Now, the problem is, TC++ 1.0 will compile this when I run it from the DOS >prompt, but will give me the warning NON-PORTABLE FUNCTION CONVERSION IN >MAIN at the line m4 = msgalloc(); as indicated above. > >However, when I choose BUILD ALL it under the IDE of TC, it SOMETIMES > generates the same line as an ERROR, but it always generates a LINK ERROR >which states UNDEFINED SYMBOL _MSGALLOC IN MODULE QUEUES.C. > Since m1-m5 are declared and used consistently, I suspect that m4 is also a macro or function. Check your header files, even the system header files. I've had lint complain about variables named y0 or y1 because of system Bessel functions. Just a hunch. Rick LaMont