Date: Fri, 26 Dec 1997 11:52:59 -0800 (PST) Message-Id: <199712261952.LAA12196@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: dmurugesan AT aol DOT com (DMurugesan), djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Help : " Program too big to fit into memory " / " Not a valid Win32 Appilcation " Precedence: bulk At 05:02 12/24/1997 GMT, DMurugesan wrote: > >To some one who can reply , > > >I compiled my small program and tried to run it .It ran so perfect. When I >introduced " cout << sizeof(MYstruct) ; " , it complained something about >"djgpp_first_ctor","djgpp_last_ctor",etc . I read the faqs and added the option >-Tdjgpp.djl and now I am left with new error called "Program too big to fit >into memory " when I run inside a dos window and "Not a valid Win32 >Appilcation" when I run it from Windows Explorer. I suspect you have given incorrect options to the compiler or linker. It sounds like you invoked the linker directly, which should not be necessary and can cause problems. You should use `gxx' to link, and not use `ld' directly. If this doesn't help, please post a short source code which reproduces it, and the EXACT command lines used to compile and link it. Nate Eldredge eldredge AT ap DOT net