Do you use export symbol properlly ?<div><br></div><div>Do you link with right digiKam component ?</div><div><br></div><div>Can we see you patch for details ?</div><div><br></div><div>What's the QmlShow class do exactly ?</div>
<div><br></div><div>Gilles caulier</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>Gilles Caulier<br><br><div class="gmail_quote">2011/6/26 Dirk Tilger <span dir="ltr"><<a href="mailto:dirk.kde@miriup.de">dirk.kde@miriup.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On 2011-06-25, Dhruv Patel <<a href="mailto:dhruvkumarr.patel51@gmail.com">dhruvkumarr.patel51@gmail.com</a>> wrote:<br>
> i was trying to add a new class named QmlShow in core/utilities/qmlShow. I<br>
> have added it in core/CMakelists.txt and core/digikam/Cmakelists.txt. But<br>
> when I try to instantiate it in core/digikam/views/digikamview.cpp, I get<br>
> following error in make output:<br>
><br>
> Linking CXX executable digikam<br>
> CMakeFiles/digikam.dir/views/digikamview.cpp.o: In function<br>
> `Digikam::DigikamView::qml(QList<Digikam::ImageInfo>)':<br>
> /home/dhruv/digikam-sc/core/digikam/views/digikamview.cpp:1859: undefined<br>
> reference to `Digikam::QmlShow::QmlShow(QList<Digikam::ImageInfo>)'<br>
> collect2: ld returned 1 exit status<br>
> make[2]: *** [core/digikam/digikam] Error 1<br>
> make[1]: *** [core/digikam/CMakeFiles/digikam.dir/all] Error 2<br>
> make: *** [all] Error 2<br>
><br>
> Is there more to be done when we add new class?<br>
<br>
</div></div>Is the CPP file that contains<br>
Digikam::QmlShow::QmlShow(QList<Digikam::ImageInfo>) compiled during the<br>
build process? If not, you've made a mistake in the cmake configuration.<br>
<br>
If it is linked, is the declaration of<br>
Digikam::QmlShow::QmlShow(QList<Digikam::ImageInfo>) identical with the<br>
definition (i.e. are header file and cpp file in-sync)?<br>
<br>
Dirk.<br>
<br>
_______________________________________________<br>
Digikam-devel mailing list<br>
<a href="mailto:Digikam-devel@kde.org">Digikam-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/digikam-devel" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-devel</a><br>
</blockquote></div><br></div>