Hello,
I'm a Visual Studio 2012 user trying to use Codeblocks with the Visual C++ compiler however I receive this error:
(http://i45.tinypic.com/2i6mj5e.png)
I tried copying the VS10 settings, making a "new" compiler and modifying the search directory and toolchain executable settings to the following:
(http://i49.tinypic.com/r0qwsh.png)
(http://i49.tinypic.com/24w7rdk.png)
(http://i46.tinypic.com/149um4k.png)
And toolchain executable section to:
(http://i49.tinypic.com/11l1wmb.png)
(http://i47.tinypic.com/2dbt3s5.png)
The code is just a simple hello world:
#include <iostream>
using namespace std;
int main(){
cout << "Hello" << endl;
return 0;
}
I still receive this same error. Any ideas on how to get my cpp file to build?
Any ideas or help is much appreciated.
Version is: Release 12.11 rev 8629 32bit. I did not build CodeBlocks myself. Complete logging was already turned on. Here is the output:
cl.exe /nologo /I"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include" /c C:\Users\Patrick\Desktop\Untitled1.cpp /FoC:\Users\Patrick\Desktop\Untitled1.obj
Process terminated with status -1073741634 (0 minutes, 34 seconds)
0 errors, 0 warnings (0 minutes, 34 seconds)
I compiled in "C:\Users\Patrick\SkyDrive" instead and received the same error. I looked up compiling c++ files using the VS11 compiler via the command line and that led me to this website (http://msdn.microsoft.com/en-us/library/ms235639.aspx).
This told me to run the Visual Studio 2010 Command Prompt I have installed as Administrator (not the normal command prompt window, using that gave me errors, not the ones I received in Codeblocks). I did this and rand the commands:
cd "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin"
cl /EHsc "C:\Users\Patrick\SkyDrive\Untitled1.cpp"
Untitled1.exe
and it worked.
I tried doing the same in the normal command prompt and it gave me an error:
(http://i47.tinypic.com/20gcorq.png)
which isn't the same error as Codeblocks.
I think Codeblocks may be using the wrong commands but I have no idea how to fix this and link it to the correct command prompt. Any ideas?
Also my OS is Windows 8 Enterprise x64
the error happens when I try to build
and no CB doesn't crash, it just doesn't build