By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,850 Members | 1,026 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,850 IT Pros & Developers. It's quick & easy.

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

P: n/a
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\gnut ls.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.

Nov 22 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
* Maciek:
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\gnut ls.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?
Nov 22 '06 #2

P: n/a

Maciek wrote:
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\gnut ls.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.
Its a wild guess but you could try disabling language extensions in
VC++.

HTH

regards
Andy Little

Nov 22 '06 #3

P: n/a
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.
OK, some files where missing from the MINGW runtime, because I tried to
include them one by one.

It seems the real problem is that when I unclude MINGW runtime headers
into VC++ project, it doesn't compile - I get a lot of syntax errors.
Are there any settings for VC++ bo build MINGW headers? Or is it
possible at all?

Thanks,
M.

Nov 22 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.