Problems with malloc()
Rick LaMont
lamont at uts.amdahl.com
Wed Apr 3 15:14:04 AEST 1991
In article <1991Apr1.171908.2198 at cs.mcgill.ca> storm at 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
More information about the Comp.lang.c
mailing list