Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#269 Error: ambiguates old declaration

open
nobody
None
5
2011-09-08
2011-09-08
Malcolm Lewis
No

When building pearpc on the Open Build Service for 32bit arch and using gcc 4.6 ONLY I get the following error;

g++ -DHAVE_CONFIG_H -I. -I../../.. -I ../.. -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fno-strict-aliasing -Wundef -Wall -Woverloaded-virtual -fsigned-char -O3 -fomit-frame-pointer -g -fno-inline -pthread -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT ppc_mmu.o -MD -MP -MF .deps/ppc_mmu.Tpo -c -o ppc_mmu.o ppc_mmu.cc

In file included from ppc_mmu.cc:31:0:
ppc_mmu.h:70:49: error: new declaration 'bool ppc_init_physical_memory(uint)'
../../cpu/mem.h:26:6: error: ambiguates old declaration 'bool ppc_init_physical_memory(uint)'
ppc_mmu.cc: In function 'bool ppc_init_physical_memory(uint)':
ppc_mmu.cc:869:49: error: new declaration 'bool ppc_init_physical_memory(uint)'
../../cpu/mem.h:26:6: error: ambiguates old declaration 'bool ppc_init_physical_memory(uint)'

Everywhere you have used FASTCALL except in mem.h, causing the error. Is FASTCALL just missing?

Discussion