KDE/kdelibs

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Wed Feb 8 06:36:18 CET 2006


Michael Drüing schrieb:
> Hi,
> 
>>> kprocess.obj : error LNK2019: unresolved external symbol 
>> __imp__setenv
>>> referenced in function "protected: void __thiscall
>>> KProcess::setupEnvironment(void)" 
>> (?setupEnvironment at KProcess@@IAEXXZ)
>>> kcatalog.obj : error LNK2001: unresolved external symbol 
>> __imp__setenv
>>> ktimezones.obj : error LNK2001: unresolved external symbol 
>> __imp__setenv
>>> ktimezones.obj : error LNK2019: unresolved external symbol 
>> __imp__unsetenv
>>> referenced in function "public: virtual int __thiscall
>>> KSystemTimezone::offset(__int64)const " 
>> (?offset at KSystemTimezone@@UBEH_J at Z)
>>> ..\bin\kdecore.dll : fatal error LNK1120: 2 unresolved externals
>>>
>>> ...setenv and unsetenv don't seem to be part of any 
>> win32-library, neither
>>> kdewin32, nor any MSVC library (MSDN doesn't have an entry 
>> for {un}setenv
>>> either)
>> setenv is in win/msvc/stdlib.h
> 
> Well, seems that fakes.obj doesn't get built (from kdecore/fakes.c) for me.
> It seems that this is the problem: (kdecore/CMakeLists.txt:220)
> 
> if(UNIX)
>     set(kdecore_LIB_SRCS ${kdecore_LIB_SRCS} fakes.c)
> endif(UNIX)
This is wrong.
> 
> after commenting out the if/endif lines I finally got kdecore.{dll,lib}.
And this is wrong too :)
setenv has to be in kdewin32.lib (see setenv.c)
> 
> The next build problems are right afterwards, in kdecore/kconfig_compiler.
> I'll look at them tomorrow.
> 
> --Michael
Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060208/fc458f00/attachment.pgp 


More information about the Kde-buildsystem mailing list