473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Error "type specifier omitted for parameter" in preprocessor directives??

Hi,
I have been trying to get STLPort work for Symbian.
I am using CodeWarrior compiler and it spews this errors namely
************************************************** ***********************
Error : type specifier omitted for parameter
string.h line 30
************************************************** **********************
The following is the line where I get this error:
Line 30 : # if (_STLP_OUTERMOST_HEADER_ID == 0x269)
Line 31 : # include <stl/_epilog.h>
Line 32 : # undef _STLP_OUTERMOST_HEADER_ID
Line 33 : # endif

Can somebody please help me in getting this fixed.
--eminemence.

Jan 24 '06 #1
8 8956
em********@gmail.com wrote:
Hi,
I have been trying to get STLPort work for Symbian.
I am using CodeWarrior compiler and it spews this errors namely
************************************************** ***********************
Error : type specifier omitted for parameter
string.h line 30
************************************************** **********************
The following is the line where I get this error:
Line 30 : # if (_STLP_OUTERMOST_HEADER_ID == 0x269)
Line 31 : # include <stl/_epilog.h>
Line 32 : # undef _STLP_OUTERMOST_HEADER_ID
Line 33 : # endif

Can somebody please help me in getting this fixed.
--eminemence.


What is _STLP_OUTERMOST_HEADER_ID defined as?

Cheers! --M

Jan 24 '06 #2
Its a simple #define noting else!!

Jan 24 '06 #3
em********@gmail.com wrote:
I have been trying to get STLPort work for Symbian.
I am using CodeWarrior compiler and it spews this errors namely
************************************************** ***********************
Error : type specifier omitted for parameter
string.h line 30
************************************************** **********************
The following is the line where I get this error:
Line 30 : # if (_STLP_OUTERMOST_HEADER_ID == 0x269)
Line 31 : # include <stl/_epilog.h>
Line 32 : # undef _STLP_OUTERMOST_HEADER_ID
Line 33 : # endif

Can somebody please help me in getting this fixed.


Please go to

http://www.stlport.com/cgi-bin/forum/dcboard.cgi

STLport has its own forum, they can help you.

As to the code you posted, there is nothing in it to warrant that error
message.

V
Jan 24 '06 #4

<em********@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Hi,
I have been trying to get STLPort work for Symbian.
I am using CodeWarrior compiler and it spews this errors namely
************************************************** ***********************
Error : type specifier omitted for parameter
string.h line 30
************************************************** **********************
The following is the line where I get this error:
Line 30 : # if (_STLP_OUTERMOST_HEADER_ID == 0x269)
Line 31 : # include <stl/_epilog.h>
Line 32 : # undef _STLP_OUTERMOST_HEADER_ID
Line 33 : # endif

Can somebody please help me in getting this fixed.
--eminemence.


If that's the actual code, then the problem is probably the spaces after the
# symbol. For example, instead of "# if", it should be #if". I'm not sure
if that's in the standard anywhere, but my compilers sure won't accept those
with spaces after the # symbol. If you want to indent, indent the # as
well, and you'll be fine. Try this:

#if (_STLP_OUTERMOST_HEADER_ID == 0x269)
#include <stl/_epilog.h>
#undef _STLP_OUTERMOST_HEADER_ID
#endif

-Howard

-Howard

Jan 24 '06 #5
Howard <al*****@hotmail.com> wrote:

<em********@gmail.com> wrote in message
Line 30 : # if (_STLP_OUTERMOST_HEADER_ID == 0x269)
Line 31 : # include <stl/_epilog.h>
Line 32 : # undef _STLP_OUTERMOST_HEADER_ID
Line 33 : # endif


If that's the actual code, then the problem is probably the spaces after the
# symbol. For example, instead of "# if", it should be #if". I'm not sure
if that's in the standard anywhere, but my compilers sure won't accept those
with spaces after the # symbol. If you want to indent, indent the # as
well, and you'll be fine. Try this:

