[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [EXTERNAL] Setting up the workspace


So initially i tried with the -lssh as well and i stil got the priv.h
errors. I decided to reinstall the library and after trying again with
-lssh it seems that the compiling errors are gone. I will thank you in
advance for this and make a short update if i can make my small project
connect to my ssh server. Again, thanks for that ^^

On Thu, Dec 5, 2019 at 9:50 PM Kennedy, Marcus A. <Marcus.Kennedy@xxxxxxxxxx>
wrote:

> On Linux try:
>
>
>
> gcc client.c -I/usr/include/libssh -lssh
>
>
>
> For the windows side of the house, you'll need to add ssh.lib to your
> libraries list for your build configuration.
>
>
>
> Good luck!
>
>
>
> Andy
>
>
>
> *From:* Stefanica Catalin <stefanica.catalin@xxxxxxxxx>
> *Sent:* Thursday, December 5, 2019 10:44 AM
> *To:* libssh@xxxxxxxxxx
> *Subject:* Re: [EXTERNAL] Setting up the workspace
>
>
>
> Hey, so for the linux i used: "gcc client.c -I/usr/include/libssh" . The
> client.c file is basically a hello world program which includes libssh.h .
> And the errors are : 1.error "no strtoull function found" and 2. error
> "Your system must provide a __func__ macro" both of them from priv.h.
>
>
>
> For windows: i don't see any /bin in the libssh directory.
>
>
>
> On Thu, Dec 5, 2019 at 6:15 PM Kennedy, Marcus A. <
> Marcus.Kennedy@xxxxxxxxxx> wrote:
>
>
> Linux:  can you provide your command line for the build?
>
> Windows:  Are you linking against the ssh.lib under <libssh directory>/bin?
>
> -----Original Message-----
> From: Stefanica Catalin <stefanica.catalin@xxxxxxxxx>
> Sent: Thursday, December 5, 2019 8:04 AM
> To: libssh@xxxxxxxxxx
> Subject: [EXTERNAL] Setting up the workspace
>
>
> I just cannot get the library to work on either linux or windows. I tried
> compiling something from the tutorial in linux using gcc -I(where the
> library is saved) and i get an error about strtoull and something else in
> priv.h while on windows i get unresolved symbols for every function call
> from libssh.
>
>

Follow-Ups:
Re: [EXTERNAL] Setting up the workspaceAris Adamantiadis <aris@xxxxxxxxxx>
References:
Setting up the workspaceStefanica Catalin <stefanica.catalin@xxxxxxxxx>
RE: [EXTERNAL] Setting up the workspace"Kennedy, Marcus A." <Marcus.Kennedy@xxxxxxxxxx>
Re: [EXTERNAL] Setting up the workspaceStefanica Catalin <stefanica.catalin@xxxxxxxxx>
RE: [EXTERNAL] Setting up the workspace"Kennedy, Marcus A." <Marcus.Kennedy@xxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org