stdafx.h Questions

4

Solved

I'm just curious what Afx stands for. And what about Fx in FxCop?
Longish asked 24/12, 2008 at 16:46

5

Solved

A file named stdafx.h is automatically generated when I start a project in Visual Studio 2010. I need to make a cross-platform C++ library, so I don't/can't use this header file. What is stdafx.h ...

4

How to specify a precompiled header to the output of CMake (2.8.12.1) AUTOMOC ? So far, in the CMakeLists.txt I've tried these two separately: set(AUTOMOC_MOC_OPTIONS "-bstdafx.h") set(AUTOMOC_...
Circumcise asked 30/1, 2014 at 18:32

6

Solved

When I compiled this program (from C++ Programming Language 4th edition): main.cpp #include <stdafx.h> #include <iostream> #include <cmath> #include "vector.h" using namespace s...
Wandy asked 12/10, 2014 at 21:28

10

Solved

I have a Visual Studio C++ based program that uses pre-compiled headers (stdafx.h). Now we are porting the application to Linux using gcc 4.x. The question is how to handle pre-compiled header in...
Cricoid asked 27/7, 2009 at 23:49

3

I understand what precompiled headers are doing with "#include "StdAfx.h" and yes, I know I can turn them off. But that's not my question. If you're using precompiled headers, Visual C++ requires ...

6

Solved

I see so much code including stdafx.h. Say, I do not want pre-compiled headers. And I will include all the required system headers myself manually. In that case is there any other good reason I sho...
Crockery asked 24/3, 2009 at 7:4

9

Solved

I've got a bunch of legacy code that I need to write unit tests for. It uses pre-compiled headers everywhere so almost all .cpp files have a dependecy on stdafx.h which is making it difficult to br...
Sevastopol asked 14/11, 2008 at 13:13

12

Solved

I can't get intellisense to work. Even if I start with an empty project and add just one file to it with only an include for iostream and an int main() function that prints a char with cout (basica...
Santiagosantillan asked 2/3, 2011 at 19:9

3

Solved

I just have a quick question. I've noticed that I don't have stdafx.h in my compiler(mingw32 on windows) Am I supposed to have it? Or maybe is there a way to get around it? Thanks for reading ED...
Horned asked 23/3, 2011 at 16:34

5

Solved

What is the proper way to use stdafx.h, in terms of separating dependencies? If I put everything in there, then my compiles are blazing fast, and all I need to say in any file is #include "stdafx...
Beall asked 26/8, 2011 at 8:24

1

Solved

It seems that when I set the option to /Yu, it just uses whatever pch there is, without checking if it needs to be updated, meaning it would keep a list of headers it precompiles and check if those...
Winifield asked 25/8, 2012 at 11:51

5

Solved

Hey i've been following learncpp.com tuts for the last couple days, they say to comment out "#include "stdafx.h" from .cpp files for Code::Blocks. Is that a must, to remove the include line? What ...

2

Solved

I have a header file called stdafx.h and this one is precompiled of course. I've read that I should include these files into my .cpp files, but some of these statements are already needed in the he...

4

Solved

What is the purpose of the file stdafx.h and what is meant by precompiled headers?
Distillation asked 4/6, 2010 at 16:33

2

Solved

I am trying to include 2 platform-specific stdafx.h files in my .cpp file, but the compiler is unhappy when I try to #ifdef it. #ifdef _WIN32 #include "stdafx.h" #elif _MAC #include "MAC/stdafx.h...
Mcarthur asked 16/9, 2009 at 22:18

4

As usual, when my brain's messing with something I can't figure out myself, I come to you guys for help :) This time I've been wondering why stdafx.h works the way it does? To my understanding it ...
Ariosto asked 17/12, 2008 at 7:35
1

© 2022 - 2024 — McMap. All rights reserved.