Archivo de encabezado dentro de la misma solución (select better quality!)

As you can see on the attached video, I have the two projects in my solution - a dll creator and a simple testing project. Just followed este tutorial .

Why does the MathFuncsDll.h still remain undetected?Everything works fine after specifying the full path after '#include'. However, I don't want to use such rough-and-ready method because it looks messy and unprofessionally.

preguntado el 24 de agosto de 12 a las 02:08

Are you sure that the header is in the same directory as your project? The header does not get copied to your project directory and so the #include "" will not work. -

1 Respuestas

If you can specify the file using an absolute path, but not by only using its filename, the compiler doesn't "know" about the folder containing that file.

You can tell the compiler about your additional include directories via the /I directivadocumentación). And of course you can set that via the IDE.

Setting include directories via IDE (example)

Respondido 24 ago 12, 15:08

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.