Skip to contentSkip to conversation

header include order causes build failure

Qemu-devel Christoph Egger 1 participant 1 message May 26, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

qemu build system includes third party headers before qemu headers which is wrong. It should be the other way around.

When 'nas' (Network Audio System, http://www.pdl.cmu.edu/NASD/Downloads/NASDcode.html)
is installed then there is an external "audio/audio.h".

Due to the wrong header include order this one is used instead of qemu's one and causes a build error saying that QEMUSoundCard is not defined.

gcc error message:
hw/wm8750.c:30:error: expected specifier-qualifier-list before 'QEMUSoundCard'

Christoph

Signature · 6 lines
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632