Quantcast

"...is defined after prior declaration as dllimport: attribute ignored", what's it mean?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

"...is defined after prior declaration as dllimport: attribute ignored", what's it mean?

Ducky Yazy
warning looks like:

HTMLAttributeList.cpp: in member function 'void
cgicc::
HTMLAttributeList::render(std::ostream&) const':
HTMLAttributeList.cpp:74: warning: function 'void
cgicc::HTMLAttributeList::render(std::ostream&) const'
is
defined after prior declaration as dllimport:
attribute
ignored.

what does "prior declaration" and the warning mean?


               
___________________________________________________________
雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱
http://cn.mail.yahoo.com/?id=77071



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: "...is defined after prior declaration as dllimport: attribute ignored", what's it mean?

adah
You have something like follows (or to this effect, probably in some .h
files):

__declspec(dllimport) void
cgicc::HTMLAttributeList::render(std::ostream&) const;

before

void
cgicc::HTMLAttributeList::render(std::ostream&) const
{
...
}

It looks like your code has some problems. Maybe you want `dllexport' in
the prior declaration? Check whether you were expected to define some
macros like BUILD_HTML_DLL.

Best regards,

Yongwei





Ducky Yazy <[hidden email]>


 
        To:     [hidden email]
        CC:
        Subject:        [Mingw-users] "...is defined after prior declaration as dllimport:
attribute ignored", what's it mean?

warning looks like:

HTMLAttributeList.cpp: in member function 'void
cgicc::
HTMLAttributeList::render(std::ostream&) const':
HTMLAttributeList.cpp:74: warning: function 'void
cgicc::HTMLAttributeList::render(std::ostream&) const'
is
defined after prior declaration as dllimport:
attribute
ignored.

what does "prior declaration" and the warning mean?




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Loading...