473,761 Members | 4,421 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_f unc) (gnutls_transpo rt_ptr_t, void *,
size_t);

gives me this syntax error:

c:\Projects\dep endencies\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.

Nov 22 '06 #1
3 3443
* 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_f unc) (gnutls_transpo rt_ptr_t, void *,
size_t);

gives me this syntax error:

c:\Projects\dep endencies\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?
Nov 22 '06 #2

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_f unc) (gnutls_transpo rt_ptr_t, void *,
size_t);

gives me this syntax error:

c:\Projects\dep endencies\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.
Its a wild guess but you could try disabling language extensions in
VC++.

HTH

regards
Andy Little

Nov 22 '06 #3
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
6177
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with itself. Everything you need is available at no costs (except download hassle and installation time). Once your system is set up properly its just a matter of running 'python setup.py build'. No longer waiting for someone else to build binaries and a...
29
2477
by: shank | last post by:
1) I'm getting this error: Syntax error (missing operator) in query expression on the below statement. Can I get some advice. 2) I searched ASPFAQ and came up blank. Where can find the "rules" for when and how to use single quotes and double quotes in ASP? thanks! ---------------------- SQL = SQL & "WHERE '" & REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE("GenKTitles.
0
6137
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug file as folows. I need help to resolve them ASAP: cl /c /nologo /MDd /W3 /Od /GR /GM /Zi /GX /D "_DEBUG" /D " WIN32" /D "_W INDOWS" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /D "_USRDLL" /
140
7883
by: Oliver Brausch | last post by:
Hello, have you ever heard about this MS-visual c compiler bug? look at the small prog: static int x=0; int bit32() { return ++x; }
1
4238
by: Thomas Holmgren | last post by:
Hi all I've tried to get my hands on the End User License Agreement for MS Visual C# .NET 2003 STANDARD edition, sofar without luck. Does anybody know where I can find the license agreement for the standard edition? Thank you :)
3
3724
by: John R. Delaney | last post by:
If I try to declare an object of type fstream (or ofstream), I run into a compilation error refering to an __something function or variable. Please note, I am including <fstream>, not <fstream.h>. I do know that much. Thanks in advance for any assistance. John
5
3812
by: Microsoft | last post by:
Hi, I have Visual Basic .net 2003 (Standard Edition) & SQL Server 2000 Developer Edition. When trying to create a connection in the server explorer from the .net IDE I get a number of problems; a.. Under the "Connection" tab, under "1. Select or enter a server name:" when I either select the drop down box or click the refresh button I get an error dialog saying "Error enumerating data servers. Enumerator reports Unspecified error'". The...
5
4514
by: r.nikhilk | last post by:
Hi, Currently, we are porting C++ applications from 32 bit to 64 bit on AIX platform. (The current version of AIX is 5.3 and xlC verison is 8.0). We are able to compile the applications by including the -q64 option in xlC compiler. And we are able to link all these libraries to one of the main applications and generate an executable. SKLoader. But, when we try to run this main executable, we are getting the following errors:
5
1794
by: user923005 | last post by:
I seem to recall that if a macro is evaluated and the macro is defined, but a value for the macro does not exist, it should be evaluated as zero, but I can't find it in the standard. There is a program called Hoichess, that has the following include file: #define EXPTOSTRING1(x) #x #define EXPTOSTRING(x) EXPTOSTRING1(x) #ifdef DEFAULT_HASHSIZE std::cout << "\tDEFAULT_HASHSIZE " << EXPTOSTRING(DEFAULT_HASHSIZE) << "\n";
0
9538
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9353
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9975
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8794
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7342
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5241
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3481
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.