try extern "C" __declspec(dllexport) instead of  __declspec(dllexport)...


On Thu, Aug 19, 2010 at 4:28 AM, <[email protected]> wrote:

>
>
> Greetings. I have a VC++ 2010 Express solution with two projects written in
> C. The first compiles a .dll and the second compiles a .dll, but also links
> with the first's corresponding .lib. Every export in the first has
> '__declspec(dllexport)' in the function declaration and definition. My
> second library links fine against every function in the first except for all
> exported symbols in one particular file. Using dumpbin.exe I can see all
> expected function symbols in the .dll and yet the linker always fails. Any
> idea why one file may have this problem while the others do not? I commented
> out all calls to the unresolved symbols except one and here's the output:
>
> error LNK2019: unresolved external symbol "void __cdecl BGDB_Delete(struct
> _BDADDR_t *)" (?BGDB_Delete@@YAXPAU_BDADDR_t@@@Z) referenced in function
> ...
>
> Any help is appreciated. Thanks. Jerry.
>
> [Non-text portions of this message have been removed]
>
> 
>



-- 
Cheers,
Deepak...
"Never doubt tht "A small Group of People can Chage d WorlD"...InDeeD It's d
only d thinG tht eveR HAS...CoreWorlD."


[Non-text portions of this message have been removed]

Reply via email to