tag:blogger.com,1999:blog-8821846818714029393.post1938171360694421313..comments2023-09-01T15:39:56.690+02:00Comments on pts.blog: How to write a C++ program without libstdc++Unknownnoreply@blogger.comBlogger5125tag:blogger.com,1999:blog-8821846818714029393.post-20403128049999915032015-12-20T02:25:22.779+01:002015-12-20T02:25:22.779+01:00This is awesome, exactly what I was looking for in...This is awesome, exactly what I was looking for in trying to use a small amount of C++ code in a C project for an embedded micro (where I don't have anywhere near enough room to fit libstdc++).Effective Dosehttps://www.blogger.com/profile/06060255254617721966noreply@blogger.comtag:blogger.com,1999:blog-8821846818714029393.post-22970391445958354672012-05-30T18:29:32.662+02:002012-05-30T18:29:32.662+02:00I just tried the method cross-compiling to an embe...I just tried the method cross-compiling to an embedded MIPS system running Linux and it works :)<br /><br />Thanks,<br /><br />SoyebUnknownhttps://www.blogger.com/profile/16165704239774320719noreply@blogger.comtag:blogger.com,1999:blog-8821846818714029393.post-56977885691639422972011-02-05T09:02:56.405+01:002011-02-05T09:02:56.405+01:00@Alvaro: Exceptions need quite a few extra symbols...@Alvaro: Exceptions need quite a few extra symbols to be linked in, which gcc doesn't have, so linking with gcc fails. Maybe it's possible to provide a reasonable emulation (just like for operator new), but implementing that doesn't look obvious for me.ptshttps://www.blogger.com/profile/00909092426117039110noreply@blogger.comtag:blogger.com,1999:blog-8821846818714029393.post-47390473164212544702011-02-04T21:10:06.080+01:002011-02-04T21:10:06.080+01:00Is it really impossible to throw exceptions? even ...Is it really impossible to throw exceptions? even if you throw your own types that don't depend on std::exception? Why?Alvarohttps://www.blogger.com/profile/09960866551954271128noreply@blogger.comtag:blogger.com,1999:blog-8821846818714029393.post-1672887882553496852011-01-12T14:11:52.203+01:002011-01-12T14:11:52.203+01:00You can safely get rid of the 0 check around the c...You can safely get rid of the 0 check around the call to free(). free() already checks for a NULL argument.landtunahttps://www.blogger.com/profile/16493132272152708529noreply@blogger.com