I'm developing an application that should run on multiple
devices and PPC versions. It uses CE databases.

When I build my project for Palm-size PC 2.11 emulator
the linker returns following errors (in debug and release
configuration).

error LNK2001: unresolved external symbol "public: static
int __stdcall CCeDBDatabase::Exists(unsigned short const
*)" (?Exists@CCeDBDatabase@@SGHPBG@Z)

I get a similar error if I use the variant with the CEOID
argument instead of the LPCWSTR:

error LNK2001: unresolved external symbol "public: static
int __stdcall CCeDBDatabase::Exists(unsigned long)" (?
Exists@CCeDBDatabase@@SGHK@Z)

No problems for SH3 and MIPS and no problems for PPC or
PPC2002.

I took a deep look into the x86em libs and dlls and I
found

?Exists@CCeDBDatabase@@SAHK@Z
?Exists@CCeDBDatabase@@SAHPBG@Z

with 'A' not with 'G'.

I searched the MS knowledge base but I didn't find
anything about that.
Any ideas?

Claus

(I posted this in some other newsgroups. But I think this
is the right one.)

Re: Error LNK2001 for PsPC emulator by Claus

Claus
Wed Dec 17 02:52:35 CST 2003

Russ Keldorph [MS] answered this in the newsgroup
microsoft.public.windowsce.embedded.vc

I had to remove /Gz from the project options. (Athough I don't know why this
was there.)

Thanks to all
Claus


"Claus" <anonymous@discussions.microsoft.com> schrieb im Newsbeitrag
news:0d9201c3bfe9$a03b4570$a101280a@phx.gbl...
> I'm developing an application that should run on multiple
> devices and PPC versions. It uses CE databases.
>
> When I build my project for Palm-size PC 2.11 emulator
> the linker returns following errors (in debug and release
> configuration).
>
> error LNK2001: unresolved external symbol "public: static
> int __stdcall CCeDBDatabase::Exists(unsigned short const
> *)" (?Exists@CCeDBDatabase@@SGHPBG@Z)
>
> I get a similar error if I use the variant with the CEOID
> argument instead of the LPCWSTR:
>
> error LNK2001: unresolved external symbol "public: static
> int __stdcall CCeDBDatabase::Exists(unsigned long)" (?
> Exists@CCeDBDatabase@@SGHK@Z)
>
> No problems for SH3 and MIPS and no problems for PPC or
> PPC2002.
>
> I took a deep look into the x86em libs and dlls and I
> found
>
> ?Exists@CCeDBDatabase@@SAHK@Z
> ?Exists@CCeDBDatabase@@SAHPBG@Z
>
> with 'A' not with 'G'.
>
> I searched the MS knowledge base but I didn't find
> anything about that.
> Any ideas?
>
> Claus
>
> (I posted this in some other newsgroups. But I think this
> is the right one.)
>
>
>