[Digikam-devel] GoSC2010 : linking error with MSVC 2008 under windows

Gilles Caulier caulier.gilles at gmail.com
Thu Sep 9 10:41:48 BST 2010


Michael,

I think that the nested public classes need to be exported as the
parent class is do

Marcel, what do you think about ? It's logic ?

Anyway, i will try this solution...

Gilles

2010/9/8 Gilles Caulier <caulier.gilles at gmail.com>:
> libkmap export rules is the same than digiKam, and currently, digiKam
> from trunk compile fine under MSVC.
>
> I don't think that we need an export export macro.
>
> Gilles Caulier
>
> 2010/9/8 Michael G. Hansen <mike at mghansen.de>:
>> On 09/08/2010 03:43 PM, Gilles Caulier wrote:
>>> Micheal,
>>>
>>> This one is for you (:=) :
>>>
>>> [ 88%] Building CXX object digikam/digikam/CMakeFiles/digikam.dir/main.obj
>>> main.cpp
>>> [ 88%] Building CXX object
>>> digikam/digikam/CMakeFiles/digikam.dir/digikamadaptor.obj
>>> digikamadaptor.cpp
>>> [ 88%] Building RC object digikam/digikam/CMakeFiles/digikam.dir/digikam.res
>>> Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
>>> Copyright (C) Microsoft Corporation.  All rights reserved.
>>>
>>> Linking CXX executable ..\..\bin\digikam.exe
>>> qtmain.lib(qtmain_win.obj) : .netmodule ou module MSIL compilÚ avec
>>> /GL trouvÚá; redÚmarrage de l'Údition de liens avec /LTCGá; ajoutez
>>> /LTCG Ó la lig
>>> ne de commande de l'Údition de liens pour amÚliorer les performances
>>> de l'╔diteur de liens
>>>     CrÚation de la bibliothÞque ..\..\bin\digikam.lib et de l'objet
>>> ..\..\bin\digikam.exp
>>> LIBCMT.lib(crt0init.obj) : warning LNK4098: conflit entre la
>>> bibliothÞque par dÚfaut 'msvcrt.lib' et les autres bibliothÞquesá;
>>> utilisez /NODEFAULTLIB
>>> :library
>>> gpsmarkertiler.obj : error LNK2001: symbole externe non rÚsolu
>>> "public: static class KMap::AbstractMarkerTiler::TileIndex __cdecl
>>> KMap::AbstractMarker
>>> Tiler::TileIndex::fromCoordinates(class KMap::GeoCoordinates const
>>> &,int)" (?fromCoordinates at TileIndex@AbstractMarkerTiler at KMap@@SA?AV123 at ABVGeoCoordi
>>> nates at 3@H at Z)
>>> ..\..\bin\digikam.exe : fatal error LNK1120: 1 externes non rÚsolus
>>
>> How does msvc++ handle nested classes? Do you need an extra export macro
>> for them? That's my only suggestion, but I can't test it...
>>
>> Michael
>> _______________________________________________
>> Digikam-devel mailing list
>> Digikam-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/digikam-devel
>>
>



More information about the Digikam-devel mailing list