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

warning's meaning

P: n/a
what is the meaning of
warning attributes ignored on template instantiation.
i got it when i compiled stlport 5.1.3.

anybody can help me ?
thx!

May 31 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
holmescn wrote:
what is the meaning of
warning attributes ignored on template instantiation.
i got it when i compiled stlport 5.1.3.
When you compiled what? Show the code an the full message.

--
Ian Collins.
May 31 '07 #2

P: n/a
holmescn wrote:
what is the meaning of
warning attributes ignored on template instantiation.
i got it when i compiled stlport 5.1.3.
Your question is a FAQ. See
http://www.parashift.com/c++-faq-lit...t.html#faq-5.8
May 31 '07 #3

P: n/a
On 5 31 , 1 36 , Ian Collins <ian-n...@hotmail.comwrote:
holmescnwrote:
what is the meaning of
warning attributes ignored on template instantiation.
i got it when i compiled stlport 5.1.3.

When you compiled what? Show the code an the full message.

--
Ian Collins.
when i compiled the stlport source code and any code with stlport.

for example
the code is
#include<iostream>
using namespace std;
int main()
{
cout<<"Hello"<<endl;
return 0;
}

and the messages are:
D:/STLPort/stlport/stl/_iosfwd.h:103: warning: attributes ignored on
template instantiation
D:/STLPort/stlport/stl/_iosfwd.h:104: warning: attributes ignored on
template instantiation
D:/STLPort/stlport/stl/_iosfwd.h:105: warning: attributes ignored on
template instantiation
D:/STLPort/stlport/stl/_iosfwd.h:106: warning: attributes ignored on
template instantiation
D:/STLPort/stlport/stl/_iosfwd.h:109: warning: attributes ignored on
template instantiation
D:/STLPort/stlport/stl/_iosfwd.h:110: warning: attributes ignored on
template instantiation
D:/STLPort/stlport/stl/_iosfwd.h:111: warning: attributes ignored on
template instantiation
D:/STLPort/stlport/stl/_iosfwd.h:112: warning: attributes ignored on
template instantiation
In file included from D:/STLPort/stlport/stl/_num_put.h:186,
from D:/STLPort/stlport/stl/_ostream.c:26,
from D:/STLPort/stlport/stl/_ostream.h:380,
from D:/STLPort/stlport/stl/_istream.h:31,
from D:/STLPort/stlport/iostream:39,
from D:\MyProjects\test\main.cpp:1:
D:/STLPort/stlport/stl/_num_put.c:404: warning:
'stlp_std::num_put<_CharT, _OutputIter>::id' redeclared without
dllimport attribute: previous dllimport ignored
In file included from D:/STLPort/stlport/stl/_num_get.h:229,
from D:/STLPort/stlport/stl/_istream.c:30,
from D:/STLPort/stlport/stl/_istream.h:355,
from D:/STLPort/stlport/iostream:39,
from D:\MyProjects\test\main.cpp:1:
D:/STLPort/stlport/stl/_num_get.c:440: warning:
'stlp_std::num_get<_Ch, _InIt>::id' redeclared without dllimport
attribute: previous dllimport ignored

i haven't got it when i compiled with gcc 3.4.5. I don't know if it
happened in gcc 4.1.2.I got it in gcc 4.2.0.

Jun 3 '07 #4

P: n/a
"holmescn" <ho*********@gmail.comwrote in message
news:11**********************@g37g2000prf.googlegr oups.com...
On 5 31 , 1 36 , Ian Collins <ian-n...@hotmail.comwrote:
>holmescnwrote:
what is the meaning of
warning attributes ignored on template instantiation.
i got it when i compiled stlport 5.1.3.

When you compiled what? Show the code an the full message.

--
Ian Collins.

when i compiled the stlport source code and any code with stlport.

for example
the code is
#include<iostream>
using namespace std;
int main()
{
cout<<"Hello"<<endl;
return 0;
}

and the messages are:
D:/STLPort/stlport/stl/_iosfwd.h:103: warning: attributes ignored on
template instantiation
[Snipped a lot of errors about the same]
i haven't got it when i compiled with gcc 3.4.5. I don't know if it
happened in gcc 4.1.2.I got it in gcc 4.2.0.
That is strange. You seem to have a well formed program, there should be no
warnings at all. I can only think of some issue wiht STLPort itself.
Perhaps there is a newer version you can use?
Jun 3 '07 #5

P: n/a
On 6 3 , 3 32 , "Jim Langston" <tazmas...@rocketmail.comwrote:
"holmescn" <holmesco...@gmail.comwrote in message

news:11**********************@g37g2000prf.googlegr oups.com...


On 5 31 , 1 36 , Ian Collins <ian-n...@hotmail.comwrote:
holmescnwrote:
what is the meaning of
warning attributes ignored on template instantiation.
i got it when i compiled stlport 5.1.3.
When you compiled what? Show the code an the full message.
--
Ian Collins.
when i compiled the stlport source code and any code with stlport.
for example
the code is
#include<iostream>
using namespace std;
int main()
{
cout<<"Hello"<<endl;
return 0;
}
and the messages are:
D:/STLPort/stlport/stl/_iosfwd.h:103: warning: attributes ignored on
template instantiation

[Snipped a lot of errors about the same]
i haven't got it when i compiled with gcc 3.4.5. I don't know if it
happened in gcc 4.1.2.I got it in gcc 4.2.0.

That is strange. You seem to have a well formed program, there should be no
warnings at all. I can only think of some issue wiht STLPort itself.
Perhaps there is a newer version you can use?- -

- -
Thx.
I have post it on stlport's forum.
I hope to get a fix soon.

Jun 3 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.