Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
BlackDoc documentation plugin
Alpha:
--- Quote from: marked on April 21, 2012, 08:05:57 pm ---As of removing c++11 code... I like C++11. Of course I want people to use this plugin, but if I need to support old compilers... Really, I don't know, I need a time to think about this.
--- End quote ---
I would think that it is not necessary to completely remove it; only supply a build-able (if somewhat less functional) version for those who cannot or do not want to enable C++11.
--- Code: ---#ifdef __GXX_EXPERIMENTAL_CXX0X__
#else
#endif
--- End code ---
Attached is a cbp to build this plugin on Windows.
oBFusCATed:
Alpha, I doubt he can make a buildable versions without std::unique_ptr and why bother maintaining two versions...
p.s. People should be shot when they use internal gcc definitions!
Alpha:
--- Quote from: oBFusCATed on April 22, 2012, 12:01:08 am ---Alpha, I doubt he can make a buildable versions without std::unique_ptr and why bother maintaining two versions...
--- End quote ---
Hmm, I probably should have actually looked at the source before suggesting that.
--- Quote from: oBFusCATed on April 22, 2012, 12:01:08 am ---p.s. People should be shot when they use internal gcc definitions!
--- End quote ---
I guess that means I need to go into hiding now ;). *Puts on black sunglasses.*
marked:
@oBFusCATed
Ok, I got it. The wxgtk-devel isn't available by me from repos. But I have read somewhere, that I need only the wxwin.m4 file. So, I downloaded the wxgtk-devel rpm-package with the version near to the wxWidgets version I have installed, and then I just copied the wxwin.m4 from it to /usr/share/aclocal/ folder. And it worked. Now the plugin can be built and installed using autotools. The sources on googlecode are already updated.
The gnu++0x flag is now also added to the cbp too, instead of c++0x.
Thanks for the link, I will add it to my bookmarks.
@Alpha
Yes, I think that I need just to rewrite the unique_ptr class 'by hand'. As oBFusCATed pointed me, the random numbers are available in tr1. And as of other features I have used - it is simple to replace them with the 'old' C++ code.
As I understand, the plugin is nevertheless buildable on WIndows?
Alpha:
--- Quote from: marked on April 22, 2012, 01:19:09 am ---As I understand, the plugin is nevertheless buildable on WIndows?
--- End quote ---
Yes; compiled and tested on XP with the project file from my previous post.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version