Re: try, throw, and catch Gets a Linker Error

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Michael J. Salamone [eMVP] (mikesa#at#entrek#dot#com)
Date: 04/22/04


Date: Thu, 22 Apr 2004 03:13:28 -0700

What version of CE are you targetting? And what configuration (Pocket PC,
etc)

CE didn't support C++ exceptions until 4.0. Also, not every configuration
has it included.

If the config is Pocket PC/Smartphone 2003, there is a bug in the SDK. That
is, the platform supports it, but the libs in the SDK don't allow you to
build (you get link errors like you are seeing). You can get a fix from
Microsoft. More info here:
http://support.microsoft.com/default.aspx?scid=kb;[LN];830482.

-- 
Michael Salamone [eMVP]
Entrek Software, Inc.
www.entrek.com
"Artist" <artist@sj.speakeasy.net> wrote in message
news:24adnY_a_v9_7xrdRVn-vA@speakeasy.net...
> This code, which was taken right out of the help file examples, is causing
> linker errors:
>
>  char *buf;
>     try
>     {
>         buf = new char[512];
>  //       if( buf == 0 )  // The addition of these two lines now commented
> out makes no difference
>  //           throw "Memory allocation failure!";
>     }
>    catch( char * str )
>     {
>
>     }
>
> The error:
>
> CommOperations.obj : error LNK2001: unresolved external symbol "const
> type_info::`vftable'" (??_7type_info@@6B@)
> X86Dbg/CommOperations.exe : fatal error LNK1120: 1 unresolved externals
>
> The GX compiler option is in effect. What is wrong here?
>
>


Relevant Pages

  • RE: Windows CE / SDK version need clearifications
    ... you need to have an SDK for the specific configuration of the OS ... which you are targeting (for example, you can build a Windows CE ... use the Pocket PC 2003 SDK with any Pocket PC 2003 device, ...
    (microsoft.public.windowsce.embedded)
  • Re: how to make the emulator work in evc++4.0 sp3?
    ... I installed The PocketPC 2003 SDK, ... and I can see those in the "Platform Manager Configuration" dialog Box. ... POCKET PC 2003, and try to test connectivity it is not successful... ... I guess I need to first make the device config work in the platform manager ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Pocket PC cant access Internet via ISA proxy server using WPA
    ... May I the reason of pocket PC doesn't support WPAD or option just like ... automatic configuration script"? ... According to our wireless connection configuration, manual proxy server ... automatic configuration script" with the path to wpad.dat entered, ...
    (microsoft.public.pocketpc.wireless)
  • Re: Cant connect a HP iPaq w/windows mobile 2003, to my 2wire home portal 1800HW
    ... > broadcast SSID and it is not found by my pocket PC. ... > Ip Mananger program, and according to this I get only an IP adress ... > the message of connecting and nothing else happens. ... > Home Portal and a fake SSID not according to configuration. ...
    (microsoft.public.pocketpc)
  • Cant connect a HP iPaq w/windows mobile 2003, to my 2wire home portal 1800HW
    ... I've been trying to connect via the WiFi protocol my pocket pc ... some HomePortals of different users (obviously I don't connect them ... the message of connecting and nothing else happens. ... Home Portal and a fake SSID not according to configuration. ...
    (microsoft.public.pocketpc)