Visual Studio 2010 err# U1095, NMAKE - c

I'm writing a program in C using Visual Studio 2010, and I am getting the following error:
U1095: expanded command line '(here come includes-includes-includes)'.
Some of my colleagues get the same error while others do not. The only easy feasible solution I've tried is to update NMAKE itself from a shady website (NMAKE is very hard to find).
Erasing include entries helps, but eventually we hit the limit again. One hack that works is to use all the includes in a single file per Microsoft's offering and read from that file but I'd prefer to not have to do that.
Is there an official way to update nmake without installing the Windows SDK or Visual Studio 2015?

I would not recommend using anything in programming in general that you "downloaded from a shady source". That sounds like a good way to embed viruses in your shipped code unknowingly. There is no nmake standalone, so you will be forced to use the one that ships with Visual Studio.
Some things you could try:
Attempt using 32-bit and 64-bit versions of nmake and see if you get different results.
Get a more recent version of Visual Studio and see if it works better there.

Thanks a lot for your responses, guys.
Manipulations with nmake didn't help at all.
The answer is: to completely erase a sandbox and get a clean one. So it wasn't MS-VS-2010 problem standalone, but a combination of problems between MS-VS and MKS/PTC Integrity.

Related

IntelliSense Problem in VisualStudio code

i have a problem with Visual Studio Code for Mac OS
Since my small industry where i work, decided one week ago to change from Windows to Apple problems started.
I installed VS code in my Apple laptop but when i started to programming, i saw that if i make a Syntax error, the IDE doesn't highlight it (i write programs in C).
For example if i write: println("hello word") without ; VS doesn't show a red underline and a message (for example "Syntax error missing ;")
i searched on internet, and i found that is a problem of "IntelliSense" i think. I also tried some solutions, but without any result.
thanks for your answers
Setting up VS code for C / C++ on mac is a bit of a pain. I've found this page from MS to give a thorough run through on getting setting up, and then you can also follow this guide which will take you through setting up project configurations and in your case intellisense.

asm syntax highlight AND asm file display in visual studio

I am trying to do some assembly coding, I call the functions from C language. The code itself runs fine, but I have two enormous problems that I cannot to tackle for quite a long time now. First of them is syntax-highlighting - I installed two different (one at the time) asm highlighting extensions to visual studio 2015 enterprise, both of them didn't work. Before I installed the 2015 version I had 2013 Ultimate and the highlighting worked fine there. I tried to delete specific files responsible from registry etc but it didn't help me achieve absolutely anything. Tried to reinstall or update the extensions is well.
Another problem I have is something that pretty much started happening for first time 3 hours ago, in a solution when I have an asm file it is fine, I can edit it freely, run it, whatever. But once I switch off visual studio and run it again in the moment when I try to open the asm file in visual studio the file is no longer in clean assembly but in OP codes written in hexadecimal and along it there is list of the memory cell in which each op is in... When I make new asm file in the solution it is fine but once I restart visual studio same thing happens. I tried to look through all the common options in the top menu bar but there seems not to be anything helpful to me in this situation....
Desperately I tried to google both of those things (first one for quite extended period of time) but it seems like some of the problems I have encountered could possibly be related to 2015 enterprise version of visual studio :(
EDIT// OK I MANAGED TO FIX THE SECOND PROBLEM - right click the .asm file and use Open With and choose another editor!!!
Help please ;(
AsmDude will not work when .asm files are associated with an editor (see this issue here). If you still experiencing problems with AsmDude, consider opening an issue on Github. I'm happy to help you there.

A visual studio solution that does one nmake

I'm not really a visual studio developer here. Recently, I was pulled out for a much bigger team to quickly configure and compile a C library for a visual studio project. It took a while going through the README for the library, but I figured out that it basically came down to:
1) Open the VC Command Prompt
2) Run nmake on a .mak file
3) That was it, your dll gets spit out.
So I give it over to the guy, and he says "This is fine and all, but what I really want is a visual studio solution and project." I'm not really a visual studio developer though. All I want is one solution where the compile process is "run nmake". But going through documentation seems to imply that nmake is just a command-line tool. I'm sort of a VS noob though. Is this something you can even do?
To build a VS solution/project, you can use msbuild. See the MSDN documentation.
Example:
MSBuild.exe MyProject.proj /t:rebuild

How to compile a program in c with a fresh copy of windows? No External Software

Is there any way to compile some Windows API code without installing any development environments to Windows?
Does Windows come with a C Compiler built in that I could just write some code in notepad, and run it through a cmd or a batch file?
.NET includes a command line compiler for C#. (not exactly what you asked for, but it might suit you.) I believe .NET is preinstalled on modern versions of Windows. Look in the folder \Windows\Microsoft.NET\Framework\v4* and see if you have a file called CSC.EXE. This is the command line compiler for C#.
See
"How can I compile a .NET project without having Visual Studio installed?"
Working with the C# 2.0 Command Line Compiler
Is it possible to install a C# compiler without Visual Studio?
For more information and examples.
You can also get the free version of Visual Studio that supports C++. Download Visual Studio Community 2013
No version of Windows I am aware of comes with a C compiler.
No, Windows does not come with a C compiler.
And I don't mean to sound patronizing, but why do you think it'd make sense for it to come with one? Sure, it'd be handy --- if it were a decent compiler --- but beside that, it is not required for normal OS operation. An optimizing compiler is a complex piece of software that would not see any use at all from most users (since most users aren't developers --- and even they might prefer using a compiler of their choice instead of something that just happened to be around).
I should note that at least some Linux distros also come without a compiler by default (as long as it's not needed as a dependency for something else --- which, granted, can happen easily).
As others have pointed out, Windows does not come with a preinstalled C compiler. There are several good free one available for download (including a freeware version of microsoft visual c), but that does not mean you can't access with Windows API/SDK.
If you need to make API/SDK calls without the requirement you install anything, you can use Windows Script Hosting https://en.wikipedia.org/wiki/Windows_Script_Host. It supports a number of languages out of the box, such as Jscript, VBScript, and has the ability to add even more options. Using Windows Script Hosting you can create any call you require into the Windows API/SDK.
Newer versions of windows have started to move towards powershell which is even more powerful -- but is not yet universally available which might mean having to install addition software (which I assume is what you are trying to avoid).
I think you may want Visual Studio Express.
http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx
You do not mention which version of Windows. Also Windows API calls are customarily built with Visual C++. Although you could build with C# or VB.NET and wrap the calls. As another poster mentioned, if your version includes a .NET, then there are command line building tools available

Package C console application (Visual Studio '13)

I wrote a basic program for my mom, and now I want her to be able to use it. Obviously, it works on my computer. Getting the .exe file from the project folder, and putting it on her computer doesn't work: it says MSVCR120d.dll is missing whenever the .exe is run. Makes sense--as her computer doesn't have Visual Studio on it. However, I tried installing the Visual C++ Redistributable Packages for Visual Studio 2013, and that didn't work either.
To be honest, I'm not looking to spending hours of time to piece this all together. This is something I will more than likely never do again--I've already done some searching and can only find subjects speaking of C++ distributions. I want a way to get the console app on her computer to work.
The more easy way is link statically. That mean embed all the needed code to the app to run, in the final binary (.exe), eliminating dependency of other libraries.
Go to Project Properties
Go to Configuration Properties
Go to C/C++
Go to Code Generation
Change Runtime Library (in Debug to Multi-Threaded Debug /MTd and in Release to Multi-Threaded /MT)

Resources