I am trying to work with libssh2 libraries in VS2010. I am getting a weird error of LNK1104: cannot open file 'libssh2d.lib'. I have clearly included the libraries in the Project Properties->Linker->General->Additional Library Directories.
There are couple of other additional libraries with the one above, and they get included without an issue except this.
Also the Linker->Input->Additional Dependencies has that file name 'libssh2d.lib' specified in it.
Any inputs as to why am I still seeing that error? Thanks.
I just needed to add "libssh2d.lib":
Linker->Input->Additional Dependencies.
Also "Debug_lib" was added in:
Linker->General->Additional Library Directories
This resolved the issue.
Related
I am running into a strange issue with including libraries in the lib folder.
Project details:
ESP32 with Arduino Framework
Trying to get the Adafruit HX8357D LCD to work
What I have done:
Please see the picture attached. I have included all the libraries that I should need. When I compile I run into the "No such file or directory error. I have clearly included the "Adafruit_I2CDevice.h" file in the lib folder under its master folder. But the compiler does not see it. Why?
If I move all the .h and .cpp files in the Adafruit_BusIO-master folder to Adafruit_GFC-Librari-master folder then the "fatal error: Adafruit_I2CDevice.h no such..." error just changes to a different file that is located in the lib folder.
This means there is a deeper issue here with the linker.
Does anyone know why it is doing this? I have not in the past had issues with including files located in the lib folder into various other sources.
Any help would be great.
Thank you
I use TFT_eSPI by Bodmer for Adafruit HX8357D. I use the following command to install the lib in my project and it does all th taff.
pio lib install "bodmer/TFT_eSPI#^2.3.64"
In your case have a look to c_cpp_properties.json in .vscode of your projet to be sure that the "includePath" and "path" points to the good include directories.
From the home screen of PlatformIO, you will have to go to the libraries section and search for your desired libraries there, assigning libraries to your desired libraries from there. Only then it will work properly.
If your libraries are successfully added, they should be inside the .pio\libdeps of your project directory.
When building the Windows C++ version of quantlib 1.9.1, I get this error of missing payoffs.hpp. When I browse to the directories, I see payoffs.cpp, but not payoffs.hpp:
Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: 'ql/instruments/payoffs.hpp': No such file or directory FittedBondCurve c:\users\administrator\google drive\quantlib-1.9.1\ql\cashflows\conundrumpricer.hpp 27
I also get this for #include <ql/instruments/swap.hpp> [and possibly others]. I am able to build the windows quantlib library ok. Just not the examples.
I just checked the QuantLib 1.9.1 release available from the project downloads (did you get your version from there?) and the files you're looking for are contained in the release zip and tarball. Also, it's pretty weird that you could compile the library without them, so I'd double check if they're there. If they really aren't—well, hard to know how they got displaced; anyway, you can download the release again and replace them. If that doesn't fix the problem (or if they're already there after all), it's possible that you have to fix the include path for the example you're trying to compile. Does it include the QuantLib directory?
I use Boost serialization to create a simple XML file, but when debug, I got this error
"error LNK1104: cannot open file 'libboost_serialization-vc110-mt-gd-1_53.lib'"
I have tried to fixed my problem followed the answer in this question
but I can't find the folder "stage" in my Boost folder, I downloaded Boost from here
You need to build the boost libraries first.
Open a console and go to the root folder of boost. Then type
bootstrap
and then type
b2 variant=debug,release link=static runtime-link=static
for building debug and release configuration for static linking. You can find more information in the Getting Started Guide
In my case, I'm using boost 1.55, in which serialization is a pure template module. There are only some hpp files in the module folder. However, I still get the same error.
My solution is to
#define BOOST_ALL_NO_LIB
in the code. Now everything goes fine.
This is my first test using Boost (1.5.3). I made an example with FileSystem class.
I think I've installed successfully the binary distribution, i.e., run bootstrap.bat and b2.exe to create headers & libraries in the installed folder.
if I'm correct, there is no dll lib, just static libraries & header files which I've pointed to in VS2008 project configuration.
I go compile and got this:
Error 1 fatal error LNK1104: cannot open file 'libboost_filesystem-vc100-mt-gd-1_53.obj' test_filesystem test_filesystem
what type of error is this? I think the compiler already sees the required files & libs
Thanks
Edit 01:
I originally added the wrong lib name (lack of ".lib"), I've correted it but now it gets
"Error 15 fatal error LNK1104: cannot open file 'libboost_filesystem-vc90-mt-gd-1_53.lib' test_filesystem test_filesystem"
Do I put the library name correctly? -> libboost_filesystem-vc90-mt-gd-1_53.lib? I normally put library name like this, and I'm sure I've added the right path to this static lib
Ok,
I've now solved the problem. Partly, it is from the hint "boost links itself"
I installed boost 1.5.3 which includes all "libxx-vc100-xx-1_53.lib" and these libs are intended to use for VS2010 (vc10) compiler.
I didn't notice this and compiled my example in VS2008 (vc9) and boost/compiler something links automatically to vc9 libraries which are not available.
=> I solved it by compiling the same project in VS2010 and finally DONE
I've followed the directions here:
http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Setting+Up+An+Application+-+CodeBlocks
then I get this error:
c:/program files/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot find -lOgreMain_d.dll
I have OgreMain, OIS, OgreMain_d, OIS_d placed within my project folder. How can I fix this? :(
This could happen primarily due to two reasons.
The dll has not yet been compiled and created.
In the linker settings, the dll search path or the dll name to link against is wrong.
Please check if the OgreMain_d.dll has been created in the OGRE bin folder and if so, confirm the linker search settings. Also confirm that the project is not in release build configuration, as the created dll would then be OgreMain.dll.