Advertisement

How do I disable certian LINK warnings?

Started by May 08, 2001 08:39 PM
2 comments, last by gimp 23 years, 9 months ago
Since i use a pile of static libraries and the get included in each other I generate heaps (~500) duplicate definition warnings. This is a problem as it''s now impossible to find the real warnings. Anyone got any thoughts? Thanks Chris
Chris Brodie
Are you using MSVC? If so, and supposing that the warning # was 1234, you would use
  #pragma warning(1234 : disable)  


I think that''s correct ...

~~~~~~~~~~
Martee
http://www.csc.uvic.ca/~mdill
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Advertisement
I thought pragma''s were for compiler warnings only?

..and since this is a duplicate definition warning when stiching the libs together what module does it go in?
Chris Brodie
I seem to remember having used pragmas for link warnings a while back ... I could be mistaken, of course.
I''m not sure which module you would put it in.

~~~~~~~~~~
Martee
http://www.csc.uvic.ca/~mdill
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers

This topic is closed to new replies.

Advertisement