compiler_specifics.html 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
  4. <title>Compiler specifics</title>
  5. <link rel="stylesheet" href="../boostbook.css" type="text/css">
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
  7. <link rel="home" href="../index.html" title="Chapter&#160;1.&#160;Boost.Bimap">
  8. <link rel="up" href="../index.html" title="Chapter&#160;1.&#160;Boost.Bimap">
  9. <link rel="prev" href="reference/unconstrained_set_of_reference.html" title="unconstrained_set_of Reference">
  10. <link rel="next" href="performance.html" title="Performance">
  11. </head>
  12. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  13. <table cellpadding="2" width="100%"><tr>
  14. <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
  15. <td align="center"><a href="../../../../../index.html">Home</a></td>
  16. <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
  17. <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
  18. <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
  19. <td align="center"><a href="../../../../../more/index.htm">More</a></td>
  20. </tr></table>
  21. <hr>
  22. <div class="spirit-nav">
  23. <a accesskey="p" href="reference/unconstrained_set_of_reference.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="performance.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
  24. </div>
  25. <div class="section">
  26. <div class="titlepage"><div><div><h2 class="title" style="clear: both">
  27. <a name="boost_bimap.compiler_specifics"></a><a class="link" href="compiler_specifics.html" title="Compiler specifics">Compiler specifics</a>
  28. </h2></div></div></div>
  29. <div class="informaltable"><table class="table">
  30. <colgroup>
  31. <col>
  32. <col>
  33. <col>
  34. </colgroup>
  35. <thead><tr>
  36. <th>
  37. <p>
  38. Compiler
  39. </p>
  40. </th>
  41. <th>
  42. <p>
  43. OS Tested
  44. </p>
  45. </th>
  46. <th>
  47. <p>
  48. State
  49. </p>
  50. </th>
  51. </tr></thead>
  52. <tbody>
  53. <tr>
  54. <td>
  55. <p>
  56. GCC 3.3
  57. </p>
  58. </td>
  59. <td>
  60. <p>
  61. Linux
  62. </p>
  63. </td>
  64. <td>
  65. <p>
  66. Supported
  67. </p>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td>
  72. <p>
  73. GCC 3.4
  74. </p>
  75. </td>
  76. <td>
  77. <p>
  78. Linux
  79. </p>
  80. </td>
  81. <td>
  82. <p>
  83. Supported
  84. </p>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td>
  89. <p>
  90. GCC 4.0
  91. </p>
  92. </td>
  93. <td>
  94. <p>
  95. Linux, Mac
  96. </p>
  97. </td>
  98. <td>
  99. <p>
  100. Supported
  101. </p>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td>
  106. <p>
  107. GCC 4.1
  108. </p>
  109. </td>
  110. <td>
  111. <p>
  112. Linux
  113. </p>
  114. </td>
  115. <td>
  116. <p>
  117. Supported
  118. </p>
  119. </td>
  120. </tr>
  121. <tr>
  122. <td>
  123. <p>
  124. GCC 4.2
  125. </p>
  126. </td>
  127. <td>
  128. <p>
  129. Linux
  130. </p>
  131. </td>
  132. <td>
  133. <p>
  134. Supported
  135. </p>
  136. </td>
  137. </tr>
  138. <tr>
  139. <td>
  140. <p>
  141. ICC 8.0
  142. </p>
  143. </td>
  144. <td>
  145. <p>
  146. Linux
  147. </p>
  148. </td>
  149. <td>
  150. <p>
  151. Supported
  152. </p>
  153. </td>
  154. </tr>
  155. <tr>
  156. <td>
  157. <p>
  158. ICC 9.0
  159. </p>
  160. </td>
  161. <td>
  162. <p>
  163. Linux
  164. </p>
  165. </td>
  166. <td>
  167. <p>
  168. Supported
  169. </p>
  170. </td>
  171. </tr>
  172. <tr>
  173. <td>
  174. <p>
  175. ICC 9.1
  176. </p>
  177. </td>
  178. <td>
  179. <p>
  180. Linux
  181. </p>
  182. </td>
  183. <td>
  184. <p>
  185. Supported
  186. </p>
  187. </td>
  188. </tr>
  189. <tr>
  190. <td>
  191. <p>
  192. GCC 4.2
  193. </p>
  194. </td>
  195. <td>
  196. <p>
  197. Linux
  198. </p>
  199. </td>
  200. <td>
  201. <p>
  202. Supported
  203. </p>
  204. </td>
  205. </tr>
  206. <tr>
  207. <td>
  208. <p>
  209. GCC 4.2
  210. </p>
  211. </td>
  212. <td>
  213. <p>
  214. Linux
  215. </p>
  216. </td>
  217. <td>
  218. <p>
  219. Supported
  220. </p>
  221. </td>
  222. </tr>
  223. <tr>
  224. <td>
  225. <p>
  226. VS 7.1
  227. </p>
  228. </td>
  229. <td>
  230. <p>
  231. Windows
  232. </p>
  233. </td>
  234. <td>
  235. <p>
  236. Supported
  237. </p>
  238. </td>
  239. </tr>
  240. <tr>
  241. <td>
  242. <p>
  243. VS 8.0
  244. </p>
  245. </td>
  246. <td>
  247. <p>
  248. Windows
  249. </p>
  250. </td>
  251. <td>
  252. <p>
  253. Supported
  254. </p>
  255. </td>
  256. </tr>
  257. <tr>
  258. <td>
  259. <p>
  260. ICC 7.1
  261. </p>
  262. </td>
  263. <td>
  264. <p>
  265. Windows
  266. </p>
  267. </td>
  268. <td>
  269. <p>
  270. Not Supported
  271. </p>
  272. </td>
  273. </tr>
  274. <tr>
  275. <td>
  276. <p>
  277. ICC 8.0
  278. </p>
  279. </td>
  280. <td>
  281. <p>
  282. Windows
  283. </p>
  284. </td>
  285. <td>
  286. <p>
  287. Supported
  288. </p>
  289. </td>
  290. </tr>
  291. <tr>
  292. <td>
  293. <p>
  294. ICC 9.1
  295. </p>
  296. </td>
  297. <td>
  298. <p>
  299. Windows
  300. </p>
  301. </td>
  302. <td>
  303. <p>
  304. Supported
  305. </p>
  306. </td>
  307. </tr>
  308. <tr>
  309. <td>
  310. <p>
  311. CW 8.3
  312. </p>
  313. </td>
  314. <td>
  315. <p>
  316. Windows
  317. </p>
  318. </td>
  319. <td>
  320. <p>
  321. Not Supported
  322. </p>
  323. </td>
  324. </tr>
  325. </tbody>
  326. </table></div>
  327. <h3>
  328. <a name="boost_bimap.compiler_specifics.h0"></a>
  329. <span class="phrase"><a name="boost_bimap.compiler_specifics.vs_7_1"></a></span><a class="link" href="compiler_specifics.html#boost_bimap.compiler_specifics.vs_7_1">VS
  330. 7.1</a>
  331. </h3>
  332. <p>
  333. If a .cpp file uses more than four different bimaps the compiler will run out
  334. of symbols and issue an internal compiler error. The official solution in msdn
  335. is to split the .cpp in several files or upgrade your compiler.
  336. </p>
  337. <h3>
  338. <a name="boost_bimap.compiler_specifics.h1"></a>
  339. <span class="phrase"><a name="boost_bimap.compiler_specifics.vs_8_0"></a></span><a class="link" href="compiler_specifics.html#boost_bimap.compiler_specifics.vs_8_0">VS
  340. 8.0</a>
  341. </h3>
  342. <p>
  343. VC++ 8.0 warns on usage of certain Standard Library and API functions that
  344. can be cause buffer overruns or other possible security issues if misused.
  345. See http://msdn.microsoft.com/msdnmag/issues/05/05/SafeCandC/default.aspx But
  346. the wording of the warning is misleading and unsettling, there are no portable
  347. alternative functions, and VC++ 8.0's own libraries use the functions in question.
  348. In order to turn off the warnings add the followings defines at the begging
  349. of your .cpp files:
  350. </p>
  351. <pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">_CRT_SECURE_NO_DEPRECATE</span>
  352. <span class="preprocessor">#define</span> <span class="identifier">_SCL_SECURE_NO_DEPRECATE</span>
  353. </pre>
  354. </div>
  355. <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
  356. <td align="left"></td>
  357. <td align="right"><div class="copyright-footer">Copyright &#169; 2006-2012 Matias Capeletto<p>
  358. Distributed under the Boost Software License, Version 1.0. (See accompanying
  359. file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
  360. </p>
  361. </div></td>
  362. </tr></table>
  363. <hr>
  364. <div class="spirit-nav">
  365. <a accesskey="p" href="reference/unconstrained_set_of_reference.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="performance.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
  366. </div>
  367. </body>
  368. </html>