User forums > Help
Code::Blocks 10.05 && VC++ 2010 compiler setup
kiwiDude:
Hey there having a little difficulty setting up C::B with VC++2010, reason I'm using C::B over the VC++ 2010 IDE is that my laptop isn't very fast (Pentium III, 512MB RAM) so C::B runs/loads alot faster than VC++2010.
Basically the "default" VC++ compiler location sets it self to the VC++ 2008 edition, and so I have to manually enter the path for the toolchain etc. I'm a hobbyist programmer so I'm not sure what the extra options really mean in regards to what additional options I should be setting (sorry if thats a bit vague), I have the windows platform SDK installed but whenever I try to compile including the "windows.h" header file it says:
--- Quote ---fatal error C1083: Cannot open include file: 'windows.h': No such file or directory|
--- End quote ---
Now I'm not sure if this is because I haven't configured C::B correctly or if its something else, because of this sorry if this is the wrong section to post this in. What I have done though is replaced the path of the default VC++ 2008 toolchain with the 2010 edition (where the compiler etc resides), although I'm still getting the error when trying to compile.
Trying with the standard headers for example like this:
--- Code: ---#include <stdio.h>
int main(void){
return 0;
}
--- End code ---
And i get this from the build message box:
--- Quote ---LINK||fatal error LNK1104: cannot open file 'kernel32.lib'|
--- End quote ---
Bit stuck..
MortenMacFly:
--- Quote from: kiwiDude on July 15, 2010, 02:10:47 pm ---
--- Quote ---fatal error C1083: Cannot open include file: 'windows.h': No such file or directory|
--- End quote ---
--- End quote ---
Add the path to the platform SDK (header files) to the project's build options under compiler include paths.
--- Quote from: kiwiDude on July 15, 2010, 02:10:47 pm ---
--- Quote ---LINK||fatal error LNK1104: cannot open file 'kernel32.lib'|
--- End quote ---
--- End quote ---
Add the path to the platform libraries to the project's build options under linker include paths.
kiwiDude:
--- Quote from: MortenMacFly on July 15, 2010, 02:31:22 pm ---
--- Quote from: kiwiDude on July 15, 2010, 02:10:47 pm ---
--- Quote ---fatal error C1083: Cannot open include file: 'windows.h': No such file or directory|
--- End quote ---
--- End quote ---
Add the path to the platform SDK (header files) to the project's build options under compiler include paths.
--- Quote from: kiwiDude on July 15, 2010, 02:10:47 pm ---
--- Quote ---LINK||fatal error LNK1104: cannot open file 'kernel32.lib'|
--- End quote ---
--- End quote ---
Add the path to the platform libraries to the project's build options under linker include paths.
--- End quote ---
Aha that did it, sorry about this thread, still feeling my way around IDE's and such.
ysg:
--- Quote from: MortenMacFly on July 15, 2010, 02:31:22 pm ---
--- Quote from: kiwiDude on July 15, 2010, 02:10:47 pm ---
--- Quote ---fatal error C1083: Cannot open include file: 'windows.h': No such file or directory|
--- End quote ---
--- End quote ---
Add the path to the platform SDK (header files) to the project's build options under compiler include paths.
--- Quote from: kiwiDude on July 15, 2010, 02:10:47 pm ---
--- Quote ---LINK||fatal error LNK1104: cannot open file 'kernel32.lib'|
--- End quote ---
--- End quote ---
Add the path to the platform libraries to the project's build options under linker include paths.
--- End quote ---
Hi, I know that this thread is quite old, but I'm having the same problem as OP (and didn't want to make another thread, I can if that would be more appropriate).
But, honestly, I don't know where my SDK header files are on my machine. The same goes for the libraries on my machine. I'm running Win 7 32-bit at work and Vista 64-bit at home (if that helps).
And yes, I've googled and have yet to find a good solution to my problem. This is the contents of C:\Program Files\Microsoft SDKs\Windows as printed out by cygwin:
http://bin.cakephp.org/view/1135131447
And yes, I'd like to use VC++ 2010 for my compiler.
Thanks in advance.
stahta01:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Navigation
[0] Message Index
[#] Next page
Go to full version