Mail Archives: djgpp/1998/03/13/02:30:39
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 <iostream.h>
>
> 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/
- Raw text -