#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Not able to run c/cpp execs in eclipse cdt


    i installed eclipse and then cdt on an ubuntu system recently and was trying to make the first runnable c/c++ proj.. i installed g++ also, and then created the first executable cpp 'Hello World' project some files are created... then some issues... 1) even though Build Automatically is selected, I have to goto the project n do a Build Project to build it manually, and this i have to do everytime i make a change 2) After Building manually, there are some new folders created with Binaries and Debug files and i can see g++ commands in the console being executed. The project binary is output both to debug n binaries folder. But i am not able to run these through the Green Play Button or any other way in eclipse. Even Run configuration is not showing any option for c/C++ proj.. though i can goto terminal and run the binary myself through ./ But i want to be able to run n debug this through eclipse. plz help in fixing me this problem as i really love eclipse n have some c/cpp assignments coming soon..

    Console info on doing a manual project build -

    Build of configuration Debug for project qwe **

    make all Building file: ../src/qwe.cpp Invoking: GCC C++ Compiler g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/qwe.d" -MT"src/qwe.d" -o "src/qwe.o" "../src/qwe.cpp" Finished building: ../src/qwe.cpp

    Building target: qwe Invoking: GCC C++ Linker g++ -o "qwe" ./src/qwe.o
    Finished building target: qwe

    Build Finished **
  2. #2
  3. Contributing User

    Join Date
    Aug 2003
    Location
    UK
    Posts
    5,109
    Rep Power
    1802
    I do not really know what your problem might be, and I am not an Eclipse user to eve an Eclipse fan, but rather than installing Eclipse then CDT separately, you might do better to install Eclipse IDE for C/C++ Developers. This is essentially what you already have perhaps, but hopefully with guaranteed compatible packages and pre-configured integration.
  4. #3
  5. No Profile Picture
    I haz teh codez!
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2003
    Posts
    2,548
    Rep Power
    2337
    I ♥ ManiacDan & requinix

    This is a sig, and not necessarily a comment on the OP:
    Please don't be a help vampire!
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0
    hmmm...
    thx for the help... i downloaded eclipse indigo only for c/cpp and it was able to run the programs just fine...
    i dont know what is wrong with juno... now using juno for java n adt n indigo for cpp...
    thx for the help guys

IMN logo majestic logo threadwatch logo seochat tools logo