vata / xarino

Automatically exported from code.google.com/p/xarino
Other
2 stars 0 forks source link

Xarino will not build with debug enable #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. check out source code
2. attempt to build with --enable-debug option

What is the expected output? What do you see instead?

The build fails due to differences in gcc's treatment of scope:
../Kernel/ccfile.cpp: In constructor ‘CCDiskFile::CCDiskFile(std::fstream*,
PathName, INT32, INT32, UINT32, BOOL, BOOL)’:
../Kernel/ccfile.cpp:4473: error: ‘FALSE’ was not declared in this scope
../Kernel/ccfile.cpp: In constructor ‘CCDiskFile::CCDiskFile(PathName,
INT32, INT32, UINT32, BOOL, BOOL)’:
../Kernel/ccfile.cpp:4509: error: no matching function for call to
‘operator new(unsigned int, const char [21], int)’
/usr/include/c++/4.3/new:95: note: candidates are: void* operator new(size_t)
/usr/include/c++/4.3/new:99: note:                 void* operator
new(size_t, const std::nothrow_t&)
/usr/include/c++/4.3/new:105: note:                 void* operator
new(size_t, void*)
../Kernel/ccfile.cpp:4535: error: ‘FALSE’ was not declared in this scope
../Kernel/ccfile.cpp: In member function ‘virtual BOOL
CCDiskFile::open(PathName, INT32, INT32)’:
../Kernel/ccfile.cpp:4567: error: ‘FALSE’ was not declared in this scope
../Kernel/ccfile.cpp:4598: error: ‘FALSE’ was not declared in this scope
../Kernel/ccfile.cpp:4601: error: ‘TRUE’ was not declared in this scope
../Kernel/ccfile.cpp: In member function ‘virtual BOOL
CCDiskFile::GetName(StringBase*) const’:
../Kernel/ccfile.cpp:4725: error: ‘TRUE’ was not declared in this scope
../Kernel/ccfile.cpp: In constructor ‘CCMemFile::CCMemFile(BOOL, BOOL)’:
../Kernel/ccfile.cpp:4799: error: ‘FALSE’ was not declared in this scope
../Kernel/ccfile.cpp:4800: error: ‘TRUE’ was not declared in this scope
../Kernel/ccfile.cpp:4804: error: ‘MemFile’ was not declared in this scope
../Kernel/ccfile.cpp: In constructor ‘CCMemFile::CCMemFile(void*, UINT32,
FileAccess, BOOL, BOOL)’:
../Kernel/ccfile.cpp:4832: error: ‘FALSE’ was not declared in this scope
../Kernel/ccfile.cpp:4856: error: ‘MemFile’ was not declared in this scope
../Kernel/ccfile.cpp:4856: error: ‘BYTE’ was not declared in this scope
../Kernel/ccfile.cpp:4856: error: expected primary-expression before ‘)’ 
token
../Kernel/ccfile.cpp:4856: error: expected `;' before ‘pFile’
../Kernel/ccfile.cpp:4864: error: ‘TRUE’ was not declared in this scope
../Kernel/ccfile.cpp:4873: error: ‘TRUE’ was not declared in this scope
../Kernel/ccfile.cpp:4891: error: ‘TRUE’ was not declared in this scope
../Kernel/ccfile.cpp: At global scope:
../Kernel/ccfile.cpp:4950: error: ‘BOOL CCMemFile::GetBuffer’ is not a
static member of ‘class CCMemFile’
../Kernel/ccfile.cpp:4950: error: ‘BYTE’ was not declared in this scope
../Kernel/ccfile.cpp:4950: error: ‘ppBuffer’ was not declared in this scope
../Kernel/ccfile.cpp:4950: error: expected primary-expression before ‘*’ 
token
../Kernel/ccfile.cpp:4950: error: ‘pSize’ was not declared in this scope
../Kernel/ccfile.cpp:4950: error: initializer expression list treated as
compound expression
../Kernel/ccfile.cpp:4951: error: expected ‘,’ or ‘;’ before ‘{’ 
token
make[2]: *** [libXar_a-ccfile.o] Error 1
make[2]: Leaving directory `/home/tom/xarino/trunk/xarlib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/tom/xarino/trunk/xarlib'
make: *** [all-recursive] Error 1

Original issue reported on code.google.com by tom....@gmail.com on 24 Jan 2009 at 9:59

GoogleCodeExporter commented 9 years ago
the problem was due to an incorrect version of the wxwidgets dbg package being
installed, not a problem with the source

Original comment by tom....@gmail.com on 24 Jan 2009 at 10:05