djgpp doesn't have windows.h

is there any way around this?

I couldn't download codeblocks today at the library but I was able to download and install djgpp (http://www.delorie.com/djgpp/)

I have to rewrite some of my functions or what else can I do?

specifically how can I do this:

if (GetAsyncKeyState(VK_CONTROL) )
Use the functions you can find in conio.h (kbhit, getch etc...) http://www.delorie.com/djgpp/doc/incs/conio.h
Last edited on
ok major problems with djgpp. I was able to compile my program after removing all calls to windows.h functions, (which I was pretty sure anyway would have been still acceptable as they only added features to my prog anyway). However, when I tried to load a simple puzzle i got the following errors:


Raised at eip=00025e4e
eax=000f8744 ebx=00000120 ecx=00000000 edx=00000000 esi=00000001 edi=00079654
ebp=000f87f0 esp=000f8740 program=C:\USERS\BIBLIO~1\MUSIC\ST\S\A.EXE
cs: sel=021f  base=02880000  limit=00dbffff
ds: sel=0227  base=02880000  limit=00dbffff
es: sel=0227  base=02880000  limit=00dbffff
fs: sel=01f7  base=0000e230  limit=0000ffff
gs: sel=0237  base=00000000  limit=0010ffff
ss: sel=0227  base=02880000  limit=00dbffff
App stack: [000f9654..00079654]  Exceptn stack: [000795a8..00077668]

Call frame traceback EIPs:
  0x00025d74
  0x00025e4e
  0x000233eb
  0x00039739
  0x00037305
  0x0003734d
  0x00032cec
  0x00030471
  0x0003128b
  0x0003bdcc
  0x0003ad35



and other wierd output I've never seen before.
I was able to get "Hello Waldo" to compile and run with gcc, but does anyone know what this gxx.exe is? it also compiles both hello waldo and my sudoku program. i've never seen it b4.

Is anyone here familiar with djgpp?
Also I just found out that djgpp compiler is like 20 years old. So i'm not guessing i'll find anyone familiar with it lol
Topic archived. No new replies allowed.