link problems

Kai Nacke kai at redstar.de
Sun Aug 4 09:43:34 PDT 2013


On Wednesday, 31 July 2013 at 19:29:45 UTC, Manfred Nowak wrote:
> Tried to build ldc as described in
>   
> http://wiki.dlang.org/Building_and_hacking_LDC_on_Windows_using_MSVC
>
> But no success:
>
> Fehler beim Buildvorgang.
>
> "C:\LDCenv\build-ldc2-x64\ALL_BUILD.vcxproj" (Standardziel) (1) 
> ->
> "C:\LDCenv\build-ldc2-x64\runtime\druntime-ldc.vcxproj" 
> (Standardziel)
> (6) ->
> "C:\LDCenv\build-ldc2-x64\ldc2.vcxproj" (Standardziel) (8) ->
> (Link Ziel) ->
>   configfile.obj : error LNK2019: unresolved external symbol 
> "public:
> __cdecl l
> ibconfig::Config::Config(void)" (??0Config at libconfig@@QEAA at XZ) 
> referenced
> in fu
> nction "public: __cdecl ConfigFile::ConfigFile(void)" (??
> 0ConfigFile@@QEAA at XZ)

Hi Manfred!

This is a problem with libconfig++. I can imagine 2 sources of 
errors here:

1) The path to libconfig++ on the cmake command line is wrong. 
This is the -DLIBCONFIG++_LIBRARY="..." parameter. Please note 
that the provided value is not checked by cmake.

2) It could also be a mismatch between static and dynamic 
compiled library. If you compile libconfig++ as DLL (the default) 
then you have to add -DLIBCONFIG_DLL=ON on the cmake command line.

I hope this helps.

Kai


More information about the digitalmars-d-ldc mailing list