How to get stdafx.h

Jeff Mitchell kde-dev at emailgoeshere.com
Sat Apr 5 00:49:27 CEST 2008


I had some code in a MSVC project that required the following includes:

#include "stdafx.h"
#ifdef _DEBUG
# pragma comment(lib, "comsuppwd.lib")
#else
# pragma comment(lib, "comsuppw.lib")
#endif
# pragma comment(lib, "wbemuuid.lib")
#define _WIN32_DCOM
#include <iostream>
#include <comdef.h>
#include <Wbemidl.h>
# pragma comment(lib, "wbemuuid.lib")

However, when I take those includes and put it into my kdelibs code and 
run cmake on it, it complains that it can't find stdafx.h.

If I remove that line, it complains about not finding precompiled headers.

How to fix this?

Thanks,
Jeff


More information about the Kde-windows mailing list