ez
New Member
Posts: 2
|
Post by ez on Jan 22, 2014 18:42:05 GMT -8
Just tried to build it with gcc 4.5.2, from the mingw-git shell/terminal. Windows 7 64-bit.:
$ gcc --version
gcc.exe (GCC) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ make
gcc 8086tiny.c `sdl-config --cflags --libs` -o 8086tiny -O3 -fsigned-char
8086tiny.c: In function 'SDL_main':
8086tiny.c:275:9: warning: assignment from incompatible pointer type
8086tiny.c:643:6: warning: passing argument 1 of 'time' from incompatible pointe
r type
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/time.h:102:40: note: e
xpected 'time_t *' but argument is of type 'int *'
8086tiny.c:644:6: warning: passing argument 1 of 'localtime' from incompatible p
ointer type
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/time.h:121:45: note: e
xpected 'const time_t *' but argument is of type 'int *'
$ 8086tiny.exe bios fd.img
No output/input occurs. cpu usage for 8086tiny goes to around 10%.
Tried running it directly from a cmd.exe prompt. The executable launches but loses contact with the terminal (returns to cmd prompt) and just appears in taskmgr with the same 10% cpu usage.
I can try updating to a more recent gcc. Will comment again if I do that.
|
|
rai
New Member
Posts: 6
|
Post by rai on Jan 22, 2014 20:38:15 GMT -8
I would say try TDM-GCC, since it's based on a more recent version of GCC than MinGW, but TDM gives me the same exact problem you're having. I don't know if it's something we're doing wrong or not.
|
|
|
Post by Adrian Cable on Jan 23, 2014 3:15:42 GMT -8
Hi, I do not have SDL installed on my MinGW system, but compiling under MinGW with -DNO_GRAPHICS so SDL is not used works fine for me. Therefore, I suspect something might be amiss with SDL. I'll look into it.
In the mean time, can you try compiling with -DNO_GRAPHICS and let me know how it works out? Thanks!
-Adrian
|
|
ez
New Member
Posts: 2
|
Post by ez on Jan 23, 2014 4:57:30 GMT -8
Hi, I do not have SDL installed on my MinGW system, but compiling under MinGW with -DNO_GRAPHICS so SDL is not used works fine for me. Therefore, I suspect something might be amiss with SDL. I'll look into it. In the mean time, can you try compiling with -DNO_GRAPHICS and let me know how it works out? Thanks! -Adrian That seemed to do the trick, it works now.
|
|
|
Post by Adrian Cable on Jan 23, 2014 9:45:45 GMT -8
I've just tried building with MinGW + SDL and get the same as ez. I believe the emulator is actually running, but SDL is stopping output from going to the console, hence you see nothing on the screen.
This doesn't seem to happen on similar platforms (e.g. MS Visual Studio + SDL) but I will look into it and report back.
-Adrian
|
|