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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:52:09+00:00 2026-06-07T16:52:09+00:00

I am working on quite a large project that has to compile in Debug

  • 0

I am working on quite a large project that has to compile in Debug and Release for both 32 bit and 64 bit versions. It also has to be portable. The problem is, the linking dependencies (.lib) change since I have to link with either 32 bit or 64 bit libraries. To simplify matters, I have the following kind of setup for “additional library dependencies” for linker:
$(LIB_HOME)/core/bin;…

Where LIB_HOME points to the home of the correct version of the library.

Now I currently set LIB_HOME in a batch file which then starts up visual studio 2010. With this method, unfortunately, I have to restart visual studio every time I want to switch from 32 or 64 bit. I saw the “environment” setting under the debugging options but those environment variables only seem to kick in at runtime.

Is there any way, or any tool that I can use to set build-time environment variables for visual studio 2010 so that I can easily switch between debug and release in both 32 bit and 64 bit modes and the environment variables will be set correctly? How is this problem usually dealt with?

Thanks

EDIT: I found a tool called Solution Build Environment (http://workspacewhiz.com/SolutionBuildEnvironmentReadme.html) which seems to be what I’m looking for, but unfortunately it looks like it’s not available for VS2010.

  • 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-07T16:52:10+00:00Added an answer on June 7, 2026 at 4:52 pm

    Compiler macros and strategic placement of libraries. For example, I’ll use “$(PlatformName)_$(ConfigurationName)/libraries” for my Additional Link Directories. Then I’ll put my 32-bit libs in Win32_Debug/libraries and Win32_Release/libraries, and my 64-bit libs in x64_Debug/libraries and x64_Release/libraries. You could obviously omit the _$(ConfigurationName) if you didn’t care about debug versus release.

    Alternately, use 2 environmental variables, one for 32-bit and one for 64. Configure the 32-bit build configuration to use the 32-bit variable, the 64-bit build configuration to use the 64-bit variable. You are using a different build configuration for each build, right?

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

Sidebar

Related Questions

I'm currently working on a project that has scope to become quite large, however
I am working on a quite large code base that has been implemented using
I am working on quite a large DB based project and I like the
I am working on a quite large C library that doesn't have any tests
I am a fairly experienced (mid-level) developer that has spent quite a bit of
My team and me are currently working on quite a large project. We are
I'm working on a large delphi 6 project with quite a lot of dependancies.
I'm working on a somewhat large project that will eventually be loaded on Azure.
I'm working on a large Winforms project for a client that is using business
I am working on a quite big project: The program has to do multiple

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.