Opened 17 years ago

Closed 17 years ago

Last modified 2 years ago

#1812 closed defect (fixed)

ALL: Compiling fails under MinGW

Reported by: eriktorbjorn Owned by: eriktorbjorn
Priority: normal Component: Port: Win32
Version: Keywords:
Cc: Game:

Description

The new MT-32 emulator does not compile for me with GCC under MinGW. This is the error message I get:

In file included from backends/midi/mt32/synth.h:55, from backends/midi/mt32/mt32.cpp:30: backends/midi/mt32/structures.h:44:1: "__int64" redefined In file included from c:/MinGW/include/windef.h:246, from c:/MinGW/include/windows.h:48, from common/stdafx.h:77, from backends/midi/emumidi.h:21, from backends/midi/mt32/mt32.cpp:25: c:/MinGW/include/winnt.h:134:1: this is the location of the previous definition make: *** [backends/midi/mt32/mt32.o] Error 1

Ticket imported from: #1051999. Ticket imported from: bugs/1812.

Change History (6)

comment:1 by eriktorbjorn, 17 years ago

Component: --Unset--
Owner: set to sev-

comment:2 by eriktorbjorn, 17 years ago

And that doesn't seem to be the only problem. If I remove the offending line, I get this when it gets to synth.cpp:

backends/midi/mt32/synth.cpp: In function `bool DetectSIMD()': backends/midi/mt32/synth.cpp:240: `_asm' undeclared (first use this function) backends/midi/mt32/synth.cpp:240: (Each undeclared identifier is reported only once for each function it appears in.) backends/midi/mt32/synth.cpp:240: parse error before `{' token cc1plus.exe: warnings being treated as errors backends/midi/mt32/synth.cpp:237: warning: unused variable `bool found_simd' backends/midi/mt32/synth.cpp: In function `bool Detect3DNow()': backends/midi/mt32/synth.cpp:279: parse error before `{' token backends/midi/mt32/synth.cpp:283: invalid suffix on integer constant backends/midi/mt32/synth.cpp:291: invalid suffix on integer constant backends/midi/mt32/synth.cpp:294: invalid suffix on integer constant backends/midi/mt32/synth.cpp:297: invalid suffix on integer constant backends/midi/mt32/synth.cpp:299: invalid suffix on integer constant backends/midi/mt32/synth.cpp:278: warning: unused variable `bool found3D' backends/midi/mt32/synth.cpp: In function `float iir_filter_sse(float, float*, float*, int)': backends/midi/mt32/synth.cpp:775: parse error before `{' token backends/midi/mt32/synth.cpp:784: invalid suffix on integer constant backends/midi/mt32/synth.cpp:791: invalid suffix on integer constant backends/midi/mt32/synth.cpp:798: invalid suffix on integer constant backends/midi/mt32/synth.cpp:802: invalid suffix on integer constant backends/midi/mt32/synth.cpp:816: invalid suffix on integer constant backends/midi/mt32/synth.cpp:823: invalid suffix on integer constant backends/midi/mt32/synth.cpp:830: invalid suffix on integer constant backends/midi/mt32/synth.cpp:834: invalid suffix on integer constant backends/midi/mt32/synth.cpp: At global scope: backends/midi/mt32/synth.cpp:843: syntax error before `*=' token backends/midi/mt32/synth.cpp: In function `float iir_filter_3dnow(float, float*, float*, int)': backends/midi/mt32/synth.cpp:863: parse error before `{' token backends/midi/mt32/synth.cpp:869: `movq' undeclared (first use this function) backends/midi/mt32/synth.cpp:853: warning: unused variable `float tmp' backends/midi/mt32/synth.cpp: At global scope: backends/midi/mt32/synth.cpp:929: syntax error before `*=' token backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1207: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer backends/midi/mt32/synth.cpp:1228: warning: aggregate has a partly bracketed initializer make: *** [backends/midi/mt32/synth.o] Error 1

comment:3 by eriktorbjorn, 17 years ago

That seems to be the end of the problems, though. The remaining files compiled without errors or warnings.

comment:4 by eriktorbjorn, 17 years ago

The only remaining problem now appears to be the __int64 thing.

comment:5 by eriktorbjorn, 17 years ago

Owner: changed from sev- to eriktorbjorn
Resolution: fixed
Status: newclosed

comment:6 by digitall, 2 years ago

Component: --Unset--Port: Win32
Note: See TracTickets for help on using tickets.