From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: PPC7100->VPC->W95/DOS->DJGPP??? Date: Thu, 12 Mar 1998 18:23:06 -0500 Organization: Cornell University (http://www.cornell.edu/) Lines: 47 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <35086E5A.CFD973E6@cornell.edu> References: <350808F1 DOT 1C46 AT midamer DOT net> NNTP-Posting-Host: cu-dialup-0405.cit.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk musight AT midamer DOT net wrote: > indicated using 'pkunzip -d'. When I first attempted to run go32-v2 it > told me there was no dpmi so I thought I could easily remedy the > emulator's oversight by getting cwsdpmi, but I don't know what to do > with it now. I think the PC emulation application is causing a > problem. RHIDE seems to work fine, but I don't know enough about c/c++ > to know I've followed the correct steps in creating an .exe file. All under win95, cwsdpmi is not used, windowsacts as the dpmi server. i don't know how virtual pc handles this. how did you get rhide to run? did you try playing with the properties of the dos window? > I have accomplished thus far is entering the following program: the proper extensions for c++ sources are .C (note the capital C), .cc, .cxx, .cpp (there might be more, but i am pretty sure .cp is not one of them.) > //hello.cp > #include > > woid main< void > void main (which i assume you intended to type) is an _illegal_ construct in c++; main can only return an int. > { > cout << "hello world" << endl; > } > //end hello.cp try running go32-v2 at the command line and post what it prints. if it runs, try compiling and linking from the command line: gxx hello.cc -o hello.exe -Wall in any case, these attempts should provide you, and moreover anyone who might try to help you with more concrete information. -- ---------------------------------------------------------------------- A. Sinan Unur Department of Policy Analysis and Management, College of Human Ecology, Cornell University, Ithaca, NY 14853, USA mailto:sinan DOT unur AT cornell DOT edu http://www.people.cornell.edu/pages/asu1/