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

  • Home
  • SEARCH
  • 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 1109901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:18:38+00:00 2026-05-17T02:18:38+00:00

I am starting a c++ project which I would like to compile equally well

  • 0

I am starting a c++ project which I would like to compile equally well in Eclipse (Linux) and vs2010 from the same repository and could use some help getting started. While many of the aspects can individually be Google’d, I was hoping for advice on how to approach the problem on a whole.

For example, where to keep the library sources, how to structure the make file, and how to integrate googletest (finding a novice tutorial on googletest alone is hard). A link to a tutorial that addresses these aspects would be great, or a series of tutorials that together could help.

My background is in C# and I’m trying to maintain the “cleanness” and organization of my VS projects.

  • 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-17T02:18:39+00:00Added an answer on May 17, 2026 at 2:18 am

    I have done cross platform projects that used the “native” build systems on both platforms (vsproj files on windows and makefiles on linux), but it was definitely a pain to maintain both project files. So, yes, I would agree with the other suggestions that you should try to start with a solid cross platform build utility. CMake or possibly Boost build seem like decent options – likely there are many others.

    When it comes to 3rd party libraries, you’ll want to stick to stuff that is solidly tested cross platform. Boost is the best general purpose library for c++ (yes, you see it mentioned here in just about every c++ thread…but that’s because it really is a nice collection of useful stuff). As for XML, HTTP, image libs, UI – there are all good cross platform options – just look around or ask here if you have specific requirements. Whatever you do, don’t use some library from CodeProject or other MS oriented site that has only been tested with Visual Studio 6 – that will just lead to misery. Most of the GNU libs build on windows these days, so you should be reasonably safe with that stuff.

    Although it will be tempting, try to minimize the platform#ifdefs in your code – prefer instead to abstract any platform specific stuff in a library wherever possible.

    Good luck!

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

Sidebar

Related Questions

I'm starting a project which I think would benefit from bindings (I've got a
I am starting a project from scratch using Intersystems Cache. I would like to
I'm starting a project which requires reading outlook msg files in c#. I have
I am starting a project for which we will have a thin client, sending
I'm starting a new project which involves developing an interface for a machine that
I am starting a little side project which consists of building a small-medium sized,
I am starting a WPF project, which will be fairly complicated in complexity and
Im just starting a project and since this project is personal I was wondering
I’m starting a project where I need to implement a light-weight interpreter. The interpreter
I'm starting a project that will be public facing using asp.net mvc. I know

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.