User forums > Help

Microsoft Visual C++ 2010 isn't working

(1/3) > >>

n00b96:
As my Username may suggest, I am a complete beginner when it comes to programming in C. I installed Code::Blocks and installed it, and I then went to Microsoft's site and downloaded Microsoft Visual C++ 2010 and installed that too. When I first opened Code::Blocks, it asked me which compiler I wanted to use, so I opened the drop-down menu and selected Microsoft Visual C++ 2010. Then I wrote a simple 'Hello World' program to try it out, but I quickly found out that:
Build > Build does nothing
Build > Compile Current File does nothing
Build > Run > Yes does nothing
Build > Run > No returns a blank window, and
Build > Build and Run does nothing.

I went back to Settings > Compiler..., and it told me that the compiler's installation directory was "C:\Program Files\Microsoft Visual Studio 10.0\VC". When I checked the Program Files folder myself, I found that there was no such folder. Should the directory listed in the Code::Blocks settings be different, or is the problem being caused by something else?

Additional Info:
OS: Windows Vista Home Basic w/ Sevice Pack 2
OS Type: 32-bit

oBFusCATed:
Start reading this: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Then search the wiki for instructions how to setup your compiler.
Have you tried the autodetect button in the Toolchain settings?
Have you tried the latest release of C::B?

n00b96:
Yes, I have used autodetect, it just brings up a message saying "Could not detect auto-installation path of 'Microsoft Visual C++'..."
I am using C::B v13.12.
As for that link, I'll get on it, thank you!

n00b96:
Okay, I followed the instructions on that link you gave me, now whenever I click build it gives me an error saying "Can't find compiler executable in you configured search path's for Microsoft Visual C++ compiler." So... that's some progress at least...

stahta01:
What is the folder for your "Microsoft Visual C++ 2010" installation?

Tim S.

Navigation

[0] Message Index

[#] Next page

Go to full version