User forums > Using Code::Blocks
Cant build "Hello World " example on MinGW C++
16BitBilly:
I am on windows 7. I downloaded the latest codeblocks-13.12mingw-setup.exe. Now the problem is I cant get my minimalist C++ application to run.
This is what my compiler configuration looks like. The image is attached.However when I attempt to build my c++ application I get the following error
--- Code: ----------------- Build: Debug in GNU64Test (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -std=c++98 -c C:\Users\Hsheikh\GNU64Test\main.cpp -o obj\Debug\main.o
C:\Users\Hsheikh\AppData\Local\Temp\ccGfntu5.s: Assembler messages:
C:\Users\Hsheikh\AppData\Local\Temp\ccGfntu5.s:2: Error: junk at end of line, first unrecognized character is `,'
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
--- End code ---
This is my c++ code
--- Code: ---#include <iostream>
int main()
{
std::cout << "Hello";
}
--- End code ---
Any suggestions on why I might be getting that error ? Do I need to add linker settings or something else ?
oBFusCATed:
Have you tried searching the internet?
http://mingw.5.n7.nabble.com/junk-at-end-of-assembler-file-td70.html what about this.
I suspect your compiler installation is broken somehow.
16BitBilly:
I am not sure if it could be broken ? I installed the latest version of codeblocks which also installs the Mingw development compiler for you.
From the link you mentioned it seems like the assembler is older than what is required. I still dont understand how I could resolve this issue.
I am sorry if I missed it in the link.
oBFusCATed:
Try uninstalling. Then check if everything is removed correctly (no mingw folder on any partition) and reinstall.
Can't help much... I'm not running windows...
And search the internet, I won't do it for you second time!
16BitBilly:
I did uninstall and ran everything. I am not expecting you to do it for me. Apart from the fact that you are merely pointing out the basics and being rude about it. Why would you answer a windows question anyway then...
Navigation
[0] Message Index
[#] Next page
Go to full version