Re: [sqlite] compiling tools for winrt

2013-01-09 Thread Joe Mistachkin

E. Timothy Uy wrote:
> 
> Hi, in xcompiling tools for winrt I get the errors below. I suspect this
> because I am using the vcvars for cross compiling winrt. Is there a way to
> make this work? 
> 

In order to build for WinRT, extra options are required on the NMAKE command
line.  Here is an example:

nmake /f Makefile.msc sqlite3.dll FOR_WINRT=1

--
Joe Mistachkin

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] compiling tools for winrt

2013-01-09 Thread E. Timothy Uy
Thanks Dimiter. I ended up making this change in Makefile.msc

165 165 !IFNDEF NSDKLIBPATH
166 -NSDKLIBPATH = $(WINDOWSSDKDIR)\lib
166 +NSDKLIBPATH = $(WINDOWSSDKDIR)\Lib\win8\um\x86
167 167 !ENDIF


On Wed, Jan 9, 2013 at 4:07 PM, Dimiter 'malkia' Stanev wrote:

> This looks like general compile problem.
>
> The imported functions below are found in kernel32.dll (kernel32.lib
> import library). But I'm not sure whether under WinRT kernel32.dll is still
> used (it might be).
>
> If you can either add kernel32.lib to your link flags, or with pragma
>
> #ifdef _MSC_VER
> #pragma comment(lib, "kernel32.lib")
> #endif
>
>
> On 1/9/2013 3:04 PM, E. Timothy Uy wrote:
>
>> Hi, in xcompiling tools for winrt I get the errors below. I suspect this
>> because I am using the vcvars for cross compiling winrt. Is there a way to
>> make this work?
>>
>> MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol
>> __imp__IsDebuggerPresent@0 referenced in function
>> ___raise_securityfailure
>> MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol
>> _IsProcessorFeaturePresent@4 referenced in function ___report_gsfailure
>> MSVCRT.lib(crtexe.obj) : error LNK2019: unresolved external symbol
>> __imp__EncodePointer@4 referenced in function _pre_c_init
>> MSVCRT.lib(atonexit.obj) : error LNK2001: unresolved external symbol
>> __imp__EncodePointer@4
>> MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol
>> __imp__**QueryPerformanceCounter@4 referenced in function
>> ___security_init_cookie
>> MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol
>> __imp__GetCurrentProcessId@0 referenced in function
>> ___security_init_cookie
>> MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol
>> __imp__GetCurrentThreadId@0 referenced in function
>> ___security_init_cookie
>> MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol
>> __imp__**GetSystemTimeAsFileTime@4 referenced in function
>> ___security_init_cookie
>> MSVCRT.lib(atonexit.obj) : error LNK2019: unresolved external symbol
>> __imp__DecodePointer@4 referenced in function __onexit
>> mkkeywordhash.exe : fatal error LNK1120: 8 unresolved externals
>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
>> Studio
>> 11.0\VC\bin\cl.exe"' : return code '0x2'
>> Stop.
>>
>>  __**_
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-**bin/mailman/listinfo/sqlite-**users
>
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] compiling tools for winrt

2013-01-09 Thread Dimiter 'malkia' Stanev

This looks like general compile problem.

The imported functions below are found in kernel32.dll (kernel32.lib 
import library). But I'm not sure whether under WinRT kernel32.dll is 
still used (it might be).


If you can either add kernel32.lib to your link flags, or with pragma

#ifdef _MSC_VER
#pragma comment(lib, "kernel32.lib")
#endif

On 1/9/2013 3:04 PM, E. Timothy Uy wrote:

Hi, in xcompiling tools for winrt I get the errors below. I suspect this
because I am using the vcvars for cross compiling winrt. Is there a way to
make this work?

MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol
__imp__IsDebuggerPresent@0 referenced in function ___raise_securityfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol
_IsProcessorFeaturePresent@4 referenced in function ___report_gsfailure
MSVCRT.lib(crtexe.obj) : error LNK2019: unresolved external symbol
__imp__EncodePointer@4 referenced in function _pre_c_init
MSVCRT.lib(atonexit.obj) : error LNK2001: unresolved external symbol
__imp__EncodePointer@4
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol
__imp__QueryPerformanceCounter@4 referenced in function
___security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol
__imp__GetCurrentProcessId@0 referenced in function ___security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol
__imp__GetCurrentThreadId@0 referenced in function ___security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol
__imp__GetSystemTimeAsFileTime@4 referenced in function
___security_init_cookie
MSVCRT.lib(atonexit.obj) : error LNK2019: unresolved external symbol
__imp__DecodePointer@4 referenced in function __onexit
mkkeywordhash.exe : fatal error LNK1120: 8 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\bin\cl.exe"' : return code '0x2'
Stop.


___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] compiling tools for winrt

2013-01-09 Thread E. Timothy Uy
Hi, in xcompiling tools for winrt I get the errors below. I suspect this
because I am using the vcvars for cross compiling winrt. Is there a way to
make this work?

MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol
__imp__IsDebuggerPresent@0 referenced in function ___raise_securityfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol
_IsProcessorFeaturePresent@4 referenced in function ___report_gsfailure
MSVCRT.lib(crtexe.obj) : error LNK2019: unresolved external symbol
__imp__EncodePointer@4 referenced in function _pre_c_init
MSVCRT.lib(atonexit.obj) : error LNK2001: unresolved external symbol
__imp__EncodePointer@4
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol
__imp__QueryPerformanceCounter@4 referenced in function
___security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol
__imp__GetCurrentProcessId@0 referenced in function ___security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol
__imp__GetCurrentThreadId@0 referenced in function ___security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol
__imp__GetSystemTimeAsFileTime@4 referenced in function
___security_init_cookie
MSVCRT.lib(atonexit.obj) : error LNK2019: unresolved external symbol
__imp__DecodePointer@4 referenced in function __onexit
mkkeywordhash.exe : fatal error LNK1120: 8 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\bin\cl.exe"' : return code '0x2'
Stop.
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users