Friday, 11 April 2014

Re: [gccsdk] GCC and GNUTLS - compiling problems

In message <c1b197f353.Jo@hobbes.bass-software.com>
John Tytgat <John.Tytgat@aaug.net> wrote:

>I see that Chris Gransden has packaged the libgnutls library so probably
>he can help you further. Chris ?

I tried g++ instead of gcc:

*g++ cert5.c -o cert5 -lgnutls
cert5.c: In function 'int main()':
cert5.c:46: error: 'getpass' was not declared in this scope
cert5.c:83: error: 'read' was not declared in this scope
cert5.c:85: error: 'write' was not declared in this scope
cert5.c:222: error: 'close' was not declared in this scope
cert5.c: In function 'void IP_number(sockaddr_in*, char*, uint16_t)':
cert5.c:241: error: 'inet_ntop' was not declared in this scope
cert5.c: In function 'int _verify_certificate_callback(gnutls_session_int*)':
cert5.c:264: error: invalid conversion from 'void*' to 'const char*'
*

It seems to me that GnuTLS requires the g++-compiler but on Unix gcc
just works fine.

Now I have to fiddle with the errors, or no? Or is this a red hering?
I'm just wonder because compiling on Unix machines doesn't make any
problems with same code.

Alex

--
Waldkraiburg, Bavaria
Sent wirelessly from RISC OS


_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment