POCO Build Problem - c++

I'm trying to try the POCO library. I downloaded the zip file, and opened the vs solution file named "Net_vs90.sln" on VS 2008. When I try to build the solution, I get this ugly error:
bla bla bla....
1>Linking...
1>LINK : fatal error LNK1104: cannot
open file 'PocoFoundationd.lib'
bla bla bla....
Linking...
2>LINK : fatal error LNK1104: cannot
open file 'CppUnitd.lib'
I'm surprised, because I haven't done any changes to the code or configurations. What could be the reason?

Looks like you are missing some dependencies from other open source projects. For example, cppunitd.lib is CppUnit. This may not be included in the files you downloaded (it is often assumed that you should get the latest dependencies yourself)

Thanks for reminding Romain. The problem was, I hadn't looked at the wiki very well. In one of the wiki pages (below), it says the bat file, in the project, should first be run from visual studio command prompt. Now, the problem is solved :).
http://pocoproject.org/wiki/index.php/FirstStepsWindows

Related

VS2022 "lld-link : error : could not open 'oldnames.lib': no such file or directory"

Just installed Windows 10 and VS2022, created an empty project, set compiler to Clang, compiled and I get these errors:
1>lld-link : error : could not open 'msvcrtd.lib': no such file or directory
1>lld-link : error : could not open 'oldnames.lib': no such file or directory
I'm sure I could add a path to the linker settings but I don't understand why this error occurs "out of the box"? Is there a bug with the VS2022 installation/surely this should not happen?
For could not open 'msvcrtd.lib', installing the Windos 10 SDK in Visual Studio Installer usually solves the problem. But just in case I also recommend you to read this issue.
About could not open 'oldnames.lib', you could refer to this issue in MSDN.

cannot open source file "windows.h" "WTypes.h"

Hello and thanks for your help.
I recently downloaded some source files in C++. They build a DLL for managing a camera.
Anyway, when opening with Visual Studio 2015, it notifies me there will be some conversion because the compiler has changed.
After that there are red lines under
#include <windows.h>
#include <WType.h>
passing the mouse over them it says "cannot open source file ..."
Now, I ve googled this error and found some resources, even in this very same site.
However their solutions don't work. Sometimes the OP just say "Oh it worked thanks!" but does not specify what makes it work.
So I am asking for some help here. What is this error and how can I solve it?
(I am supposing it involves some settings in the project)
Thanks again for all the help
(p.S. I have the dlls provided by the writer but would like to build the project myself)
Edit:
When building the output messages are
1>------ Build started: Project: DirectShowFacade, Configuration: Debug Win32 ------
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets(36,5): warning MSB8003: Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number.
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number.
1> DirectShowFacade.cpp
1>d:\xxxxxxxxxxxxxxxx\cameraprogramming\directshowfacadesources\directshowfacade.h(28): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Properties → General → Target Platform Version → change to 8.1

Unrecognized option '/ruleset' in VS2015 during building

I have strange error during building my solution. Yesterday everything was fine, but today I get this error
Picture of error from error list:
Copy/paste error from output:
fatal error CS2007: Unrecognized option: '/ruleset:"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\Rule Sets\MinimumRecommendedRules.ruleset"'
Solution contains many projects, but during building all solution, only one project show this error.
Does anyone can help me?
P.S. Changing file with ruleset did not help, I had the same error (but with other file in error message). But actually, I do not want change that ruleset file.
As seen in the following link, try opening it in VS2013, turn off the ruleset, then open in 2015, and turn it back on.
src: https://social.msdn.microsoft.com/Forums/vstudio/en-US/974f66c6-debf-4a51-8463-00624e4dafa4/vs-2015-building-2013-project-could-not-find-rule-set-file-minimumrecommendedrulesruleset?forum=msbuild

fatal error LNK1104: cannot open file "Debug/

I'm trying to run C++ code in microsoft visual version 6.0. The code is well compiling but I'm getting the error "fatal error LNK1104: cannot open file "Debug/Assignment.exe" when I try to build. The file is saved in the project named Assignment. I'm new to C++ and the microsoft visual stuff. I don't know where to start from to get around error. Please help.
Sounds like a copy of the exe (Debug/Assignment.exe) is already running so visual studio can't overwrite the file. Have a look in the task manager / process explorer and kill any copies that are running then try again.
Curiously, in my case it was a CMake 'debug' linker library path setting that caused almost the same error, and I guess you can have similar problems with 'optimized.obj' linking failures.
LINK : fatal error LNK1104: cannot open file 'debug.obj'
This is because the compiler doesn't have access to that file. Change the project directory and try again.
For me this error started coming when I turned on Preprocessing output
Project properties -> C/C++ -> Preprocessing -> Preprocess to a file: Yes (/P)

ERROR LNK1104 - .`obj` file without any file name

I am trying to compile a project where i am getting this error. I am very new to c++ and dont know much about VC++. And the most irritating part is that the error does not mention a name to the .obj file!!! Here is the whole error [copied from Error List] :
Error 1 error LNK1104: cannot open file '.\Debug\.obj' E:\7zsrc\CPP\7zip\Bundles\Format7zF\LINK 7z
To be more specific, I am compiling the Format7zF bundle included with 7z source version 9.22ß. I have already tried most of the solutions out there but most times either the the problem is different or the solution does not work.
Any help would be great!
Thanks
Update
I just noticed [from the .log file] that at the end of the linker Debug\\.obj was added! Hope this explains the problem more!
Update 2
I am attaching a copy of the project. You can examine the project by opening the solution from [ExtractionPathOfTheArchive]\CPP\7zip\Bundles\Format7zF\ Directory. Hope someone can help.
Link to Project Source("d.zip")
I have just converted the source files from VC++6 to VC++12 and changed the Output File Path in linker to inherit from..., nothing else.
It's Too late, but for records. :)
I had same problem, when I converted the 'QUAKE' project from VC6 to VS2010.
I solved it by changing setting of '.s' files (asm code file).
Check [Properties/Configuaration Properties/Custom Build Setup/General/Outputs]
and there are "$(InputName).obj" macro, then try to change it as "%(Filename).obj".