Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: gd_on on July 05, 2019, 10:19:40 am

Title: compilation problem in fortranplugin for svn 11780
Post by: gd_on on July 05, 2019, 10:19:40 am
When building C::B 11780 I obtain a compilation error in FortranPlugin :
Code
-------------- Générer : default dans FortranProject wx3.1.x (64 bit) (compilateur : GNU GCC Compiler)---------------

Compilation : fortranproject.cpp
Compilation : indentestimator.cpp
Compilation : keywordsparserf.cpp
Compilation : makefilegen.cpp
Compilation : nativeparserf.cpp
Compilation : parserf.cpp
C:\Users\Gerard\Documents\CodeBlocks_SVN\CodeBlocks_src\src\plugins\contrib\FortranProject\fortranproject.cpp: In member function 'virtual bool FortranProject::BuildToolBar(wxToolBar*)':
C:\Users\Gerard\Documents\CodeBlocks_SVN\CodeBlocks_src\src\plugins\contrib\FortranProject\fortranproject.cpp:1265:34: error: 'class Manager' has no member named 'GetToolbarImageSize'; did you mean 'GetImageSize'?
     int imSize = Manager::Get()->GetToolbarImageSize();
                                  ^~~~~~~~~~~~~~~~~~~
                                  GetImageSize
Compilation : parserthreadf.cpp
Le processus s'est terminé avec le code d'état 1 (0 minute(s), 12 seconde(s))
 

I am on Windows 10 with MinGW 8.1 seh posix version. No problems with my previous svn 11764.

gd_on
Title: Re: compilation problem in fortranplugin for svn 11780
Post by: Miguel Gimenez on July 05, 2019, 11:54:04 am
GetToolbarImageSize() has been removed, use

Code
    int imSize = Manager::Get()->GetImageSize(Manager::UIComponent::Toolbars);

instead until Darmar fixes the code