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 7433691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:42:47+00:00 2026-05-29T09:42:47+00:00

I have a C++ eclipse project that I would like to easily compile In

  • 0

I have a C++ eclipse project that I would like to easily compile In Windows and OSX.

The project is currently using an automatically generated makefile.

The libraries that I need vary depending on the platform.

In osx I’m using the CoreMidi, CoreAudio, and CoreFoundation frameworks.
In Windows I’m using the winmm.lib and multithreaded libraries.

What’s the simplest way to link different libraries/frameworks depending on the current platform?

I’m currently using the gcc toolchain on OSX. Should I start using the cross compile toolchain?

Should I have two projects. One for working in windows, and one for osx, checking them both in to version control?

Should I write a custom makefile instead of using the automatically generated option that has different g++ arguments depending on the platform?

  • 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-29T09:42:47+00:00Added an answer on May 29, 2026 at 9:42 am

    Even though Eclipse can run fine on both OS X and Windows, it is not designed to be used in this way.

    The best way to do it is to use separate IDE projects for each platform. This this is the easiest way to have unique compilation settings for multiple platforms.

    Yes, you can use two eclipse projects. Alternatively, it’s not unusual to have a X-Code project for OSX, and a Visual Studio Project for MS Windows.

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

Sidebar

Related Questions

I have a list of Eclipse projects that I would like to compile based
We have a PHP project that we would like to version control. Right now
I have an Android project in eclipse and would like to move to Intellij
I have a Java project (in Eclipse) consisting of several packages. I would like
I have an Android Eclipse project that I'd like to divide into two sub-projects.
I have a simple Scala project that runs without any problems inside Eclipse, however,
I have an ant target that echo's the content of an eclipse .project file,
Does Eclipse have a feature that lets you search a project to find all
In Eclipse, I have a workspace that contains all of my projects. Each project
I have a maven project, and then, i would like to enable JSF 2

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.