Archivo de encabezado dentro de la misma solución
Frecuentes
Visto 63 veces
0
http://youtu.be/6NCtnKcwOas (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.
1 Respuestas
3
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.
Respondido 24 ago 12, 15:08
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas c++ visual-studio-2010 visual-studio dll or haz tu propia pregunta.
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. - Aleks