News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Microsoft Visual C++ 2010 isn't working

Started by n00b96, March 29, 2014, 12:58:31 AM

Previous topic - Next topic

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?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

n00b96

I can't find it... I've searched all over the hard drive, it doesn't seem to be anywhere...

oBFusCATed

Search for cl.exe. If you don't have it then you don't have c++ compiler installed.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

n00b96

Uninstalled/reinstalled it twice, it's still not showing up.

n00b96

Okay, I think I have it working, now when I click Build I get an error saying

cl: Command line error D8003 : Missing source filename

stahta01

Quote from: n00b96 on March 29, 2014, 06:29:08 PM
Okay, I think I have it working, now when I click Build I get an error saying

cl: Command line error D8003 : Missing source filename

Quote from: oBFusCATed on March 29, 2014, 02:24:32 AM
Start reading this: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

If you fail to post a "build log" we will consider this thread solved.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

n00b96

Here's the entire log, this is all I can get out of it:

Compiling: C:\Users\Sam\Desktop\hello.c
cl : Command line error D8003 : missing source filename
Process terminated with status 2 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))

stahta01

Quote from: n00b96 on March 29, 2014, 07:40:10 PM
Here's the entire log, this is all I can get out of it:

Compiling: C:\Users\Sam\Desktop\hello.c
cl : Command line error D8003 : missing source filename
Process terminated with status 2 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))

Post the "Build Log" NOT the "message log"!

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

n00b96

#12
That IS the Log, the Message tab just says:

||=== Build failed: 0 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

Jenna

Then turn on full commandline logging, as described in the link given to you.