Can't build with mingw+visualstudio+scons+python+w32 (FUCKING w32 SHIT)
I have the WtsApi32.lib and .dll with the right syms but gcc says:
C:\src> scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o siaynoq.exe -mwindows main.o siaynoq.o hotkeys.o tiling.o tools.o -lwtsapi32 -lshell32
siaynoq.o(.text+0x76f):siaynoq.c: undefined reference to `WTSRegisterSessionNotification_AT_8'
siaynoq.o(.text+0x7c5):siaynoq.c: undefined reference to `WTSRegisterSessionNotification_AT_8'
siaynoq.o(.text+0xe16):siaynoq.c: undefined reference to `WTSUnRegisterSessionNotification_AT_4'
hotkeys.o(.text+0x475):hotkeys.c: undefined reference to `LockWorkStation'
tiling.o(.text+0xfc):tiling.c: undefined reference to `RealGetWindowClass'
collect2: ld returned 1 exit status
scons: *** [siaynoq.exe] Error 1
scons: building terminated because of errors.
If i remove the wtsapi32.lib it says:
D:\GNU\mingw\bin\ld.exe: cannot find -lwtsapi32
collect2: ld returned 1 exit status
scons: *** [siaynoq.exe] Error 1
scons: building terminated because of errors.
If I strings wtsapi32 I can find the undefined syms ...so i can't understand
how all the .lib noise works ://
any idea? build? patch? ...
btw i had to hardcode some defines, coz including wtsuser32.h the build crashes in
the same way.
So i had to add these lines into src/siaynoq.c
#include <windows.h>
#include <WinUser.h>
#define WM_WTSSESSION_CHANGE 0x02B1
#define WM_WTSSESSION_CHANGE 0x02B1
#define WTS_SESSION_UNLOCK 0x8
#define WTS_SESSION_LOCK 0x4
Thanks!
On Wed, Jul 18, 2007 at 09:03:06PM +1000, Nathan Hutchison wrote:
> http://dpi.sourceforge.net/site/
> Tile based win32 shell
>
> On 7/18/07, Dave Heistand <dheistand_AT_challiance.org> wrote:
> >
> >On Sat, 2007-07-14 at 21:16 +0200, Anselm R. Garbe wrote:
> >> Hi there,
> >>
> >> after several weeks of silence here a new release with several
> >> bugfixes:
> >>
> >> http://www.suckless.org/download/dwm-4.3.tar.gz
> >>
> >> Actually one year ago I released and announced dwm-0.1 ;) Much
> >> progress since then!
> >>
> >> Happy birthday dwm!
> >
> >A belated birthday wish to dwm! I've found that I am far less
> >productive with all other window managers and am looking forward to the
> >possibility of dwm on MS Windows as I am forced to do some Windows stuff
> >at work. Thanks ARG et. al. for dwm, it is the best window manager for
> >me!
> >
> >
Received on Wed Jul 18 2007 - 17:45:08 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:46:34 UTC