Code::Blocks Forums
User forums => Help => Topic started by: n00b96 on March 29, 2014, 12:58:31 am
-
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
-
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?
-
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!
-
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...
-
What is the folder for your "Microsoft Visual C++ 2010" installation?
Tim S.
-
I can't find it... I've searched all over the hard drive, it doesn't seem to be anywhere...
-
Search for cl.exe. If you don't have it then you don't have c++ compiler installed.
-
Uninstalled/reinstalled it twice, it's still not showing up.
-
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
-
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
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.
-
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))
-
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.
-
That IS the Log, the Message tab just says:
||=== Build failed: 0 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
-
Then turn on full commandline logging, as described in the link given to you.