Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4019152
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:04:13+00:00 2026-05-20T10:04:13+00:00

I have a c++ project in eclipse and two targets in Makefile, say t1

  • 0

I have a c++ project in eclipse and two targets in Makefile, say t1 and t2. t1 appear as the first target in Makefile so is the default. The problem is when I try to run t2.o, eclipse automatically make the default target t1 and then execute t2. I am asking is there anyway to configure eclipse so that it can make t2.o before executing it… thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:04:14+00:00Added an answer on May 20, 2026 at 10:04 am

    (first a question : by ‘execute t2.o’, don’t you mean ‘execute t2’ ?)
    1/ your makefile may need a line like this :

    all: t1 t2  
    .PHONY: all  
    

    2/ you could also re-create your project as a ‘Managed make c++ project’ and create one build configuration per target, Eclipse will manage dependencies.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have findbugs plugin for eclipse which when run on my project will show
first of all, i like to say that i have read the other two
I have an Eclipse project. All testcases are in one *.cpp file. The problem
I have two Eclipse Maven Java projects. A domain project that is laden with
I am quite newbie in using eclipse cdt. I have a makefile project, and
I have an Eclipse GWT project with two source folders: One for source code
Right now, I have two Eclipse projects - they both use Maven 2 for
I have a J2EE project in Eclipse 3.2 and at the end of every
I have checked in a huge Eclipse project from my desktop computer to the
(Eclipse 3.4, Ganymede) I have an existing Dynamic Web Application project in Eclipse. When

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.