----- Original Message ----- 
From: "Mark Dootson" <mark.doot...@znix.com>
To: "Sisyphus" <sisyph...@optusnet.com.au>
Cc: "perl-win32-users" <perl-win32-users@listserv.ActiveState.com>
Sent: Sunday, March 11, 2012 5:29 PM
Subject: Re: Why can't linker find CreateJobObjectA ?


> Hi,
>
> Looked at Perl 5.12.1 and that has following in CORE\Win32.h
>
> #ifndef _WIN32_WINNT
> #  define _WIN32_WINNT 0x0400
> #endif
>
> In compilers that support windows versions below XP, the CreateJobObject 
> definition will be wrapped in a
>
> #if _WIN32_WINNT >= 0x0500
> ....
> #endif
>
> block.
>
> So, I think you need an explicit
>
> #define _WIN32_WINNT 0x0501
>
> and all should be OK

An afterthought or two:
It's a bug, right ? (It smells like a bug to me.)
Is it a bug in perl ?
I'm thinking that CORE/win32.h should be assigning the value associated with 
the actual OS on which perl is running, rather than just assigning the 
minimum supported value.

Cheers,
Rob 

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to