I am trying to set up a CUDA dev env on a Windows 7 32bit computer with Visual Studio 2010 Express.
But I keep getting the following error when I try to compile the bandwithTest project that follow with the CUDA SDK!
1>------ Build started: Project: cutil, Configuration: Release Win32 ------
2>------ Build started: Project: shrUtils, Configuration: Release Win32 ------
2>LINK : fatal error LNK1104: cannot open file 'lib\Win32\shrUtils32.lib'
1>LINK : fatal error LNK1104: cannot open file 'lib\Win32\\cutil32.dll'
3>------ Build started: Project: bandwidthTest, Configuration: Release Win32 ------
3>LINK : fatal error LNK1104: cannot open file '../../bin/win32/Release//bandwidthTest.exe'
========== Build: 0 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========
Follow this guide: How to Run CUDA In Visual Studio 2010
Check my answer to this question:
cuda sdk example bandwidthTest - build failed
If they are already built then check if they are correctly listed in the additional library directories in the solution properties, linking tab.
Related
I am using Microsoft Visual Studio Professional 2019 Version 16.9.5 and trying to compile code as mentioned in Boost.StringAlgorithms.
I am getting the below error during local compilation and linking :
1>------ Build started: Project: Boost.StringAlgorithms, Configuration: Debug Win32 ------
1>LINK : fatal error LNK1104: cannot open file 'libboost_regex-vc142-mt-gd-x32-1_74.lib'
1>Done building project "Boost.StringAlgorithms.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I have ensured that I have set the project properties (link and libs). I do see the concerned file in C:\tools\boost_1_74_0\stage\lib directory:
libboost_regex-vc142-mt-gd-x64-1_74.lib
boost_regex-vc142-mt-gd-x64-1_74.lib
I have build all boost library for x64 architecture - why the linking process is looking for libboost_regex-vc142-mt-gd-x32-1_74.lib ?
I am not able to build cordova app in Visual studio. i have installed cordova extensions for my visual studio
In VS console it just displaying build is failed but no errors.
------ Build started: Project: SampleCordovaUsingCTP, Configuration: Debug Android ------
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(95,5): warning : The TypeScript Compiler was given no files for compilation, so it will skip compiling.
1> GeneratedJavascript=
1> C:\PhonegapSamples\SampleCordovaUsingCTP\SampleCordovaUsingCTP\SampleCordovaUsingCTP>call "C:\Program Files\nodejs\"\nodevars.bat
1> Your environment has been set up for using Node.js 0.10.29 (x64) and npm.
1> ------ Ensuring correct global installation of package from source package directory: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\R3EFQQ33.L3R\packages\vs-mda
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I am able to compile in win32 but i am getting below error when compiled in x64
Error 1>------ Build started: Project: libprotobuf, Configuration:
Release x64 ------ 1>LINK : fatal error LNK1561: entry point must be
defined
Can we really compile libprotobuf targeting x64?
any help is really appreciated
I was using protobuf-2.6.0 where i was getting the issue. After migrating to Protobuf-2.6.1 i am able to generate libprotobuf.lib for x64.
I just downloaded the USBView sample application, and I'm getting a cryptic error when compiling with Visual Studio 2010.
1>------ Rebuild All started: Project: usbview, Configuration: Win8 Debug Win32 ------
1>Build started 10/5/2012 11:58:11 AM.
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(518,5):
error MSB8008: Specified platform toolset
(WindowsApplicationForDrivers8.0) is not installed or invalid. Please
make sure that a supported PlatformToolset value is selected.
1>
1>Build FAILED.
1> 1>Time Elapsed 00:00:00.16
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Any thoughts or ideas to resolve this would be appreciated. I'm using Windows 7, 32-bit.
I was able to resolve the problem by installing Visual Studio 2012 Express and recommended components, removing the offending line from the Microsoft.Cpp.Platform.targets file (double-clicked error message), and compiling as Release.
I've created a new project using the Visual Studio 2010's wizard. Once VS was finished generating the project I tried building it - in release mode it worked great, but in debug mode it didn't, giving the following compiler error:
1>------ Build started: Project: MyProj, Configuration: Debug Win32 ------
1>Build started 05/10/2010 22:17:08.
1>InitializeBuildStatus:
1> Touching "Debug\MyProj.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1> All outputs are up-to-date.
1>ResourceCompile:
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>LINK : fatal error LNK1104: cannot open file 'D:\My Documents\Dev\MyProj\MyProj\Debug\MyProj.exe'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.24
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I set the following parameters in the wizard:
MFC Application
Dialog based
Use MFC in a static library
Added the "Windows Sockets" advanced feature
I'm on a Windows 7 64bit Ultimate machine.
This seems like a minor bug in Visual Studio 2010. Once I closed the solution and reopened it, it worked fine...
This error is reproducible on my setup.