why compile occur error???
-
I had include header file in stdafx.h and set precompiled headers is stdafx.h but when i compile my project it still error some variable not defined. somebody can help me? thanks Nho'c Ti`
I think you need to supply more information. To start with: What compiler error occurred?
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar The Second EuroCPian Event will be in Brussels on the 4th of September Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
-
I think you need to supply more information. To start with: What compiler error occurred?
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar The Second EuroCPian Event will be in Brussels on the 4th of September Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
-
-- in stdafx.h file #include "mylib.h" -- in myfile.h file I use some variable and some define in mylib.h ex : #define A 1 but when i compile it still error in myfile.h with message : A isn't defined Nho'c Ti`
-
-- in stdafx.h file #include "mylib.h" -- in myfile.h file I use some variable and some define in mylib.h ex : #define A 1 but when i compile it still error in myfile.h with message : A isn't defined Nho'c Ti`
Unless mylib.h rarely changes, it should not be included in stdafx.h. Otherwise, the majority, if not all, of the project gets needlessly rebuilt. Include mylib.h only where it is needed. That aside, you haven't shown what file actually uses
A
. In that file is where you'll need to include mylib.h.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Unless mylib.h rarely changes, it should not be included in stdafx.h. Otherwise, the majority, if not all, of the project gets needlessly rebuilt. Include mylib.h only where it is needed. That aside, you haven't shown what file actually uses
A
. In that file is where you'll need to include mylib.h.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)