Message-Id: <199603211631.LAA07002@delorie.com> Date: Thu, 21 Mar 1996 17:34:51 -0100 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: djgpp AT delorie DOT com From: marsel AT filemon DOT eleinf DOT uv DOT es (Marcelino Martinez Sober) Subject: DJGPP and WINDOWS 3.11 Hello Mr Delorie, On Wed, 20 Mar 1996, Marcelino Martinez Sober wrote: > I am a beginner user of DJGPP. I have installer DJGPP v2 in my 486DX50 > 16 MB Ram, and I think it run well, but if I compile a program and the I try > to start window, the initial screem of windows appear and then the program > return to DOS prompt and the computers become blocked. >Please tell more about your system setup. Does the problem happen after >any compilation, or just when you compile a specific source? It happen after any compilation > Does it happen if you invoke some other DJGPP program (not the compiler), like >Info? Not, it doesn't. > What if you invoke gcc without arguments, can you launch Windows >after that? yes. I can launch windows without problem. >Did you try running the compiler from the DOS box under >Windows? Yes. > If so, what happens then? it run well. > Finally, what does go32-v2 prints when invoked without arguments in the same configuration that you try to compile? This is the message under windows, go32/v2 version 2.0 built Jan 23 1996 22:03:02 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. DPMI memory available: 4520 Kb DPMI swap space available: 37500 Kb This is the message under MSdos go32/v2 version 2.0 built Jan 23 1996 22:03:02 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. DPMI memory available: 13140 Kb DPMI swap space available: 131040 Kb I have compiled this program, #include #include #include void PrintFreeMem(void) { printf("Free Physical memory : %lu Kbytes\n",_go32_dpmi_remaining_physical_memory()/1024); printf("Free Virtual memory : %lu Kbytes\n",_go32_dpmi_remaining_virtual_memory()/1024); } int main() { PrintFreeMem(); } With this Makefile %%%%%%%% CFLAGS = -g -Wall -O2 AR = ar clq AS = as CC = gcc CPP = cpp RM = del RL = ranlib .c.o: $(RM) $@ $(CC) -c $(CFLAGS) $*.c memo.exe: memo.o $(CC) memo.o $(CFLAGS) -lpc -lm -o memo %%%%%% After that windows doesn't work. The computer is blockec and I have to restart the computer. -I have used DJGPP to compile the code generated by MATCOM, a Matlab to C++ Translator, but the problems increase. I have errors messages like DPMI not supported . Running under Windows an under MSDOS. I tried to load the drives cwsdpmi, but the answer is the same. Any comment will be wellcome, Thanks in advance. Marsel Marcelino Martinez Sober Facultad de Fisica Dpt. Informatica i Electronica C/Dr Moliner,50 46100 Burjassot (Valencia) (SPAIN) Tel: 34-6-3864353 Fax: 34-6-3864768 e-mail: Marcelino DOT Martinez AT uv DOT es GGGGGG PPPPPP DDDDD SSSSSS G PP P DD DD SS G GGG PPPPPP DD DD SSSSSS G G PP DD DD SS GGGGGG PP DDDDD SSSSSS Digital Signal Processing Group.