[comp.sys.amiga.programmer] HEEELLLPPPPPP!!!!!!

comeau@ditka.Chicago.COM (Greg Comeau) (06/06/91)

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