Xref: news2.mv.net comp.os.msdos.djgpp:4841 From: dan AT dan DOT emsphone DOT com (Dan Nelson) Newsgroups: comp.os.msdos.djgpp Subject: Re: Program too big to fit in memory Date: 10 Jun 1996 22:16:25 GMT Organization: Executive Marketing Services, Inc. Lines: 22 Message-ID: <4pi6rp$du1@client2.news.psi.net> References: NNTP-Posting-Host: 199.67.51.101 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Jim Varanelli wrote: > Eli Zaretskii writes: > |> What happens if you use the following command line: > |> > |> gcc -o genlist.exe -O2 genlist.c feedback.c tbench.c tree.c sigtype.c > |> list.c > > Same thing, Program too big... > > Reading specs from c:/djgpp/lib\specs > gcc version 2.6.3 > c:\djgpp/bin\cpp.exe -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=6 > -Dunix -Di386 -DGO32 -DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ > -D__unix -D__i386 -D__GO32 -D__MSDOS -D__OPTIMIZE__ adept.c Are you SURE you're using djgpp v2? The v2 I have comes with gcc 2.7.2, and adds a -D__DJGPP=2 after the -D__MSDOS. If you are using djgpp v1, you can't compile directly to a .exe. Try "gcc -o genlist ..." and then "stubify genlist". -Dan Nelson dnelson AT emsphone DOT com