fatal error lnk1104 in C++ - c++

I am using openssl ssleay.lib my project say MyProj which is also an library project.
There are many other project under this workspace which are using MyProj library.
I did the settings in MyProj library for using openssl.
Which compiles and links fine.
But when I try to compile whole workspace.
then I am getting the error
fatal error LNK1104: cannot open file "libeay32.lib"
al error LNK1104: cannot open file "ssleay32.lib"
How can i solve this issue ?
Any hint will be appreciated.

Related

How to fix 'cxxabi.h' file not found error?

I'm using Microsoft Visual Studio 2022 version and I'm getting this error when trying to compile my project which depends on this cmdline open source project.
cmdline.h(39,10): fatal error : 'cxxabi.h' file not found
How to fix this error?

Visual Studio 2019 Compiling a DLL from Github Sourcecode - Oboe

I'm busy creating a music composer app for Android and want to use a Github repository called Oboe (1.3.1) in Unity 3D.
Here the link: Guithub repository for Oboe
This solution would provide me with native Android Audio funtions that I could use to pass by the native Unity 3D audio engine and could short a lot of latency, that it produces.
Unfortunatly this repository was rather created for use in Android Studio, to write code with it in Java or Kotlin, but it was written in C++. To use it in Unity 3D, I'd have to compile it into an DLL File, that Unity can accept by standard as a PlugIn.
To avoid having to write a Java wrapper in Android Studio, I chose for Visual Studio 2019 and installed all prerequisites for mobile development(xamarin), the Android SDKs from 4.1 Jelly Bean to 10.0 Q, Android SDK (&Platform-) tools and the NDK.
So I gues I'm pretty much set up for compiling with Android functions.
And here starts my confusion. I created a Universal Windows Project (as I want to compile into a DLL) copied the source code into reasonable folders concerning the paths in the scripts.
When I try to debug the project the compiler spits out hundreds of error messages, some of them concerning to native Android Audio functions that cannot be found. So I guess I just put the Error Messages here (I turned 'use precompiled headers' of in project settings, because all the header files are part of the repository):
1>------ Build started: Project: Oboe_1.3.1, Configuration: Debug Win32 ------
1>dllmain.cpp
1>AAudioLoader.cpp
1>D:\VisualStudioProjects\Oboe_1.3.1\Oboe_1.3.1\oboe\Utilities.h(20,10): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file src\aaudio\AAudioLoader.cpp)
1>AudioStreamAAudio.cpp
1>D:\VisualStudioProjects\Oboe_1.3.1\Oboe_1.3.1\src\aaudio\AAudioLoader.h(56,10): fatal error C1083: Cannot open include file: 'AAudio.h': No such file or directory (compiling source file src\aaudio\AudioStreamAAudio.cpp)
1>AudioSourceCaller.cpp
1>D:\VisualStudioProjects\Oboe_1.3.1\Oboe_1.3.1\oboe\Oboe.h(27,10): fatal error C1083: Cannot open include file: 'oboe_include/Definitions.h': No such file or directory (compiling source file src\common\AudioSourceCaller.cpp)
1>AudioStream.cpp
1>D:\VisualStudioProjects\Oboe_1.3.1\Oboe_1.3.1\src\common\AudioStream.cpp(18,10): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory
1>AudioStreamBuilder.cpp
1>DataConversionFlowGraph.cpp
1>D:\VisualStudioProjects\Oboe_1.3.1\Oboe_1.3.1\oboe\AudioStream.h(287,57): error C2061: syntax error: identifier 'clockid_t' (compiling source file src\common\AudioStreamBuilder.cpp)
1>D:\VisualStudioProjects\Oboe_1.3.1\Oboe_1.3.1\oboe\AudioStream.h(308,81): error C2061: syntax error: identifier 'clockid_t' (compiling source file src\common\AudioStreamBuilder.cpp)
1>D:\VisualStudioProjects\Oboe_1.3.1\Oboe_1.3.1\oboe\AudioStream.h(308,82): error C2556: 'oboe::ResultWithValue<oboe::FrameTimestamp> oboe::AudioStream::getTimestamp(void)': overloaded function differs only by return type from 'oboe::Result oboe::AudioStream::getTimestamp(void)' (compiling source file src\common\AudioStreamBuilder.cpp)
1>D:\VisualStudioProjects\Oboe_1.3.1\Oboe_1.3.1\oboe\AudioStream.h(287): message : see declaration of 'oboe::AudioStream::getTimestamp' (compiling source file src\common\AudioStreamBuilder.cpp)
1>D:\VisualStudioProjects\Oboe_1.3.1\Oboe_1.3.1\oboe\AudioStream.h(308,45): error C2371: 'oboe::AudioStream::getTimestamp': redefinition; different basic types (compiling source file src\common\AudioStreamBuilder.cpp)
1>D:\VisualStudioProjects\Oboe_1.3.1\Oboe_1.3.1\oboe\AudioStream.h(287): message : see declaration of 'oboe::AudioStream::getTimestamp' (compiling source file src\common\AudioStreamBuilder.cpp)
1>D:\VisualStudioProjects\Oboe_1.3.1\Oboe_1.3.1\src\aaudio\AAudioLoader.h(56,10): fatal error C1083: Cannot open include file: 'AAudio.h': No such file or directory (compiling source file src\common\AudioStreamBuilder.cpp)
1>FilterAudioStream.cpp
1>D:\VisualStudioProjects\Oboe_1.3.1\Oboe_1.3.1\src\flowgraph\MonoToMultiConverter.h(20,10): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file src\common\DataConversionFlowGraph.cpp)
1>FixedBlockAdapter.cpp
So that's just the smaller part of the error list. I googled a lot of these errors and found e.g.
that open include file: 'unistd.h : No such file or directory has to do with that this file is a linux file. But Android is a linuxoid OS so I cannot asses this error message.
Whereas: Cannot open include file: 'AAudio.h': No such file or directory points to a file that is not included in the Github repository at all, but should be part of the Android NDK, as it belongs to the native AAudio Android engine.
My question is, did I setup the project right? Is my approach reasonable? I'm unexperienced with both C++ coding and Visual studio. I even found a precompiled .arr library of this project, that I could use as PlugIn in Unity as well. But using a precompiled java library with funtions written in C++ and coding in C# does something strange to my brain convolutions. I tried even that though, so you might see how desperate I am for some good hints. Thank you and have a nice day!

