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.