Boost C++ Libraries: Ticket #5088: Odd definition of main() inside library on AIX https://svn.boost.org/trac10/ticket/5088 <p> There seems to be a definition of <code>main()</code> that is there only for <code>__IBMCPP__</code>. This definition seems to be doing more harm than good for me. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5088 Trac 1.4.3 hstong@… Tue, 18 Jan 2011 22:30:40 GMT attachment set https://svn.boost.org/trac10/ticket/5088 https://svn.boost.org/trac10/ticket/5088 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">regex.cpp.patch</span> </li> </ul> <p> Patch to libs/regex/src/regex.cpp removing main() from library </p> Ticket anonymous Wed, 19 Jan 2011 12:23:01 GMT <link>https://svn.boost.org/trac10/ticket/5088#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5088#comment:1</guid> <description> <p> I was under the impression that IBM's compiler needed a main() in order to build regex as a DLL? Maybe that restriction has been removed? What issues does it's presence cause, and what compiler version are you using? </p> <p> Thanks, John. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 19 Jan 2011 12:23:40 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5088#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5088#comment:2</guid> <description> <p> Ah wait... is this on AIX with IBM's linker, or on Linux with the system linker? </p> </description> <category>Ticket</category> </item> <item> <author>hstong@…</author> <pubDate>Wed, 19 Jan 2011 22:06:36 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5088#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5088#comment:3</guid> <description> <p> This is AIX with IBM's linker. </p> <p> A normal build produces: </p> <pre class="wiki">ld: 0711-224 WARNING: Duplicate symbol: .main </pre><p> When using <code>-qextchk</code> (adds XCOFF type-check information): </p> <pre class="wiki">ld: 0711-197 ERROR: Type mismatches for symbol: .main </pre><p> The confusion over needing <code>main()</code> in the library sounds like an issue with not setting <code>-bnoentry</code> on the link step. I believe that this was resolved with a fix to <code>vacpp.jam</code>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Thu, 20 Jan 2011 10:14:03 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/5088#comment:4 https://svn.boost.org/trac10/ticket/5088#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.47.0</span> </li> </ul> Ticket John Maddock Thu, 20 Jan 2011 10:15:03 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5088#comment:5 https://svn.boost.org/trac10/ticket/5088#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/68318" title="Building with IBM C++ no longer needs a main() entry point. Fixes #5088.">[68318]</a>) Building with IBM C++ no longer needs a main() entry point. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5088" title="#5088: Patches: Odd definition of main() inside library on AIX (closed: fixed)">#5088</a>. </p> Ticket