VOGONS


First post, by TeaRex

User metadata
Rank Member
Rank
Member
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -m32 -O3 -march=native -mtune=native -fomit-frame-pointer -ffast-math  -MT cpu.o -MD -MP -MF .deps/cpu.Tpo -c -o cpu.o cpu.cpp
In file included from ../../include/dos_system.h:29,
from ../../include/dos_inc.h:25,
from ../../include/programs.h:28,
from cpu.cpp:29:
../../include/cross.h:77: error: extra qualification ‘Cross::’ on member ‘IsPathAbsolute’
make[4]: *** [cpu.o] Error 1

If the extra "Cross::" is removed:

g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -m32 -O3 -march=native -mtune=native -fomit-frame-pointer -ffast-math  -MT programs.o -MD -MP -MF .deps/programs.Tpo -c -o programs.o programs.cpp
programs.cpp: In member function ‘virtual void CONFIG::Run()’:
programs.cpp:462: error: ‘Value::Etype’ is not a class or namespace
programs.cpp:465: error: ‘Value::Etype’ is not a class or namespace
make[3]: *** [programs.o] Error 1

I tried gcc 4.4 as well as gcc 4.5. This is Ubuntu Maverick if it matters.

tearex

Reply 1 of 2, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Thanks for reporting.
Does it work if you remove the Etype?

if (p->Get_type()==Value::V_BOOL)
...
} else if (p->Get_type()==Value::V_INT) {

1+1=10

Reply 2 of 2, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Committed the fixes.

1+1=10