Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!unixhub!ditka!comeau From: comeau@ditka.Chicago.COM (Greg Comeau) Newsgroups: comp.sys.amiga.programmer Subject: Re: HEEELLLPPPPPP!!!!!! Message-ID: <40514@ditka.Chicago.COM> Date: 6 Jun 91 12:27:28 GMT References: <9106051142.AA00425@bruny.cc.utas.edu.au> Sender: comeau@ditka.Chicago.COM (Greg Comeau) Reply-To: comeau@csanta.attmail.com (Greg Comeau) Organization: Comeau Computing Lines: 18 In article <9106051142.AA00425@bruny.cc.utas.edu.au> u895762@BRUNY.CC.UTAS.EDU.AU (Pavel Evgenjevich Sabourenkov) writes: :typedef int *number; :int f; :number n; :main(){ f=1; n = malloc(sizeof(int)); *n = f; printf("%d\n",*n); } : I use MANX C COMPILER V3.6 Dev. It works ok if i compile with +L flag and :link with c32.lib, but the "normal" cc test.c , ln test -lc does not work :- it outputs garbage... : Anybody knows what is wrong? I will be very grateful if somebody explains. I just tried it with V5.0d and it seems to work fine. - Greg -- Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418 Producers of Comeau C++ 2.1 Here:attmail.com!csanta!comeau / BIX:comeau / CIS:72331,3421 Voice:718-945-0009 / Fax:718-441-2310