KDE/kdelibs

Peter Kümmel syntheticpp at gmx.net
Tue Feb 7 23:18:24 CET 2006


Michael Drüing wrote:

> #ifdef Q_WS_WIN
> #include <windows.h>
> #include "qt_windows.h"
> #include <win32_utils.h>
> static QRgb qt_colorref2qrgb(COLORREF col)
> {
>     return qRgb(GetRValue(col),GetGValue(col),GetBValue(col));
> }
> #endif

We are working on this, the problem is that in config.h unistd.h
is included, which disables the including of wingdi.h to avoid
the definition of symbols.

>  
> after that, all kdecore files compile fine. However, they do not link:
> 
> 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)
> 
> --Michael

setenv is in win/msvc/stdlib.h

Peter


More information about the Kde-buildsystem mailing list