A linker error has nothing to do with what header files you include
(usually).
Header files give compile time information, and with the exception of the
#pragma comment(lib..) directive, have nothing to do with the link stage of
the compile. If the program compiles OK, but doesn't link, then you have
all the correct headers.
To solve a link problem, you need to link to the correct library.
Quote:
> Hello,
> I need the AviFile functions for my application. I know that the library
> for these
> functions can be included by including vfw.h. Although I include this
> file, I get
> the link error LNK2001. I've got am example where the needed file is
> included
> through vfw.h. There this header file (vfw.h) is included in the header
> file of the implementation file.
> So my question is, why runs this example that looks the same way as my
> project?
> Is there any big fault I don't see???
> I appreciate any help!
> Thanks a lot
> Cnut
> -------