Author Topic: incompatibility between svn 9738 and FortranProject  (Read 6168 times)

Offline gd_on

  • Lives here!
  • ****
  • Posts: 824
incompatibility between svn 9738 and FortranProject
« on: March 13, 2014, 09:53:10 am »
Trying to build svn 9738 with CodeBlocks.workspace produces a compilation error in plugin FortranProject (recent changes in sdk* probably). Other plugins are OK.
Compiling with TDM 4.8.1 32 bits on Windows 7, wx2.8.12.

Code
-------------- Générer : default dans FortranProject (compilateur : GNU GCC Compiler)---------------

Compilation : bufferparserthread.cpp
Compilation : ccsmartfilter.cpp
Compilation : changecase.cpp
Compilation : farrays.cpp
Compilation : finfowindow.cpp
Compilation : fortranfileext.cpp
Compilation : fortranproject.cpp
Compilation : fpoptionsdlg.cpp
Compilation : includedb.cpp
Compilation : jumptracker.cpp
Compilation : keywordsparserf.cpp
Compilation : lineaddress.cpp
Compilation : makefilegen.cpp
In file included from ..\..\..\include/sdk_common.h:123:0,
                 from ..\..\..\include/sdk.h:14,
                 from D:\gdurand.ONL\Documents\00_svn_CodeBlocks\CodeBlocks_src\trunk\src\plugins\contrib\FortranProject\fortranproject.cpp:10:
..\..\..\include/cbplugin.h: In instantiation of 'static cbPlugin* PluginRegistrant<T>::CreatePlugin() [with T = FortranProject]':
..\..\..\include/cbplugin.h:1075:65:   required from 'PluginRegistrant<T>::PluginRegistrant(const wxString&) [with T = FortranProject]'
D:\gdurand.ONL\Documents\00_svn_CodeBlocks\CodeBlocks_src\trunk\src\plugins\contrib\FortranProject\fortranproject.cpp:37:62:   required from here
..\..\..\include/cbplugin.h:1082:24: error: cannot allocate an object of abstract type 'FortranProject'
             return new T;
                        ^
In file included from D:\gdurand.ONL\Documents\00_svn_CodeBlocks\CodeBlocks_src\trunk\src\plugins\contrib\FortranProject\fortranproject.cpp:11:0:
D:\gdurand.ONL\Documents\00_svn_CodeBlocks\CodeBlocks_src\trunk\src\plugins\contrib\FortranProject\fortranproject.h:31:7: note:   because the following virtual functions are pure within 'FortranProject':
 class FortranProject : public cbCodeCompletionPlugin
       ^
In file included from ..\..\..\include/sdk_common.h:123:0,
                 from ..\..\..\include/sdk.h:14,
                 from D:\gdurand.ONL\Documents\00_svn_CodeBlocks\CodeBlocks_src\trunk\src\plugins\contrib\FortranProject\fortranproject.cpp:10:
..\..\..\include/cbplugin.h:822:34: note: virtual cbCodeCompletionPlugin::CCProviderStatus cbCodeCompletionPlugin::GetProviderStatusFor(cbEditor*)
         virtual CCProviderStatus GetProviderStatusFor(cbEditor* ed) = 0;
                                  ^
..\..\..\include/cbplugin.h:843:38: note: virtual std::vector<cbCodeCompletionPlugin::CCToken> cbCodeCompletionPlugin::GetAutocompList(bool, cbEditor*, int&, int&)
         virtual std::vector<CCToken> GetAutocompList(bool isAuto, cbEditor* ed, int& tknStart, int& tknEnd) = 0;
                                      ^
..\..\..\include/cbplugin.h:855:26: note: virtual wxString cbCodeCompletionPlugin::GetDocumentation(const cbCodeCompletionPlugin::CCToken&)
         virtual wxString GetDocumentation(const CCToken& token) = 0;
                          ^
..\..\..\include/cbplugin.h:876:40: note: virtual std::vector<cbCodeCompletionPlugin::CCCallTip> cbCodeCompletionPlugin::GetCallTips(int, int, cbEditor*, int&)
         virtual std::vector<CCCallTip> GetCallTips(int pos, int style, cbEditor* ed, int& argsPos) = 0;
                                        ^
..\..\..\include/cbplugin.h:888:38: note: virtual std::vector<cbCodeCompletionPlugin::CCToken> cbCodeCompletionPlugin::GetTokenAt(int, cbEditor*, bool&)
         virtual std::vector<CCToken> GetTokenAt(int pos, cbEditor* ed, bool& allowCallTip) = 0;
                                      ^
..\..\..\include/cbplugin.h:899:26: note: virtual wxString cbCodeCompletionPlugin::OnDocumentationLink(wxHtmlLinkEvent&, bool&)
         virtual wxString OnDocumentationLink(wxHtmlLinkEvent& event, bool& dismissPopup) = 0;
                          ^
..\..\..\include/cbplugin.h: In static member function 'static cbPlugin* PluginRegistrant<T>::CreatePlugin() [with T = FortranProject]':
..\..\..\include/cbplugin.h:1083:9: warning: control reaches end of non-void function [-Wreturn-type]
         }
         ^
Le processus s'est terminé avec le code d'état 1 (7 minute(s), 46 seconde(s))
 
Le processus s'est terminé avec le code d'état 0 (7 minute(s), 47 seconde(s))
1 erreur(s), 14 avertissement(s) (7 minute(s), 47 seconde(s))
 

gd_on
Windows 11 64 bits (24H2), svn C::B (last version or almost!), wxWidgets 3.2.8 (tests with 3.3), Msys2 Compilers 15.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: incompatibility between svn 9738 and FortranProject
« Reply #1 on: March 13, 2014, 02:23:26 pm »
I would guess cbCodeCompletionPlugin was changed.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: incompatibility between svn 9738 and FortranProject
« Reply #2 on: March 13, 2014, 02:36:40 pm »
It has changed, but we (alpha) are in contact with the Fortran plugin developer, so he will surely update his project soon.
As far as I know the sources are already prepared for this.

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: incompatibility between svn 9738 and FortranProject
« Reply #3 on: March 13, 2014, 08:01:14 pm »
It has changed, but we (alpha) are in contact with the Fortran plugin developer, so he will surely update his project soon.
As far as I know the sources are already prepared for this.
Yes; he is in the process of merging his branch.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 824
Re: incompatibility between svn 9738 and FortranProject
« Reply #4 on: March 14, 2014, 09:11:46 am »
With FortranProject svn 71, published yesterday evening, it looks OK now.
Thanks all

gd_on
Windows 11 64 bits (24H2), svn C::B (last version or almost!), wxWidgets 3.2.8 (tests with 3.3), Msys2 Compilers 15.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).