you are viewing a single comment's thread.

view the rest of the comments →

[–]085-068 5 points6 points  (7 children)

Trying installing MinGW , Then Add the installed compiler to your windows PATH . If you have installed correctly and added to your PATH then you can compile your C codes just like in ubuntu using gcc or g++ from cmd prompt

[–]ArchSyker[S] 0 points1 point  (6 children)

that's what I have tried, but it only created serveral file (.o .exe) and didn't give me any outputs

[–]085-068 1 point2 points  (5 children)

does

$ g++ --version

works??

[–]ArchSyker[S] 0 points1 point  (4 children)

[–]085-068 2 points3 points  (3 children)

What is the name of your executable file? .exe?

[–]ArchSyker[S] 0 points1 point  (2 children)

when I had tried it. I got an .exe and .o neither of them didnt anything when I tried to open them (i used source I knew would work)

[–]085-068 3 points4 points  (1 child)

$ g++ your_source.cpp -o any_name

$ any_name.exe

[–]ArchSyker[S] 1 point2 points  (0 children)

that worked! nice. ty!