Code Owl <
cod...@gmail.com> wrote in
news:860d9731-115c-4bf9...@googlegroups.com:
> Hi there,
>
> Basically I have created a simple C++ Static Library and linked it to
> a simple Console Application following the steps here:
>
https://msdn.microsoft.com/en-us/library/ms235627.aspx
>
> All this worked as expected.
>
> Then I added a second class (.cpp and .h) to the static library and I
> can not get that to link into the console app. The static library
> builds successfully but the console app throws the following error
> when I attempt to build it:
>
> fatal error C1083: Cannot open include file: 'MyMathFuncs2.h': No such
> file or directory
Looks like you have messed something up. I even looked at the
stackoverflow page - yup, MyMathFuncs2 is a class name, not a header file
name. The header file name is MathFuncsLib2.h.
A tip: when you post problems here or elsewhere, include only the
relevant full set of *non-working* code. Currently on the stackoverflow
page you have listed a complete working solution (not needed) and a
partial non-working solution (most important bits missing), this is not
helpful.
Cheers
Paavo