473,327 Members | 2,081 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,327 software developers and data experts.

warning's meaning

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
5 1838
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
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
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: bingfeng | last post by:
I have some codes generated by perl, in which initialize some huge struct,such as PARA TOS_network_spantree_set_0_para_0 = { "vlan", emNUM, NULL, "", "configuration on a designated vlan",...
3
by: nick | last post by:
i have 5 files,when i use make command to compile them a error occurs "make: Warning: Infinite loop: Target `c.o' depends on itself" when i type make an warning message occurs cc -c b.c cc ...
32
by: Stephen | last post by:
Is there a standard way to remove the warning that a C compiler might produce from the statement: if (a = b) {} I don't want to do: if ((a = b) != 0) {} Because my "a = b" is actually...
22
by: mdh | last post by:
Hi All, Happy Solstice! May I ask the following. The following is a brief excerpt of a practice program. main(...){ if (argc 1 && mystrcomp(argv, "-n") == 0) /* argv is "-n" / ******/...
92
by: Heinrich Pumpernickel | last post by:
what does this warning mean ? #include <stdio.h> int main() { long l = 100; printf("l is %li\n", l * 10L);
4
by: Sid Price | last post by:
Does VB.NET have any support for inline warning suppression like C#? I am porting a project from VB.NET 2003 to VB.NET 2005 and I have a bunch of warnings that after careful examination are benign....
20
by: somenath | last post by:
Hi All, I have one question regarding the code. #include<stdio.h> char *f1(void); char *f1(void) { char *abc ="Hello";
20
by: jacob navia | last post by:
Consider this code static typedef struct { int boo; } FOO; This provokes with MSVC: ------------------------------ Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50727.762 for x64...
11
by: Jeff | last post by:
I turned on errors in php: ini_set('display_errors','1'); And I got a slew of notices and a couple of warnings. The notices are mostly missing indexes from doing things like this: ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.