warning's meaning

H

holmescn

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!
 
I

Ian Collins

holmescn said:
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.
 
H

holmescn

holmescnwrote:

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

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.
 
J

Jim Langston

holmescn said:
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?
 
H

holmescn

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top