fatal error LNK1104: cannot open file - how to see why the file is required?

I keep getting this error after switching from boost 159 to boost 155:
LINK : fatal error LNK1104: cannot open file 'libboost_system-vc100-mt-1_59.lib`
I searched all project files in the solution and did not find any occurence of 1_59 string. What I need to do is to track the .obj or .lib file that is causing my project to require libboost_system-vc100-mt-1_59.lib instead of libboost_system-vc100-mt-1_55.lib.
Is there anything like dependency tree that I could observe to find source of the problem?

Error when build source in VC6.0

I have a project that develop in VC2005, when i build this source code in VC6.0 it give this follow error:
INK : fatal error LNK1104: cannot open file "mfc80d.lib" Error
executing link.exe. Creating browse info file... BSCMAKE: error
BK1505 : cannot read from file
'../../PB/bin/TmpOut/ICReplay/Debug/ICReplay_PB.bsc' Error executing
bscmake.exe.
Some body help me?Plsz! thanks so much

addressbook example of protocol buffer is not compiling

i am trying to compile addressbook example of protocol buffers but it is throwing a error:
write.cpp(1) : fatal error C1083: Cannot open include file: 'iostream': No such file or directory
In write.cpp it encounters #include <iostream> and is throwing this error though when i am right clicking on <iostream> and clicking on open document it is opening the iostream file.
I have included the path in include directories then also it is showing me the same errors.
I am using Visual Studio 2005.
Your environment might not be set up for C++ or could be broken.
There's an easy way to try to fix it:
Tools -> Import and Export settings -> reset all
I only have VS 2012 installed but I think it should be quite the same in your older version.
I resolved the above issue by putting " " around the search path as it contained spaces between the file names.
and now i am trying to port my Protobuf2.5.0 code to wince for MIPS platform and when i am trying to build it is throwing me the following errors:
1>C:\Program Files\Microsoft Visual Studio 8\VC\ce\include\crtdefs.h(100) : fatal error C1189: #error : ERROR: Use of C runtime library internal header file.
1>zero_copy_stream_impl.cc
1>..\src\google\protobuf\io\zero_copy_stream_impl.cc(50) : fatal error C1083: Cannot open include file: 'io.h': No such file or directory
1>zero_copy_stream.cc