Comments (7)
The static libs are named libssh.lib and libsshd.lib for release/debug respectively. It should only ask for ssh.ddl if you link against ssh.lib (note the missing lib prefix)
from libssh.
Hello,
I have added following settings in the project settings:
- VC++ Directories -> Include Directories: The path to your header files (..\libssh_libssh-0.9.3-2_msvc16\include)
- Linker -> General -> Additional Library Directories: The path to your ssh.lib file: (..\libssh_libssh-0.9.3-2_msvc16\lib\x86)
- Linker -> Input -> Additional Dependencies: Addes ssh.lib to the list.
The project compiles fine but it generates ssh.dll next to the project.exe file. But I want to ship the exe file without shipping the dll file. Can you tell me how to tell Visual Studio to embed the lib file into the project and not to create a dll file for it?
from libssh.
Linker -> Input -> Additional Dependencies: Addes ssh.lib to the list.
As I said this should be "libssh.lib" not "ssh.lib", the later is the one that requires the dll, the former does not.
from libssh.
But if I want to build the project with the "libssh.lib file I receive unresolved external symbol errors.
from libssh.
When using a static version of libssh (i.e. no dll) you need to define "LIBSSH_STATIC" before including any libssh headers.
from libssh.
Yes I did, still getting the same result :/
from libssh.
Well your doing it wrong ;) I cant reproduce any errors with any of the projects i have that use libssh, they all work fine with LIBSSH_STATIC defined. To ensure you are defining it correctly in all places try adding it to the project settings instead of defining it in code. Also within Visual Studio if you have correctly defined it then when browsing libssh.h you should notice that LIBSSH_API has been defined as empty. The "__imp__xxx" errors you are getting are caused when LIBSSH_API is being defined to one of the __declspec definitions.
from libssh.
Related Issues (7)
- "Couldn't apply options" on a minimal test case console app HOT 5
- ssh_get_user_home_dir(), ssh_get_local_username() and ssh_getpass() return NULL
- ssh_pki_import_pubkey_blob: Unknown key type found HOT 1
- some way to tell if the file is a symbolic link with ssh_scp_request_get_permissions or another function HOT 3
- Which version of libssh supports SSH1 server? HOT 5
- libssh 0.8.0 update with libssh 0.10.5 (latest)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libssh.