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

lots of warnings with stlport

P: n/a
Hi,

we have to use stlport here, but With a code like this:

void DoSomething(int english_version)
{
// make no use of english_version
}
I get this compiler output:

e:\GeFr\Work\cobf_1.04\XWallsQuellen\xcwsystem.cpp (1451) : warning
C4100: 'english_version': Unreferenzierter formaler Parameter

e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
I use VC++7.1. BTW: Can I make the compiler errors english somehow??
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
Dec 19 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
"Gernot Frisch" <Me@Privacy.net> wrote in message
news:40*************@individual.net
Hi,

we have to use stlport here, but With a code like this:

void DoSomething(int english_version)
{
// make no use of english_version
}
I get this compiler output:

e:\GeFr\Work\cobf_1.04\XWallsQuellen\xcwsystem.cpp (1451) : warning
C4100: 'english_version': Unreferenzierter formaler Parameter


I don't know anything about stlport, but is it possible for you to eliminate
the parameter from the function signature, i.e., define the function as

void DoSomething(int)
{
// make no use of english_version
}

I think this might stop the warnings.
--
John Carson
Dec 19 '05 #2

P: n/a

"John Carson" <jc****************@netspace.net.au> schrieb im
Newsbeitrag news:do**********@otis.netspace.net.au...
"Gernot Frisch" <Me@Privacy.net> wrote in message
news:40*************@individual.net
Hi,

we have to use stlport here, but With a code like this:

void DoSomething(int english_version)
{
// make no use of english_version
}
I get this compiler output:

e:\GeFr\Work\cobf_1.04\XWallsQuellen\xcwsystem.cpp (1451) : warning
C4100: 'english_version': Unreferenzierter formaler Parameter


I don't know anything about stlport, but is it possible for you to
eliminate the parameter from the function signature, i.e., define
the function as

void DoSomething(int)
{
// make no use of english_version
}

I think this might stop the warnings.


Yes, but I don't mind the warning, I mind the loooong stuff after the
warning. The template stuff.
Dec 19 '05 #3

P: n/a
"Gernot Frisch" <Me@Privacy.net> wrote in message
news:40*************@individual.net
"John Carson" <jc****************@netspace.net.au> schrieb im
Newsbeitrag news:do**********@otis.netspace.net.au...
"Gernot Frisch" <Me@Privacy.net> wrote in message
news:40*************@individual.net
Hi,

we have to use stlport here, but With a code like this:

void DoSomething(int english_version)
{
// make no use of english_version
}
I get this compiler output:

e:\GeFr\Work\cobf_1.04\XWallsQuellen\xcwsystem.cpp (1451) : warning
C4100: 'english_version': Unreferenzierter formaler Parameter


I don't know anything about stlport, but is it possible for you to
eliminate the parameter from the function signature, i.e., define
the function as

void DoSomething(int)
{
// make no use of english_version
}

I think this might stop the warnings.


Yes, but I don't mind the warning, I mind the loooong stuff after the
warning. The template stuff.

I was assuming that the one was causing the other. I don't read German or
Dutch (if that is what it is), so I don't know what the compiler is
complaining about.

--
John Carson
Dec 19 '05 #4

P: n/a
"Gernot Frisch" <Me@Privacy.net> wrote in message
news:40*************@individual.net...
Hi,

we have to use stlport here, but With a code like this:

void DoSomething(int english_version)
{
// make no use of english_version
}
I get this compiler output:

e:\GeFr\Work\cobf_1.04\XWallsQuellen\xcwsystem.cpp (1451) : warning C4100:
'english_version': Unreferenzierter formaler Parameter

e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
I use VC++7.1. BTW: Can I make the compiler errors english somehow??


You're obviously using a german version of VC++ but probably there is a
switch for the original messages. Anyway, you should ask that question
better in MS specific newsgroup. Regarding the warning itself, where is the
problem?

Cheers
Chris
Dec 19 '05 #5

P: n/a
Gernot Frisch wrote:
Hi,

we have to use stlport here, but With a code like this:

void DoSomething(int english_version)
{
// make no use of english_version
}
I get this compiler output:

e:\GeFr\Work\cobf_1.04\XWallsQuellen\xcwsystem.cpp (1451) : warning
C4100: 'english_version': Unreferenzierter formaler Parameter

e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
I use VC++7.1. BTW: Can I make the compiler errors english somehow??


Try STLFilt.

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Dec 19 '05 #6

P: n/a
I was assuming that the one was causing the other. I don't read
German or
Dutch (if that is what it is), so I don't know what the compiler is
complaining about.


Right you are. But the error that follows has absolutely nothing to do
with an unreferenced variable. it's so stupid!
I though this problem is known (stlport), so I just gave it a try.
Dec 19 '05 #7

P: n/a
Gernot Frisch wrote:
Hi,

we have to use stlport here, but With a code like this:

void DoSomething(int english_version)
{
// make no use of english_version
}
I get this compiler output:

e:\GeFr\Work\cobf_1.04\XWallsQuellen\xcwsystem.cpp (1451) : warning
C4100: 'english_version': Unreferenzierter formaler Parameter

e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
[...]


Isn't it that the case of "warning: unreferenced formal parameter ..."
trying to instantiate this, and this, and this, and that, and that...?

STLfilt might help make the stl part more readable.

You could also turn the particular compiler warning off
or try

english_version = english_version;

inside your DoSomething() to shut the compiler up.

HTH,
- J.
Dec 19 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.