C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Visual C++: syntax error when including gnutls.h

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Maciek
Guest





PostPosted: Wed Nov 22, 2006 10:10 am    Post subject: Visual C++: syntax error when including gnutls.h Reply with quote



All,

I'm having a problem building a library (VMime) with Visual .NET 2003.
It's including, among others, gnutls.h from the GNU TLS library and I'm
getting syntax errors in that file.

For example this line:

typedef ssize_t (*gnutls_pull_func) (gnutls_transport_ptr_t, void *,
size_t);

gives me this syntax error:

c:\Projects\dependencies\other\include\gnutls\gnutls.h(717): error
C2059: syntax error : ')'

I get all sorts of similar errors in header files included from MINGW
(like unistd.h) and other C libriaries. The problems is VMime should
compile with VC++ (it includes solution and project files for VC 2003).
I'd appreciate if someone could help me read those errors. I can
provide more output if this is not enough.

Thanks,
M.
Back to top
Alf P. Steinbach
Guest





PostPosted: Wed Nov 22, 2006 10:10 am    Post subject: Re: Visual C++: syntax error when including gnutls.h Reply with quote



* Maciek:
Quote:
All,

I'm having a problem building a library (VMime) with Visual .NET 2003.
It's including, among others, gnutls.h from the GNU TLS library and I'm
getting syntax errors in that file.

For example this line:

typedef ssize_t (*gnutls_pull_func) (gnutls_transport_ptr_t, void *,
size_t);

gives me this syntax error:

c:\Projects\dependencies\other\include\gnutls\gnutls.h(717): error
C2059: syntax error : ')'

I get all sorts of similar errors in header files included from MINGW
(like unistd.h) and other C libriaries. The problems is VMime should
compile with VC++ (it includes solution and project files for VC 2003).
I'd appreciate if someone could help me read those errors. I can
provide more output if this is not enough.

Sounds like the usual undefined identifier, i.e. you don't have the
right headers included with the right preprocessor definitions, so the
compiler complains about something irrelevant.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.