"Launch failed. Binary not found" error for C in Eclipse 4.3.0 on OS X 10.9.2 -


since today have not been able compile c programs in eclipse not create necessary binaries when build project, in fact won't create binaries folder @ all. have tried i've seen on here try fix it, , it's gotten worse. here's i've tried far , results:

from "launch failed. binary not found." snow leopard , eclipse c/c++ ide issue, in terminal:

cd /usr/bin sudo rm cc gcc c++ g++ sudo ln -s gcc-4.0 cc sudo ln -s gcc-4.0 gcc sudo ln -s c++-4.0 c++ sudo ln -s g++-4.0 g++ 

this supposed change path 32-bit gcc 4.0 64-bit 4.2. after doing however, had major problem: no longer had type of gcc evidenced fact when called

gcc -v 

in terminal, returned:

-bash: gcc: command not found 

in attempt make things right, re-downloaded command line tools xcode , reinstalled them, , xcode acknowledges indeed installed. despite this, calling gcc -v still returned -bash: gcc: command not found. after repeating process, got same result, makes seem if cannot install/find c compiler @ all! seems binaries previous c projects worked when fine disappeared after doing this.

i tried:

  1. going project > properties > c/c++ build > settings > binary parsers : , making sure mach-o 64 parser selected.

  2. editing in miscellaneous sections of macos x c linker , gcc c compiler flags textbox hold "-arch i686"

none of worked...

i @ loss , stuck. if can help, appreciated.

thank you!

first thing's first: have read/tried most-upvoted answer on linked question ctrl-click select "build project"?

i can't speak issue eclipse, don't use it, suspect you've mucked os x installation @ point. unfortunately, advice used may have been helpful in snowleopard timeframe, it's not more. i'm not sure exactly when happened, gcc 4.0 no longer shipping os x or xcode , it's gone of 10.9.2. won't installed more either xcode, or "install command line tools" option, if need specific version of compiler, you're going have build , install yourself.

by default, on recent os x installs, compiler executables in /usr/bin stubs call xcrun determine location of xcode's current version. default /usr/bin/gcc points whatever version of clang came currently-installed version of xcode.

i'm not sure how stubs after deleting them, start doing fresh install of latest xcode , doing install command line tools again after that, , see if gets @ least having these stubs in place.

beyond that, approach problem eclipse. clang capable of generating 32-bit binaries. can't think of reason want use gcc 4.0 on clang @ all.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -