I'm working on a project in C++ on Visual Studio 2017. I have a cpp
file and adequate header file that perform some functionality I need in my project, which someone wrote some time ago.
The problem is that this code is in C and my project is a C++ project. I tried to "translate" it into C++, but since I don't fully understand the code I'm having trouble doing so.
I thought perhaps a faster way would be to use the C files as thery are in my project. when I try to build it I get the following error:
Error C1010 unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? c:\users\pathName\file.c 124
I'm not sure how to tell the compiler not to look for "stdafx.h"
since it's a C
file. Is it possible to do so or do I have to "translate" the files to C++
?
Thank you