What does the “Link Library Dependency” linker option actually do in Visual Studio 2010 – 2015 and upwards?
You have to give the setting the proper value to bring clarity:
You have to give the setting the proper value to bring clarity:
On Windows Vista and newer Windows Explorer runs with medium integrity level. If you run Visual Studio as administrator (high integrity level) then for security reasons OS will disable drag and drop from Explorer to Visual Studio. You can either run Visual Studio as normal user or you can install VSCommands for Visual Studio 2012 … Read more
If pressing the Insert key doesn’t work, try doubleclicking the INS/OVR label in the lower right corner of Visual Studio.
I have solved this by manually configuring the ToolPath to point to the old (version 2.0.50727.3038) version of sgen.exe On my machine, this is in: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin I changed the ToolPath attribute to be: ToolPath=”C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin” and this solved the problem. It seems, by default, it’s running the new 4.0 framework … Read more
I had the same issue, how I resolved it: Ran msbuild.exe <my.sln> /t:<mytargetproject> from a VS2010 command prompt, where <my.sln> is your solution name and <mytargetproject> is the project you are trying to build. For e.g. msbuild.exe helloworld.sln /t:mainproj. When you do this or at least when I ran this, a dialog box popped up … Read more
The general instructions for linking libraries is not specific to CUDA. So you may want to learn more about using MS VS. Anyway, the steps are like this: Make sure you have opened the project that you want to work on. Select View…Property Pages (from the menu) A new dialog box will open up. On … Read more
In my case, I had to remove the following from the .csproj file: <Import Project=”$(SolutionDir)\.nuget\NuGet.targets” Condition=”Exists(‘$(SolutionDir)\.nuget\NuGet.targets’)” /> <Target Name=”EnsureNuGetPackageBuildImports” BeforeTargets=”PrepareForBuild”> <PropertyGroup> <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> </PropertyGroup> <Error Condition=”!Exists(‘$(SolutionDir)\.nuget\NuGet.targets’)” Text=”$([System.String]::Format(‘$(ErrorText)’, ‘$(SolutionDir)\.nuget\NuGet.targets’))” /> … Read more
You can select the options for the GPU Code Generation in this dialog: In this case “compute_20” means that i am compiling for the virtual compute architecture 2.0 – virtual architecture influences the PTX generation stage. The second part that comes after the coma is “sm_21”.This influences the CUBIN generation stage. It defines the real … Read more
If you DID explicitly set up linking with all the necessary libraries, but linking errors still show, you might be mixing up 64/32 bit libraries and application. I.e. make sure that all library includes point to 32 bit version of libraries if you are building 32 bit application.
I had this issue on VS2008: I removed the .suo; .ncb; and user project file, then restarted the solution and it fixed the problem for me.