I've just compiled GCC myself in MinGW/MSYS.
GCC 4.6 does not seem to be familiar with the DOSBox SVN source.
1make[4]: Entering directory `/c/dosbox_temp/src/cpu' 2g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/local/include/SDL -D_GNU 3_SOURCE=1 -Dmain=SDL_main -g -O2 -MT callback.o -MD -MP -MF .deps/callback.Tpo 4 -c -o callback.o callback.cpp 5mv -f .deps/callback.Tpo .deps/callback.Po 6g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/local/include/SDL -D_GNU 7_SOURCE=1 -Dmain=SDL_main -g -O2 -MT cpu.o -MD -MP -MF .deps/cpu.Tpo -c -o cpu 8.o cpu.cpp 9In file included from ../../include/programs.h:28:0, 10 from cpu.cpp:29: 11../../include/dos_inc.h: In member function 'void DOS_MCB::SetFileName(const cha 12r*)': 13../../include/dos_inc.h:544:78: error: expected primary-expression before ',' to 14ken 15../../include/dos_inc.h:544:79: error: 'filename' was not declared in this scope 16 17../../include/dos_inc.h:544:87: error: 'offsetof' was not declared in this scope 18 19../../include/dos_inc.h: In member function 'void DOS_MCB::GetFileName(char*)': 20../../include/dos_inc.h:545:71: error: expected primary-expression before ',' to 21ken 22../../include/dos_inc.h:545:72: error: 'filename' was not declared in this scope 23 24../../include/dos_inc.h:545:80: error: 'offsetof' was not declared in this scope 25 26cpu.cpp: In member function 'void TaskStateSegment::Get_SSx_ESPx(Bitu, Bitu&, Bi 27tu&)': 28cpu.cpp:294:37: error: expected primary-expression before ',' token 29cpu.cpp:294:38: error: 'esp0' was not declared in this scope 30cpu.cpp:294:42: error: 'offsetof' was not declared in this scope 31cpu.cpp:298:37: error: expected primary-expression before ',' token 32cpu.cpp:298:38: error: 'sp0' was not declared in this scope 33cpu.cpp:298:41: error: 'offsetof' was not declared in this scope 34cpu.cpp: In function 'bool CPU_SwitchTask(Bitu, TSwitchType, Bitu)': 35cpu.cpp:362:49: error: expected primary-expression before ',' token 36cpu.cpp:362:50: error: 'cr3' was not declared in this scope 37cpu.cpp:362:53: error: 'offsetof' was not declared in this scope 38cpu.cpp:363:49: error: expected primary-expression before ',' token 39cpu.cpp:363:50: error: 'eip' was not declared in this scope 40cpu.cpp:364:52: error: expected primary-expression before ',' token 41cpu.cpp:364:53: error: 'eflags' was not declared in this scope 42cpu.cpp:365:49: error: expected primary-expression before ',' token 43cpu.cpp:365:50: error: 'eax' was not declared in this scope 44cpu.cpp:366:49: error: expected primary-expression before ',' token 45cpu.cpp:366:50: error: 'ecx' was not declared in this scope 46cpu.cpp:367:49: error: expected primary-expression before ',' token 47cpu.cpp:367:50: error: 'edx' was not declared in this scope 48cpu.cpp:368:49: error: expected primary-expression before ',' token 49cpu.cpp:368:50: error: 'ebx' was not declared in this scope 50cpu.cpp:369:49: error: expected primary-expression before ',' token 51cpu.cpp:369:50: error: 'esp' was not declared in this scope 52cpu.cpp:370:49: error: expected primary-expression before ',' token 53cpu.cpp:370:50: error: 'ebp' was not declared in this scope 54cpu.cpp:371:49: error: expected primary-expression before ',' token 55cpu.cpp:371:50: error: 'edi' was not declared in this scope 56cpu.cpp:372:49: error: expected primary-expression before ',' token 57cpu.cpp:372:50: error: 'esi' was not declared in this scope 58cpu.cpp:374:48: error: expected primary-expression before ',' token 59cpu.cpp:375:48: error: expected primary-expression before ',' token 60cpu.cpp:376:48: error: expected primary-expression before ',' token
…Show last 50 lines
61cpu.cpp:377:48: error: expected primary-expression before ',' token 62cpu.cpp:378:48: error: expected primary-expression before ',' token 63cpu.cpp:379:48: error: expected primary-expression before ',' token 64cpu.cpp:380:49: error: expected primary-expression before ',' token 65cpu.cpp:380:50: error: 'ldt' was not declared in this scope 66cpu.cpp:403:42: error: expected primary-expression before ',' token 67cpu.cpp:403:43: error: 'eflags' was not declared in this scope 68cpu.cpp:403:49: error: 'offsetof' was not declared in this scope 69cpu.cpp:404:42: error: expected primary-expression before ',' token 70cpu.cpp:404:43: error: 'eip' was not declared in this scope 71cpu.cpp:406:42: error: expected primary-expression before ',' token 72cpu.cpp:406:43: error: 'eax' was not declared in this scope 73cpu.cpp:407:42: error: expected primary-expression before ',' token 74cpu.cpp:407:43: error: 'ecx' was not declared in this scope 75cpu.cpp:408:42: error: expected primary-expression before ',' token 76cpu.cpp:408:43: error: 'edx' was not declared in this scope 77cpu.cpp:409:42: error: expected primary-expression before ',' token 78cpu.cpp:409:43: error: 'ebx' was not declared in this scope 79cpu.cpp:410:42: error: expected primary-expression before ',' token 80cpu.cpp:410:43: error: 'esp' was not declared in this scope 81cpu.cpp:411:42: error: expected primary-expression before ',' token 82cpu.cpp:411:43: error: 'ebp' was not declared in this scope 83cpu.cpp:412:42: error: expected primary-expression before ',' token 84cpu.cpp:412:43: error: 'esi' was not declared in this scope 85cpu.cpp:413:42: error: expected primary-expression before ',' token 86cpu.cpp:413:43: error: 'edi' was not declared in this scope 87cpu.cpp:415:42: error: expected primary-expression before ',' token 88cpu.cpp:416:42: error: expected primary-expression before ',' token 89cpu.cpp:417:42: error: expected primary-expression before ',' token 90cpu.cpp:418:42: error: expected primary-expression before ',' token 91cpu.cpp:419:42: error: expected primary-expression before ',' token 92cpu.cpp:420:42: error: expected primary-expression before ',' token 93cpu.cpp:428:43: error: expected primary-expression before ',' token 94cpu.cpp:428:44: error: 'back' was not declared in this scope 95cpu.cpp:428:48: error: 'offsetof' was not declared in this scope 96cpu.cpp:430:43: error: expected primary-expression before ',' token 97cpu.cpp:430:44: error: 'back' was not declared in this scope 98cpu.cpp:430:48: error: 'offsetof' was not declared in this scope 99make[4]: *** [cpu.o] Error 1 100make[4]: Leaving directory `/c/dosbox_temp/src/cpu' 101make[3]: *** [all-recursive] Error 1 102make[3]: Leaving directory `/c/dosbox_temp/src/cpu' 103make[2]: *** [all-recursive] Error 1 104make[2]: Leaving directory `/c/dosbox_temp/src' 105make[1]: *** [all-recursive] Error 1 106make[1]: Leaving directory `/c/dosbox_temp' 107make: *** [all] Error 2 108 109태웅이@TEDYOO-PC /c/dosbox_temp 110$