VOGONS


Build 0.74 in MingW

Topic actions

First post, by theelf

User metadata
Rank Oldbie
Rank
Oldbie

Hi, sorry, i tried to build dosbox 0.74 in mingw, WinXP

After reading some post, i installed gcc/g++ 4.6.2, but same error happen in 4.7.x

here is the error, well, at least the part i can copy

Any ideas?

The last time i compile dosbox in mingw was 0.72 and no problem, but was years ago

Thanks!!

r: 'ENUMLOGFONTEXDV' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/wingdi.h:3126:30:
r: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/wingdi.h:3126:14:
r: 'PENUMLOGFONTEXDV' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/wingdi.h:3127:31:
r: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/wingdi.h:3127:14:
r: 'LPENUMLOGFONTEXDV' no se declar≤ en este ßmbito
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../inc
windows.h:66:0,
from ../../include/cross.h:83,
from ../../include/dos_system.h:29,
from ../../include/dos_inc.h:25,
from ../../include/programs.h:28,
from cpu.cpp:29:
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3567:22
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3567:14
or: 'WNDCLASS' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3568:24
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3568:14
or: 'WNDCLASSEX' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3569:26
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3569:14
or: 'MENUITEMINFO' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3570:29
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3570:14
or: 'LPCMENUITEMINFO' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3571:26
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3571:14
or: 'MSGBOXPARAMS' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3572:26
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3572:14
or: 'HIGHCONTRAST' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3573:24
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3573:14
or: 'SERIALKEYS' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3574:25
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3574:14
or: 'SOUNDSENTRY' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3575:26
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3575:14
or: 'CREATESTRUCT' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3576:27
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3576:14
or: 'CBT_CREATEWND' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3577:29
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3577:14
or: 'MDICREATESTRUCT' no se declar≤ en este ßmbito
Show last 238 lines
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3578:26
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3578:14
or: 'MULTIKEYHELP' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3579:27
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3579:14
or: 'MONITORINFOEX' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3715:25
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3715:14
or: 'ICONMETRICS' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3716:30
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:3716:14
or: 'NONCLIENTMETRICS' no se declar≤ en este ßmbito
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../inc
windows.h:67:0,
from ../../include/cross.h:83,
from ../../include/dos_system.h:29,
from ../../include/dos_inc.h:25,
from ../../include/programs.h:28,
from cpu.cpp:29:
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnls.h:627:22:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnls.h:627:14:
: 'CPINFOEX' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnls.h:628:24:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnls.h:628:14:
: 'LPCPINFOEX' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnls.h:629:25:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnls.h:629:14:
: 'CURRENCYFMT' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnls.h:630:27:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnls.h:630:14:
: 'LPCURRENCYFMT' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnls.h:631:23:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnls.h:631:14:
: 'NUMBERFMT' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnls.h:632:25:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnls.h:632:14:
: 'LPNUMBERFMT' no se declar≤ en este ßmbito
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../inc
windows.h:69:0,
from ../../include/cross.h:83,
from ../../include/dos_system.h:29,
from ../../include/dos_inc.h:25,
from ../../include/programs.h:28,
from cpu.cpp:29:
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnetwk.h:314:25
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnetwk.h:314:14
or: 'NETRESOURCE' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnetwk.h:315:30
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnetwk.h:315:14
or: 'CONNECTDLGSTRUCT' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnetwk.h:316:27
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnetwk.h:316:14
or: 'DISCDLGSTRUCT' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnetwk.h:317:30
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnetwk.h:317:14
or: 'REMOTE_NAME_INFO' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnetwk.h:318:33
or: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winnetwk.h:318:14
or: 'UNIVERSAL_NAME_INFO' no se declar≤ en este ßmbito
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../inc
windows.h:70:0,
from ../../include/cross.h:83,
from ../../include/dos_system.h:29,
from ../../include/dos_inc.h:25,
from ../../include/programs.h:28,
from cpu.cpp:29:
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winreg.h:136:20:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winreg.h:136:14:
: 'VALENT' no se declar≤ en este ßmbito
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../inc
windows.h:71:0,
from ../../include/cross.h:83,
from ../../include/dos_system.h:29,
from ../../include/dos_inc.h:25,
from ../../include/programs.h:28,
from cpu.cpp:29:
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:268:33:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:268:14:
: 'ENUM_SERVICE_STATUS' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:269:41:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:269:14:
: 'ENUM_SERVICE_STATUS_PROCESS' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:270:43:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:270:14:
: 'LPENUM_SERVICE_STATUS_PROCESS' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:271:34:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:271:14:
: 'QUERY_SERVICE_CONFIG' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:272:39:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:272:14:
: 'QUERY_SERVICE_LOCK_STATUS' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:273:33:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:273:14:
: 'SERVICE_TABLE_ENTRY' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:274:37:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:274:14:
: 'LPSERVICE_MAIN_FUNCTION' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:275:33:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:275:14:
: 'SERVICE_DESCRIPTION' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:276:35:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:276:14:
: 'LPSERVICE_DESCRIPTION' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:277:37:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:277:14:
: 'SERVICE_FAILURE_ACTIONS' no se declar≤ en este ßmbito
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:278:39:
: typedef '__AW' estß inicializado (utilice decltype en su lugar)
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsvc.h:278:14:
: 'LPSERVICE_FAILURE_ACTIONS' no se declar≤ en este ßmbito
In file included from ../../include/dos_system.h:29:0,
from ../../include/dos_inc.h:25,
from ../../include/programs.h:28,
from cpu.cpp:29:
../../include/cross.h:88:2: error: 'WIN32_FIND_DATA' no nombra a un tipo
In file included from ../../include/programs.h:28:0,
from cpu.cpp:29:
../../include/dos_inc.h: En la funci≤n miembro 'void DOS_MCB::SetFileName(c
char*)':
../../include/dos_inc.h:543:78: error: expected primary-expression before '
ken
../../include/dos_inc.h:543:79: error: 'filename' no se declar≤ en este ßmb
../../include/dos_inc.h:543:87: error: 'offsetof' no se declar≤ en este ßmb
../../include/dos_inc.h: En la funci≤n miembro 'void DOS_MCB::GetFileName(c
':
../../include/dos_inc.h:544:71: error: expected primary-expression before '
ken
../../include/dos_inc.h:544:72: error: 'filename' no se declar≤ en este ßmb
../../include/dos_inc.h:544:80: error: 'offsetof' no se declar≤ en este ßmb
cpu.cpp: En la funci≤n miembro 'void TaskStateSegment::Get_SSx_ESPx(Bitu, B
Bitu&)':
cpu.cpp:294:37: error: expected primary-expression before ',' token
cpu.cpp:294:38: error: 'esp0' no se declar≤ en este ßmbito
cpu.cpp:294:42: error: 'offsetof' no se declar≤ en este ßmbito
cpu.cpp:298:37: error: expected primary-expression before ',' token
cpu.cpp:298:38: error: 'sp0' no se declar≤ en este ßmbito
cpu.cpp:298:41: error: 'offsetof' no se declar≤ en este ßmbito
cpu.cpp: En la funci≤n 'bool CPU_SwitchTask(Bitu, TSwitchType, Bitu)':
cpu.cpp:362:49: error: expected primary-expression before ',' token
cpu.cpp:362:50: error: 'cr3' no se declar≤ en este ßmbito
cpu.cpp:362:53: error: 'offsetof' no se declar≤ en este ßmbito
cpu.cpp:363:49: error: expected primary-expression before ',' token
cpu.cpp:363:50: error: 'eip' no se declar≤ en este ßmbito
cpu.cpp:364:52: error: expected primary-expression before ',' token
cpu.cpp:364:53: error: 'eflags' no se declar≤ en este ßmbito
cpu.cpp:365:49: error: expected primary-expression before ',' token
cpu.cpp:365:50: error: 'eax' no se declar≤ en este ßmbito
cpu.cpp:366:49: error: expected primary-expression before ',' token
cpu.cpp:366:50: error: 'ecx' no se declar≤ en este ßmbito
cpu.cpp:367:49: error: expected primary-expression before ',' token
cpu.cpp:367:50: error: 'edx' no se declar≤ en este ßmbito
cpu.cpp:368:49: error: expected primary-expression before ',' token
cpu.cpp:368:50: error: 'ebx' no se declar≤ en este ßmbito
cpu.cpp:369:49: error: expected primary-expression before ',' token
cpu.cpp:369:50: error: 'esp' no se declar≤ en este ßmbito
cpu.cpp:370:49: error: expected primary-expression before ',' token
cpu.cpp:370:50: error: 'ebp' no se declar≤ en este ßmbito
cpu.cpp:371:49: error: expected primary-expression before ',' token
cpu.cpp:371:50: error: 'edi' no se declar≤ en este ßmbito
cpu.cpp:372:49: error: expected primary-expression before ',' token
cpu.cpp:372:50: error: 'esi' no se declar≤ en este ßmbito
cpu.cpp:374:48: error: expected primary-expression before ',' token
cpu.cpp:375:48: error: expected primary-expression before ',' token
cpu.cpp:376:48: error: expected primary-expression before ',' token
cpu.cpp:377:48: error: expected primary-expression before ',' token
cpu.cpp:378:48: error: expected primary-expression before ',' token
cpu.cpp:379:48: error: expected primary-expression before ',' token
cpu.cpp:380:49: error: expected primary-expression before ',' token
cpu.cpp:380:50: error: 'ldt' no se declar≤ en este ßmbito
cpu.cpp:403:42: error: expected primary-expression before ',' token
cpu.cpp:403:43: error: 'eflags' no se declar≤ en este ßmbito
cpu.cpp:403:49: error: 'offsetof' no se declar≤ en este ßmbito
cpu.cpp:404:42: error: expected primary-expression before ',' token
cpu.cpp:404:43: error: 'eip' no se declar≤ en este ßmbito
cpu.cpp:406:42: error: expected primary-expression before ',' token
cpu.cpp:406:43: error: 'eax' no se declar≤ en este ßmbito
cpu.cpp:407:42: error: expected primary-expression before ',' token
cpu.cpp:407:43: error: 'ecx' no se declar≤ en este ßmbito
cpu.cpp:408:42: error: expected primary-expression before ',' token
cpu.cpp:408:43: error: 'edx' no se declar≤ en este ßmbito
cpu.cpp:409:42: error: expected primary-expression before ',' token
cpu.cpp:409:43: error: 'ebx' no se declar≤ en este ßmbito
cpu.cpp:410:42: error: expected primary-expression before ',' token
cpu.cpp:410:43: error: 'esp' no se declar≤ en este ßmbito
cpu.cpp:411:42: error: expected primary-expression before ',' token
cpu.cpp:411:43: error: 'ebp' no se declar≤ en este ßmbito
cpu.cpp:412:42: error: expected primary-expression before ',' token
cpu.cpp:412:43: error: 'esi' no se declar≤ en este ßmbito
cpu.cpp:413:42: error: expected primary-expression before ',' token
cpu.cpp:413:43: error: 'edi' no se declar≤ en este ßmbito
cpu.cpp:415:42: error: expected primary-expression before ',' token
cpu.cpp:416:42: error: expected primary-expression before ',' token
cpu.cpp:417:42: error: expected primary-expression before ',' token
cpu.cpp:418:42: error: expected primary-expression before ',' token
cpu.cpp:419:42: error: expected primary-expression before ',' token
cpu.cpp:420:42: error: expected primary-expression before ',' token
cpu.cpp:428:43: error: expected primary-expression before ',' token
cpu.cpp:428:44: error: 'back' no se declar≤ en este ßmbito
cpu.cpp:428:48: error: 'offsetof' no se declar≤ en este ßmbito
cpu.cpp:430:43: error: expected primary-expression before ',' token
cpu.cpp:430:44: error: 'back' no se declar≤ en este ßmbito
cpu.cpp:430:48: error: 'offsetof' no se declar≤ en este ßmbito
make[4]: *** [cpu.o] Error 1
make[4]: Leaving directory `/dosbox/src/cpu'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/dosbox/src/cpu'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/dosbox/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/dosbox'
make: *** [all] Error 2

Reply 1 of 4, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Use the current SVN with recent mingw GCC versions. 0.74 will not compile.

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 4, by theelf

User metadata
Rank Oldbie
Rank
Oldbie

Hi!

Thanks!!

Where i can download a SVN? i downloaded one from sourceforge, 3869, but dont have any configure file...

I run autogen.sh, it says... Now you are ready to run ./configure.

But no configure

Thanks!!

Reply 4 of 4, by theelf

User metadata
Rank Oldbie
Rank
Oldbie
Qbix wrote:

Thank you!!!

Really, great help

The svn compile perfectly. In gcc 4.6.2 not compile, but I installed new mingw, 4.8.1 and perfect

Again, thank you for the help