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. <[email protected]> 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 <[email protected]> > *Sent:* Thursday, December 5, 2019 10:44 AM > *To:* [email protected] > *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. < > [email protected]> 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 <[email protected]> > Sent: Thursday, December 5, 2019 8:04 AM > To: [email protected] > 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. > >
