Home > Archive > SQL Anywhere ultralite > April 2005 > Re: Ultralite in Windows XP - linker error









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Ultralite in Windows XP - linker error
Timothy Dean

2005-04-22, 8:23 pm

What if I am statically linking? Isn't the UL_USE_DLL for using the runtime
engine? Or am I forced to distribute the dll when running Ultralite on
Windows XP. When I deploy to the PocketPC device, I am not deploying a dll.
Thanks.

Tim

"Tim McClements" < mcclemenXnospam@syba
se.com> wrote in message
news:422f4c1f$1@foru
ms-2-dub...
> When linking with the unicode DLL, you need to #define UNICODE and
> UL_USE_DLL. Have you done this? I suspect UL_USE_DLL may be missing

because
> the calling convention (__cdecl) looks wrong in the error you quoted.
>
> - Tim
>
> "Timothy Dean" <tim. dean@mobiledataforce
.com> wrote in message
> news:422e3196$1@foru
ms-2-dub...
char[color=darkred]
getting[color=darkre
d]
another[color=darkre
d]
>
>



Tim McClements

2005-04-25, 1:23 pm

UL_USE_DLL must be #defined if and only if you're linking against a DLL
import library. If you don't define it, or define it when you shouldn't,
you'll get link errors because the function prototypes will have the wrong
decoration (calling convention). This is independent of whether you're using
the engine version or not.

UltraLite import libraries are named like ulimp*.lib (with a matching DLL to
deploy), while static libraries are named ulrt*.lib.

Yes, we only support a DLL runtime on NT. I think static linking on CE is a
good approach though (one less file to deploy, and no version mismatch
issues).

- Tim

"Timothy Dean" <tim. dean@mobiledataforce
.com> wrote in message
news:4269850d$1@foru
ms-2-dub...
> What if I am statically linking? Isn't the UL_USE_DLL for using the
> runtime
> engine? Or am I forced to distribute the dll when running Ultralite on
> Windows XP. When I deploy to the PocketPC device, I am not deploying a
> dll.
> Thanks.
>
> Tim
>
> "Tim McClements" < mcclemenXnospam@syba
se.com> wrote in message
> news:422f4c1f$1@foru
ms-2-dub...
> because
> char
> getting
> another
>
>



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com