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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:03:16+00:00 2026-05-16T01:03:16+00:00

I have a project in c# which uses bindings to use some c++ code.

  • 0

I have a project in c# which uses bindings to use some c++ code. The c++ code consists of multiple DLL’s which are compiled using a makefile. Currently I’m trying to run the makefile using a pre build event which calls nmake. However to get it to find nmake I need to have a line in it like the following:

"$(DevEnvDir)..\..\VC\vcvarsall.bat"

Also, even with that line present, nmake doesn’t produce any output at all in the output window. Neither does it throw any errors. I tried redirecting the output to a file and it doesn’t write anything. I have reproduced all steps in my pre build event in a normal shell and it works fine. I figure I must be missing something. Why doesn’t Visual Studio give me a Visual Studio shell for my pre build event? Is there a better way to run this makefile? If not, has anyone got any ideas as to why nmake isn’t producing any output?

EDIT: D’oh! nmake wasn’t running as I forgot to add ‘call’ to the start of the line, i.e:

call "$(DevEnvDir)..\..\VC\vcvarsall.bat"
  • 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-16T01:03:16+00:00Added an answer on May 16, 2026 at 1:03 am

    I often build non VS-project (sometimes with nmake, sometimes with other build tools) as a part of a larger solution build.

    I tend to make a simple batch file, which sets up the environment and then runs the make.

    I call the batch file from a build event (often post-build on my stuff) – usually with a CD on the front:

    cd ..\.. && armbuild
    

    Never (that I can remember, anyway) had any problem with the output appearing in the console window.

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

Sidebar

Related Questions

I have a DLL project in VS 2008 Pro which uses OpenMP. I use
I have a dll project which uses some third party dlls. I would like
Imagine you have a PlayN game which uses Guice bindings in its core project:
I have a C# project A which uses a .net wrapper DLL and a
I have a project which uses Apache Xmlbeans for databinding. Currently it is very
I currently have a C# project which uses plugins and has a fairly common
I have a project which uses Bluetooth 2.1 code and We want to migrate
I have a project which uses many plugins. However, some are reliant on older
I have a maintenance project which uses Authorize.Net for payment. Currently, the system provides
Using Visual Studio 2010 C++. I have a project which uses MFC and I

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.