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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:58:30+00:00 2026-06-14T14:58:30+00:00

I am quite used to Linux development and Makefiles, and started using (Windows and)

  • 0

I am quite used to Linux development and Makefiles, and started using (Windows and) Visual Studio not so long ago.

What I want to do is (I think) quite simple, but I can’t seem to find how to do it using Visual Studio.

I have to write an application, which I can divide into several independent sub-parts. I want to work incrementally, and create several projects that together with a main file will end up with my full project.

What I basically want is to be able to write a small project, have a main for it so that I can fully test it, and use it as a dependency for the next project. In this case, the smaller main would be deactivated (or I can comment it), and I would just change the startup project.
If I find a bug in a subset while writing my bigger software, I could just change the startup project and solve it at a smaller scale.

Well, that’s what I do all day long in Python and Java.

I tried to create new projects into my project, but I always end up having linking problems, where my main projects knows about the files in the sub projects, but not the smaller ones, etc. . .

So, is there a guide somewhere I can find to work this way ?

Thank you

  • 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-06-14T14:58:31+00:00Added an answer on June 14, 2026 at 2:58 pm

    Thanks to Vaibhav, I was able to find a solution:

    I had to :

    • change subproject type to lib instead of exe
    • Add the subprojects as project dependencies in the main project (this just sets the build order)
    • Comment out the main of my subprojects, to keep only one active.
    • Add each subproject include directory in the include repos of the main project, so that the compiler can find the header files
    • Add the general directory as a dependency for the linker (in this case, it is not the debug/release folder of the subprojects, but the output directory of the complete project).
    • Add the names of the lib files of the subprojects in additional dependencies of the linker of the main project.

    To make it simple, the project dependencies capability of VS2010 just changes the order in which the projects are built. . . I miss Eclipse.

    If I find a bug and want to test on of the subprojects, I have to :

    • change the startup project to be the subproject I want to change.
    • uncomment the corresponding main
    • change the project type to be exe instead of lib to be able to compile it.

    Debug, and do everything back again to continue working on my main project.
    Quite boring, don’t you think ?

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

Sidebar

Related Questions

I am using GNU/Linux (Ubuntu + Gnome). I have been using netbeans on windows
I started to really like C#'s ?? operator. And I am quite used to
As a quite new Linux user I never (really) used tools such as sed
My application is using wxPython and runs on Linux and Windows without modification. The
I have recently started moving into the world of Linux development. I wanted to
I am quite new to the embedded linux programming and did not really understand
I've seen binary and hex used quite often but never octal. Yet octal has
Atomikos is quite verbose when used. There seems to be lots of INFO messages
I used to be confusing quite a while : Confusion on Unicode and Multibyte
Used to be quite happy with the Ctrl + Shift + F10 shortcut in

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.