[Marble-devel] Compilation error at AbstractProjectionPrivate::lineStringToPolygon
Cezar Mocan
mocancezar at gmail.com
Sun Jun 10 23:41:37 UTC 2012
Hello!
I have been trying to "split" the lineStringToPolygon method from
AbstractProjection.cpp into two of the classes which inherit
AbstractProjection: CylindricalProjection and SphericalProjection. I made
the method virtual and created the lineStringToPolygon methods in both of
the above mentioned classes, but i get the following compilation error:
CMakeFiles/marblewidget.dir/Projections/CylindricalProjection.o: In
function
`Marble::AbstractProjectionPrivate::lineStringToPolygon(Marble::GeoDataLineString
const&, Marble::ViewportParams const*, QVector<QPolygonF*>&) const':
CylindricalProjection.cpp:(.text+0x210): multiple definition of
`Marble::AbstractProjectionPrivate::lineStringToPolygon(Marble::GeoDataLineString
const&, Marble::ViewportParams const*, QVector<QPolygonF*>&) const'
CMakeFiles/marblewidget.dir/Projections/AbstractProjection.o:AbstractProjection.cpp:(.text+0x3ca0):
first defined here
CMakeFiles/marblewidget.dir/Projections/SphericalProjection.o: In function
`Marble::AbstractProjectionPrivate::lineStringToPolygon(Marble::GeoDataLineString
const&, Marble::ViewportParams const*, QVector<QPolygonF*>&) const':
SphericalProjection.cpp:(.text+0x1160): multiple definition of
`Marble::AbstractProjectionPrivate::lineStringToPolygon(Marble::GeoDataLineString
const&, Marble::ViewportParams const*, QVector<QPolygonF*>&) const'
CMakeFiles/marblewidget.dir/Projections/AbstractProjection.o:AbstractProjection.cpp:(.text+0x3ca0):
first defined here
collect2: ld returned 1 exit status
Any idea what I'm doing wrong?
--
Cezar Mocan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20120611/70bbdd6d/attachment.html>
More information about the Marble-devel
mailing list