#if (_STLP_OUTERMOST_HEADER_ID == 0x269)
#include <stl/_epilog.h>
#undef _STLP_OUTERMOST_HEADER_ID
#endif


I thought the '#' had to be in the first column?

--
Marcus Kwok
Jan 24 '06 #6
On Tue, 24 Jan 2006 18:43:15 +0000 (UTC), ri******@gehennom.net
(Marcus Kwok) wrote:
#if (_STLP_OUTERMOST_HEADER_ID == 0x269)
#include <stl/_epilog.h>
#undef _STLP_OUTERMOST_HEADER_ID
#endif


I thought the '#' had to be in the first column?


That's interesting. In my compiler I can do this:

# define BOO
# define BOO 69

Those are spaces where the white space is and it complies both
without errors or warnings. That surprised me. Is there a rule for
this?
Jan 24 '06 #7
Marcus Kwok wrote:
Howard <al*****@hotmail.com> wrote:
<em********@gmail.com> wrote in message
Line 30 : # if (_STLP_OUTERMOST_HEADER_ID == 0x269)
Line 31 : # include <stl/_epilog.h>
Line 32 : # undef _STLP_OUTERMOST_HEADER_ID
Line 33 : # endif


If that's the actual code, then the problem is probably the spaces after the
# symbol. For example, instead of "# if", it should be #if". I'm not sure
if that's in the standard anywhere, but my compilers sure won't accept those
with spaces after the # symbol. If you want to indent, indent the # as
well, and you'll be fine. Try this:

#if (_STLP_OUTERMOST_HEADER_ID == 0x269)
#include <stl/_epilog.h>
#undef _STLP_OUTERMOST_HEADER_ID
#endif

I thought the '#' had to be in the first column?


Are you asking? We don't know what you thought. The '#' has to be the
first non-whitespace character on the line.

V
Jan 24 '06 #8
I have done all the things like a space before '#' and after '#' but it
doesn't matter the compiler doesn't care.
Anyway the errors gone after the proper files had been included.
--eminemence.

Jan 25 '06 #9

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

Similar topics

7
by: Clint Herron | last post by:
Howdy! I posted this question on CSharpCorner.com, but then realized I should probably post it on a more active newsgroup. This will be my only cross-post. I'm creating a game engine, and...
4
by: Ondrej Spanel | last post by:
The code below does not compile with .NET 2003, I get folowing error: w:\c\Pokusy\delegTemplArg\delegTemplArg.cpp(11) : error C2993: 'float' : illegal type for non-type template parameter 'x' ...
4
by: bob95226 | last post by:
Hi All, I wrote a VB.NET control in Visual Studio 2003 IDE, I am trying to re-compile it with command line compiler vbc.exe like this: vbc /t:library /out:my_control.dll my_control.vb However...
8
by: regis | last post by:
Greetings, about scanf matching nonempty sequences using the "%" matches a nonempty sequence of anything except '-' "%" matches a nonempty sequence of anything except ']" matches a nonempty...
0
subashini Thiyagarajan
by: subashini Thiyagarajan | last post by:
Any one can help me in this error Error Type: Provider (0x80040E21) Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done....
17
imrosie
by: imrosie | last post by:
I've tried this string to Sum up payments, moving brackets and paren's different ways, I still get error 'type mismatch'....not sure why. Can anyone point me in the right direction?? thanks ...
1
by: dissectcode | last post by:
Hello - I am looking at a scanf function that takes in a 16 bit unsigned int(UINT16), but its format specifier is %hd. According to ...
1
by: HarishAdea | last post by:
Hi, I am trying to run the JAVA pgm, but it is giving error as "selection does not contain a main type". The filename is "ScoreLeadSummary.java" when i try to run it or debug,it gives the pop...
18
by: Stephan Beal | last post by:
Hi, all! Before i ask my question, i want to clarify that my question is not about the code i will show, but about what the C Standard says should happen. A week or so ago it occurred to me...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.