Jump to content

Noob help with c

Go to solution Solved by adamhaas98,

Okay so I head most of you saying stear away from eclipse, I have visual studio installed. Can I use that?

Hi guys.

I've just started a course in C from Lynda.com (fantastic site by the way). The first thing to do was install eclipse mars and run the hello world program which comes pre done with eclipse. For some reason when I build the project I get the message, "Launch failed. Binary not found." 

Here's the screen shot of the code which I haven't changed in anyway shape or form.

 

post-162397-0-43303100-1443367378_thumb.

 

I am using the windows visual tool chain.

 

Thanks in advance

Adam.

Link to comment
https://linustechtips.com/topic/457181-noob-help-with-c/
Share on other sites

Link to post
Share on other sites

I think you need to add a path to the compiler. Or maybe you haven't built the project?

 

But why are you using Eclipse?

You don't really need it for C.

You can work simply with notepad and GCC.

For an IDE , I suggest Codeblocks.

 

Found this on stackoverflow :

 

    Window > Preferences > C/C++ > New CDT project wizard > Makefile Project > Binary Parsers

    a) Set it to PE Windows Parser if you are on windows.

    b ) Set it to Cygwin PE Parser if you are using Cygwin

    Window > Preferences > C/C++ > Build > Environment

    Now click on "select" and select "Path" variable so that you add you path variables in Eclipse.
 

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to comment
https://linustechtips.com/topic/457181-noob-help-with-c/#findComment-6135201
Share on other sites

Link to post
Share on other sites

You need to configure eclipse. But really you should go for something simpler or a decent IDE.

CPU: Intel i7 - 5820k @ 4.5GHz, Cooler: Corsair H80i, Motherboard: MSI X99S Gaming 7, RAM: Corsair Vengeance LPX 32GB DDR4 2666MHz CL16,

GPU: ASUS GTX 980 Strix, Case: Corsair 900D, PSU: Corsair AX860i 860W, Keyboard: Logitech G19, Mouse: Corsair M95, Storage: Intel 730 Series 480GB SSD, WD 1.5TB Black

Display: BenQ XL2730Z 2560x1440 144Hz

Link to comment
https://linustechtips.com/topic/457181-noob-help-with-c/#findComment-6136293
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×