[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kstars-devel
Subject:    [Kstars-devel] Problems with --enable-final
From:       Luciano Montanaro <luciano.montanaro () consulenti ! fastweb ! it>
Date:       2004-06-11 9:40:07
Message-ID: 200406111140.08039.luciano.montanaro () consulenti ! fastweb ! it
[Download RAW message or body]

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 
_______________________________________________
Kstars-devel mailing list
Kstars-devel@kde.org
https://mail.kde.org/mailman/listinfo/kstars-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic