Mail Archives: djgpp/1998/09/09/13:32:25
Hello, I'm trying to program C++ with DJGPP.
Help me please! I just do not understand how to invoke the compilers,and especially what programs to use for what purpose!
there are GXX,GCC,G++ and so on but which one do I use for what?
I tried, for example, the following program:
----------------
#include <dos.h>
int main(void)
{
pokeb (0xa000,0,0);
return 0;
}
------------------
just to try the poke function, does not work.Then I tried
------------------
#include <iostream.h>
int main(void)
{
cout << "Hello world!\n";
return 0;
}
--------------------
does not work either. The error messages are "undefined reference to pokeb" and cout respectively.
Is there any simple list of command switches and what the different programs do?
I spent about ten minutes in trying to understand the info program. That's enough for me.
HEEEELP!
well, just for completeness, don't think it's neccessary, but my system configuration:
Pentium 133, win95,msdos 7
1.2 Gb HD, 22 Mb ram
My SET contained the following:--------------------------------------------------
TMP=C:\WINDOWS\TEMP
PROMPT=$p$g
COMSPEC=C:\WINDOWS\COMMAND.COM
PATH=C:\;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DOS\TERMINAL\DJGPP\
DJGPP=C:\DOS\TERMINAL\DJGPP\DJGPP.ENV
The go32-v2 output:----------------------------------------------------------------
Called as `c:/dos/terminal/djgpp/bin/go32-v2.exe'
DOS CmdTail: `'
go32/v2 version 2.0 built Aug 12 1996 22:27:23
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries as
well as v1 binaries (old makefiles). Put ahead of the old go32 in your PATH
but do not delete your old go32 - leave it in the PATH after this one.
Set GO32_V2_DEBUG=y in the environment to get verbose output.
DPMI memory available: 6407 Kb
DPMI swap space available: 13001 Kb
--------------------------------------------------------------------------------------
THANKS FOR RESPONSE!
- Raw text -