Removing Microsoft Linker - linker

Is it possible to remove Microsoft Linker? I want to get source code. Thanks in advance.

Related

Compiling a Visual Studio dll and using it with cygwin

my question is very simple.
I'm dealing with portaudio with the support of ASIO drivers for a university assignment. With Visual Studio I managed to compile everything an also to create a dll and now I must do the same but with cygwin. Is it possible to use the dll created with Visual Studio 2019 with cygwin? If it isn't, there is a way to do it?
Thanks in advance
Yes, you must have myfile.h myfile.dll and myfile.lib .
your goal is to produce myfile.a and put it in lib directory.
For that there is a tool Lib2a that take myfile.dll and myfile.lib in input and give myfile.a file.
https://code.google.com/archive/p/lib2a/downloads

Add current sdkconfig defines to Visual Studio Code

I work with ESP32 IDF4.2 in Visual Studio Code. I have lots of configurations and options set by the precompiler through the 'menuconfig' tool that generates a sdkconfig in /proyectx/build/
It would be quite useful to have that file taken by the program so I could see the actual code that is being compiled; but I cannot find a way to do so.
Any help?
You could try the official vscode extension.
https://marketplace.visualstudio.com/items?itemName=espressif.esp-idf-extension

Cannot Open File atls.lib

I have atls.lib in my hard drive, but I can't link it into my Visual Studio project. I know that atls.lib is an ATL specific library file, and I have all the ATL files/headers/libraries. However, I still can't link them.
LINK : fatal error LNK1104: cannot open file 'atls.lib'
Can anyone help a helpless programmer?
Thank you very much.
Fixed for me by installing the following Individual Component through the Visual Studio Installer:
C++ ATL for latest v142 build tools with Spectre Mitigations (x86 & x64)
I'm running a 32 bit C# project using VS2019.
In my case the problem was missing ATL/MFC libraries for x64, I had to add them in the Visual Studio installer (it was an open source project, so I wasn't aware of the requirement).
Once again, the invaluable procmon did the job:
While atls.lib was found under $(VCInstallDir)atlmfc\lib the linker looked in $(VCInstallDir)atlmfc\lib\amd64.
Just to keep this question updated, I encountered this error after running the install for Spectre, the VC++ spec code mitigation tool. After looking at the VC++ directories, I noticed that both the Include Directories and the Library Directories have changed to add a "Spectre" addition to the path, while the original path to the actual file is no longer there. I will update this later after I figure out whether Spectre didn't install correctly, or if simply changing the path will solve the issue; I do NOT want the speculative attack exposed in my code, which apparently happens with ATL code.
EDIT
My compiler is VS 2017 Community Edition.
EDIT
The solution that worked for me is here, discovered by Holger Schmeken
It seems that the library directory has not been added. In Project Properties, Linker, General options, add the directory where atls.lib resides to the Additional Library Directories field.
I added <Visual Studio folder\VC\Tools\MSVC\14.15.26726\atlmfc\lib\x64\atls.lib> to the Linker>Input> Additional Dependencies in solution properties and it got resolved.
This issue started happening to me after a recent VS2019 update I got. I noticed that it was because Spectre Mitigation had been automatically enabled but I didn't have the Spectre Mitigation version of the library.
Installing the Spectre Mitigation version, or disabling Spectre Mitigation are both possible fixes.
I have soloved this problem by just copying this file to my project folder.

what is mean by "suppress results from generated code"

I am using Visual Studio 2008 team system. I have C project. I went to project properties and in the code analysis section. I wonder what is mean by
`suppress results from generated code`
Can someone explain what does this option do when I set it yes or no?
Thanks
The Suppress results from generated code check box on the Code Analysis property page of a project enables you to select whether you want to see Code Analysis warnings from code generated by a third-party tool.
Reference: http://msdn.microsoft.com/en-us/library/dd742298.aspx

Compile lighttpd in Visual Studio 2005

I have a platform independent source code that can run on Windows and UNIX platforms. To compile the source on Windows, there is support for cygwin. But I want to compile it with Visual Studio 2005. How will I do it? What are the project settings required to be done on Visual studio and what about linking options? Will I be able to get any idea from successfully compiled source on cygwin? BTW, source code is in C language. Please someone help me on this.
Thanks in advance!
IMHO you're out of luck. If this project depends on cygwin, you most probably can't compile it with reasonable effort in vs.
Basically (for simple libraries) you should be fine by dumping all the .c and .h files into a visual studio project.
Most of the time you can just drop it to your own sources. If you want to create a library choose create new project -> new library, put all the sourcefiles in there and the library will automatically be linked with your main program.

Resources