 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Maciek Guest
|
Posted: Wed Nov 22, 2006 10:10 am Post subject: Visual C++: syntax error when including gnutls.h |
|
|
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
|
Posted: Wed Nov 22, 2006 10:10 am Post subject: Re: Visual C++: syntax error when including gnutls.h |
|
|
* 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 |
|
 |
|
|
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
|
|