c++ - Visual Studio - why does stdafx.h gets embedded -
i unix guy project need code in vs 2015. need write gmock test cases c++ classes.
i first tried start sample project selected file->new->project->win32->win32 console application. project did got created default name consoleapplication2.cpp having embedded statement -
#include "stdafx.h"
i found if delete line code fails compile - in unix create .h , .cpp files , create make file - aim start project - create .h files first , create .cpp / gmock test cases , build build all
please let me know if there option in vs same or way so?
for use of stdafx.h please see link here
if want add header file , respective cpp file need go project in solution explorer @ right side of ide. right click , go add. there option header file , class both. can add there , start writing code test cases.
Comments
Post a Comment