How do you link to the Bluetooth API?

From: Scott Brewer (ScottBrewer_at_discussions.microsoft.com)
Date: 02/12/05

  • Next message: Mike Hall: "Mikehall Blog Question : .NET Compact Framework ?"
    Date: Sat, 12 Feb 2005 12:57:01 -0800
    
    

    Hi all,

    I'm trying to write a very simple application in EVC 4.0 that uses
    btdrt.lib. I am including bt_api.h, and linking to btdrt.lib. But when ever I
    compile the program I get the following linking errors;

    btdrt.lib(btdrt.obj) : error LNK2019: unresolved external symbol
    BthApiDllMain referenced in function DllMain
    btdrt.lib(btdrt.obj) : error LNK2001: unresolved external symbol g_fBthApiCOM
    btdrt.lib(btdrt.obj) : error LNK2019: unresolved external symbol
    BthApiDllCanUnloadNow referenced in function DllCanUnloadNow
    btdrt.lib(btdrt.obj) : error LNK2019: unresolved external symbol
    BthApiDllGetClassObject referenced in function DllGetClassObject
    btdrt.lib(btdrt.obj) : error LNK2019: unresolved external symbol
    BthApiDllRegisterServer referenced in function DllRegisterServer
    btdrt.lib(btdrt.obj) : error LNK2019: unresolved external symbol
    BthApiDllUnregisterServer referenced in function DllUnregisterServer

    Does anyone know what I am missing? It seems like I should be linking to
    another .lib file.

    Thanks for the help

    Scott


  • Next message: Mike Hall: "Mikehall Blog Question : .NET Compact Framework ?"

    Relevant Pages

    • Re: Compiling CERDISP.exe
      ... At his point I get linking errors. ... directory for files to compile. ... cerdisp.obj: error LNK2019: unresolved external symbol GetMessageW ... DispatchMessageW referenced in function WinMain ...
      (microsoft.public.windowsce.platbuilder)
    • error LNK2019: unresolved external symbol SmsOpen ??
      ... I compile in eVC++ having included the sms.h ... When I compile it everthing work just fine, but when I build it I get ... error LNK2019: unresolved external symbol SmsSendMessage ... structures which are declared in the header file, ...
      (microsoft.public.pocketpc.developer)
    • cant compile php_imagick on M$ windows ?
      ... i tried to compile php_imagick on my win box with visual c++ 6.0 ... but i got these errors when linking: ... imagick.obj: error LNK2001: unresolved external symbol ...
      (comp.lang.php)
    • [Q] btdrt.lib linking error. in EVC
      ... I'm trying to write a very simple application in EVC 4.0 that uses ... I am including bt_api.h, and linking to btdrt.lib. ... compile the program I get the following linking errors; ... btdrt.lib: error LNK2019: unresolved external symbol ...
      (microsoft.public.windowsce.platbuilder)
    • build error
      ... When I am using evc, ... Linking... ... corelibc.lib: error LNK2019: unresolved external symbol ...
      (microsoft.public.windowsce.embedded.vc)