From: Michal M. <mol...@se...> - 2013-04-02 19:31:02
|
Dne 2.4.2013 11:52, Leslaw Bieniasz napsal(a):> Hi, > > I am beginning to work with DevC++ and MInGW compiler, and I have a few > questions: > > 1) I notice that the method name() of the type_info object returned by > the operator typeid() does not return the exact class name (when called > for a class object), but the class name preceded by some digits. Is this > a normal behaviour or some bug in the compiler? C++ standard does not define what exactly it should return, so basically everything is OK. c++filt.exe in the bin directory should be able to demangle it. > 3) I notice that the size of the executables (for console type > applications) exceeds several times the size that I have previously > obtained by using Borland C++ Builder. Is there any way (compiler > options?) to reduce this size, and what is generally the reason > for this behaviour? Turn off generating of debugging information and enable stripping of executable when Linking. It should be somewhere in the Project Options, Compiler settings, Linker. GCC has also -Os setting for optimization for size. But the biggest difference should do the striping. You can also strip already build executable using the strip.exe from the bin directory. > 5) I wonder if anybody has experiences with creating DLLs that > cooperate with MS C++ Visual Studio - produced GUIs? > This is something that I need to do, because I need long double > variables offered by MInGW and DevCPP, but Visual Studio should > be better for making a GUI, although it does not provide > support for long doubles. Will such a combination work? You will have problems in passing the long double value to/from gui, you would have to either pass it as string or just double or something like that. Also note that the free Visual C++ Express does not support MFC, only .Net framework GUI libraries which uses completely non-standard C++ dialect. If I were you I would use wxWidgets library for GUI, it's something like MFC, there are some tools which help with layouting of forms, eg. wxDev-C++, although the quality of these tools vary and none of them of course equals to MFC support in full version of Visual Studio. Regards, Michal Molhanec |