Inclusion of C file
-
Hi, I have a Visual C++ MFC Dialog based application. And I would like to include a .c and .h file in the project. When I tried to compile this project I had the following error: Unexpected end of file while looking for precompiled header directive, fatal error C1010. If anyone could help me with regards including c-code files in my project. Thanking you in anticipation
-
Hi, I have a Visual C++ MFC Dialog based application. And I would like to include a .c and .h file in the project. When I tried to compile this project I had the following error: Unexpected end of file while looking for precompiled header directive, fatal error C1010. If anyone could help me with regards including c-code files in my project. Thanking you in anticipation
You need to use automatic use of precompliled headers. Select project/settings (or ALT+F7) then, in the Project Settings Dialog, select the C/C++ tab, then select the Precompiled Headers item in the combo box, and select the Automatic use of precompliled headers option. Regards Carlos Antollini. Sonork ID 100.10529 cantollini
-
Hi, I have a Visual C++ MFC Dialog based application. And I would like to include a .c and .h file in the project. When I tried to compile this project I had the following error: Unexpected end of file while looking for precompiled header directive, fatal error C1010. If anyone could help me with regards including c-code files in my project. Thanking you in anticipation
-
Hi, I have a Visual C++ MFC Dialog based application. And I would like to include a .c and .h file in the project. When I tried to compile this project I had the following error: Unexpected end of file while looking for precompiled header directive, fatal error C1010. If anyone could help me with regards including c-code files in my project. Thanking you in anticipation
The project has set the c file to use a precompiled header (through stdafx.h). Since the c file doesn't have an #include "stdafx.h" the compiler gets an error searching for it. You just need to turn this option off for the file, through the file properties. Hope this helps, Lan
-
Hi, I have a Visual C++ MFC Dialog based application. And I would like to include a .c and .h file in the project. When I tried to compile this project I had the following error: Unexpected end of file while looking for precompiled header directive, fatal error C1010. If anyone could help me with regards including c-code files in my project. Thanking you in anticipation
It's working, thank you all!!!