[Kstars-devel] Problems with --enable-final
Luciano Montanaro
luciano.montanaro at consulenti.fastweb.it
Fri Jun 11 11:40:07 CEST 2004
When compiling with --enable-final (which I do for projects whose code I don't plan to touch...)
I get the following error:
philipsV4L.cpp:47: error: multiple definition of `enum Options'
QCamV4L.cpp:39: error: previous definition here
philipsV4L.cpp:48: error: conflicting types for `ioNoBlock'
QCamV4L.cpp:40: error: previous declaration as `Options ioNoBlock'
philipsV4L.cpp:49: error: conflicting types for `ioUseSelect'
QCamV4L.cpp:41: error: previous declaration as `Options ioUseSelect'
philipsV4L.cpp:50: error: conflicting types for `haveBrightness'
QCamV4L.cpp:42: error: previous declaration as `Options haveBrightness'
philipsV4L.cpp:51: error: conflicting types for `haveContrast'
QCamV4L.cpp:43: error: previous declaration as `Options haveContrast'
philipsV4L.cpp:52: error: conflicting types for `haveHue'
QCamV4L.cpp:44: error: previous declaration as `Options haveHue'
philipsV4L.cpp:53: error: conflicting types for `haveColor'
QCamV4L.cpp:45: error: previous declaration as `Options haveColor'
philipsV4L.cpp:54: error: conflicting types for `haveWhiteness'
QCamV4L.cpp:46: error: previous declaration as `Options haveWhiteness'
philipsV4L.cpp: In function `void updatePhilipsFrame(int, void*)':
philipsV4L.cpp:264: warning: unused variable `int tmpVal'
philipsV4L.cpp:230: warning: unused parameter `int d'
philipsV4L.cpp:230: warning: unused parameter `void*p'
The problem is that both philipsV4L.cpp and QCamV4L.cpp define the enum Options
(in just the same way, I'd say). The compilation could be fixed by either using different
names for the enums, using different namespaces, or putting the enum to its own header,
if it is meant to be shared.
Luciano
More information about the Kstars-devel
mailing list