Hi there.

I have a dll and a client app which uses it.

When dll functions are defined in a header file everything works fine.

When they are defined in the source file, I get unresolved references for
those functions when I try to build the client app.

This is a debug build, and I am not using function inlining.

Any pointers appreciated.

Re: function definition in .cpp file causes LNK2001 by Victor

Victor
Fri Apr 22 09:05:51 CDT 2005

Andrew Marshall wrote:
> I have a dll and a client app which uses it.
>
> When dll functions are defined in a header file everything works fine.
>
> When they are defined in the source file, I get unresolved references for
> those functions when I try to build the client app.
>
> This is a debug build, and I am not using function inlining.

Have you included the "export library" (the '.lib' file) from your DLL
in the linker _input_ for your application?

V