From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,b1ad78ca8818360f X-Google-Attributes: gid111c93,public From: Takeyasu Wakabayashi Subject: Re: ccc linking errors Date: 2000/05/29 Message-ID: #1/1 X-Deja-AN: 628559421 References: <392F0645.D45F4750@saunalahti.fi> <8gp7lq$kmi$1@pulp.srv.ualberta.ca> Content-Type: text/plain; charset=US-ASCII X-Complaints-To: usenet@news102.toyama-u.ac.jp X-Trace: news102.toyama-u.ac.jp 959586642 6586 160.26.90.97 (29 May 2000 07:50:42 GMT) Organization: Toyama Univ,Japan. Mime-Version: 1.0 (generated by tm-edit 7.106) NNTP-Posting-Date: 29 May 2000 07:50:42 GMT Newsgroups: comp.os.linux.alpha michal@gortel.phys.ualberta.ca (Michal Jaegermann) writes: > : gtkdtree.o: In function `gtk_dtree_do_select_dir': > : :316: undefined reference to `alloca' > ^^^^ > In gcc 'alloca()' is usually a "builtin"; therefore it is ccc > responsibility to provide a replacement one way or another (as a builtin > or by providing a command to link with an appriopriate library). Is > this the current version of ccc and binary utilities? If this fails > then you should have big problems all over the place. In the worst > case find which library supplies a replacement alloca and add it to > a link list yourself. I think #include #pragama intrinsic (alloca) will work. Try the following program: #include #pragma intrinsic (alloca) #include int main(void) { int *var; var = alloca(sizeof(int)); *var = 1; printf("value of *var: %d\n", *var); return 0; } -- Takeyasu Wakabayashi Faculty of Economics, Toyama University twakaba@eco.toyama-u.ac.jp