Re: LNK2019 problem by larsims
larsims
Fri Jun 22 02:17:44 CDT 2007
On 22 Jun, 00:51, "Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp>
wrote:
> lars...@hotmail.com wrote:
> > My C program compiles, but I getLNK2019-errors during linking. The
> > cause is some symbols that are defined in some C-files that are not in
> > my project.
>
> > In VS6, these files ended up under "External dependencies", and
> > everything went smoothly. I am now using VS7. How do I tell "the
> > system" that it needs to also compile (and link) these files, without
> > taking them into my project (which I don't want to do, since it is a
> > lot of files, which I didn't make)?
>
> > I'm probably using the wrong terms, but hopefully you understand what
> > I am asking.
>
> What kind of files are they? .h or .cpp or .lib ??
>
> The usual fix for a link error is to enter the name of the desired lib
> file(s) in the project properties, under Link, Input.
>
> --
> Scott McPhillips [MVP VC++]
Thanks for answering. The files are .c-files.
I have tried adding the directory where the files are under Link,
Input, but as they are c-files they must be compiled first, so I
believe I must tell the compiler where to find them.
Lars