[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-dev] file name conflic cause compiler error

From: zou lunkai
Subject: [Gnash-dev] file name conflic cause compiler error
Date: Tue, 27 Feb 2007 11:42:03 +0800

I got a problem while compiling HEAD Gnash today.

The output error  looks like this:

* Sound.cpp: In function 'void gnash::sound_stop(const gnash::fn_call&)':
* Sound.cpp:312: error: 'sound_sample_impl' was not declared in this scope

To check the server/asobj/Sound.cpp, I found the problem was related
with file names.
Note that there is a 'sound.h' in  gnash/server  and a 'Sound.h' in
'sound_sample_impl' is defined in ./server/sound.h, and 'Sound.cpp'
is dependent on both
the two headfiles.

For my file system is case insensitive, the compiler could only find
one headfile 'Sound.h' or 'sound.h'. Then I got the above undeclared
symbol problem.

To fix that, changing the  directive '#include sound.h' to '#include
works for me. But it's not clean. Is it worthwhile to change the
server/sound.h to another
name like sound_definition.h or anything else to avoid  this conflict?

zou lunkai

reply via email to

[Prev in Thread] Current Thread [Next in Thread]