473,504 Members | 13,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error in typedef

Hi,

I'm getting a an error while compiling a file which includes "tcl.h"
(I'm using Borland C++):

tcl.h (393,39): , expected

Looking at the code shows:

typedef TCL_WIDE_INT_TYPE Tcl_WideINT;
What's wrong with this? Please give me some hints!

Aleks

Nov 14 '05 #1
3 1648
us**@domain.invalid scribbled the following:
Hi, I'm getting a an error while compiling a file which includes "tcl.h"
(I'm using Borland C++): tcl.h (393,39): , expected Looking at the code shows: typedef TCL_WIDE_INT_TYPE Tcl_WideINT;
What's wrong with this? Please give me some hints!


Assuming TCL_WIDE_INT_TYPE is a previously declared C type, and not a
macro, then the line above is absolutely OK and should not give any such
error. Are you sure it's not a macro? Does it say:
#define TCL_WIDE_INT_TYPE <something>
anywhere in tcl.h or any file it includes? (For any value of
<something>.)
What does it say on the lines immediately preceding this line? Maybe
you have a statement there that doesn't terminate in a ; or a }.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"This is a personnel commuter."
- Train driver in Scientific American
Nov 14 '05 #2


Joona I Palaste schrieb:
us**@domain.invalid scribbled the following:
Hi,


I'm getting a an error while compiling a file which includes "tcl.h"
(I'm using Borland C++):


tcl.h (393,39): , expected


Looking at the code shows:


typedef TCL_WIDE_INT_TYPE Tcl_WideINT;

What's wrong with this? Please give me some hints!

Assuming TCL_WIDE_INT_TYPE is a previously declared C type, and not a
macro, then the line above is absolutely OK and should not give any such
error. Are you sure it's not a macro? Does it say:
#define TCL_WIDE_INT_TYPE <something>
anywhere in tcl.h or any file it includes? (For any value of
<something>.)
What does it say on the lines immediately preceding this line? Maybe
you have a statement there that doesn't terminate in a ; or a }.


Hi Joona,

thanks for the quick reply. You are right, it has to do with
TCL_WIDE_INT_TYPE not being defined.

Thanks again,

Aleks
Nov 14 '05 #3
us**@domain.invalid wrote:
Hi,

I'm getting a an error while compiling a file which includes "tcl.h"
(I'm using Borland C++):

tcl.h (393,39): , expected

Looking at the code shows:

typedef TCL_WIDE_INT_TYPE Tcl_WideINT;
What's wrong with this? Please give me some hints!


No one here can tell you. The first thing to do is to look to the lines
before (1) #include "tcl.h" and (2) the "offending" line in tcl.h. Your
compiler says that it couldn't handle the line at "tcl.h (393,39)." The
most common reason for this is lines before it. If "tcl.h" is a widely
used header, then the "lines before it" rate to be the lines before your
#include.
Be sure as well that TCL_WIDE_INT_TYPE has a legal definition visible at
that line.

--
Martin Ambuhl
Nov 14 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3385
by: sks_cpp | last post by:
I am trying to wrap the map iterator for keys and values. However, I seem to run into problems with the values for const_iterator - it works for all other combinations. Below I list my code and...
9
6577
by: Ben Midgley | last post by:
Please have a look at the code below My problem is the error message "Nonportable pointer conversion", so far as I can tell there is no pointer conversion occuring here so I am assuming it is...
4
5702
by: Scott Chang | last post by:
Hi all I copied the following VC++ 6.0 code (written by someone in the website) to my VC++ .Net 2002-Windows XP Pro PC ////****Solution 'dyndllclass' (2 projects)***/// ///***dynapp****(1st...
7
1869
by: Alden Pierre | last post by:
Hello, I'm trying to create my own user define container, but I'm having a little hard time figuring out why is my class considered undefined by my compiler. Here is the following code. //...
5
3160
by: fimarn | last post by:
I am trying to get rid of compile time error that I am getting only in RHEL5 (not in RHEL4) apparently due to the changes in the stl_list.h file. The error that I am getting is coming from the...
21
35477
by: Ram Prasad | last post by:
I am trying to write a simple libspf2 plugin code for my postfix ( milter) I am getting this unhelpful error message when I try to compile gcc -g1 -Wall -I/usr/local/include/spf2 -I. -c mfunc.c...
20
3211
by: jacob navia | last post by:
Consider this code static typedef struct { int boo; } FOO; This provokes with MSVC: ------------------------------ Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50727.762 for x64...
2
3362
by: Prashanth Kumar B R | last post by:
Hello, I have the below typedef statements in one of my header file. // // Type Definitions // typedef unsigned long DWORD; typedef unsigned int UINT; typedef unsigned short WORD;
3
3980
by: Hill | last post by:
This is an simple map, just an exercise. Who can help me fix this compile issue?Thanks in advance. #include <string> #include <vector> #include <iostream> using std::vector; using std::string;...
3
10785
by: imaloner | last post by:
I am posting two threads because I have two different problems, but both have the same background information. Common Background Information: I am trying to rebuild code for a working,...
0
7213
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,...
0
7298
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,...
0
7366
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...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5610
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,...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.