Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: ouch on February 27, 2015, 12:42:08 am

Title: Can anyone compile the contrib workspace from svn 10127?
Post by: ouch on February 27, 2015, 12:42:08 am
Windows 7 64bit using tdm-mingw 4.7.2 When compiling the the contrib pluggins workspace I get the following errors:

Code
mingw32-g++.exe -Wall -O2 -pipe -fmessage-length=0 -fexceptions -mthreads -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DwxUSE_UNICODE -DCC_PARSER_TEST -IC:\Programming\wxWidgets\WX_2_8_BRANCH\include -IC:\Programming\wxWidgets\WX_2_8_BRANCH\lib\gcc_dll\mswu -I..\..\include -I..\..\sdk\wxscintilla\include -Icctest -Iparser -I. -c C:\Programming\codeblocks\src\plugins\codecompletion\parser\cclogger.cpp -o ..\..\.objs\plugins\codecompletion\cctest\parser\cclogger.o
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp: In member function 'void CCDebugInfo::OnGoDeclClick(wxCommandEvent&)':
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:792:5: error: 'cbEditor' was not declared in this scope
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:792:15: error: 'ed' was not declared in this scope
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:792:30: error: expected primary-expression before ')' token
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:792:31: error: expected ';' before 'Manager'
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:794:48: error: invalid use of incomplete type 'class EditorManager'
In file included from ..\..\include/logmanager.h:9:0,
                 from C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:25:
..\..\include/manager.h:28:7: error: forward declaration of 'class EditorManager'
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp: In member function 'void CCDebugInfo::OnGoImplClick(wxCommandEvent&)':
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:816:5: error: 'cbEditor' was not declared in this scope
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:816:15: error: 'ed' was not declared in this scope
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:816:30: error: expected primary-expression before ')' token
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:816:31: error: expected ';' before 'Manager'
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:818:48: error: invalid use of incomplete type 'class EditorManager'
In file included from ..\..\include/logmanager.h:9:0,
                 from C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:25:
..\..\include/manager.h:28:7: error: forward declaration of 'class EditorManager'
Process terminated with status 1 (0 minute(s), 11 second(s))

Looks like that recent code completion update might be missing some stuff...

Oh also, is there a way to change the font color within code block tags on this forum? Might make reading logs easier if we could submit them all nice and color coded so the errors stand out like in CB's output log.
Title: Re: Can anyone compile the contrib workspace from svn 10127?
Post by: ollydbg on February 27, 2015, 01:29:03 am
I will look into this issue today.
Title: Re: Can anyone compile the contrib workspace from svn 10127?
Post by: stahta01 on February 27, 2015, 01:45:32 am
I will look into this issue today.

Possible patch; it fixed the compile issue for me on the cctest plugin

Code
Index: src/plugins/codecompletion/parser/ccdebuginfo.cpp
===================================================================
--- src/plugins/codecompletion/parser/ccdebuginfo.cpp (revision 10127)
+++ src/plugins/codecompletion/parser/ccdebuginfo.cpp (working copy)
@@ -22,6 +22,8 @@
     #include <wx/string.h>
     //*)
 
+    #include <cbeditor.h>
+    #include <editormanager.h>
     #include <logmanager.h>
 #endif
 

Tim S.
Title: Re: Can anyone compile the contrib workspace from svn 10127?
Post by: ollydbg on February 27, 2015, 07:10:19 am
Thanks Tim, fixed in the trunk now.
Thanks ouch for the report.

Oh also, is there a way to change the font color within code block tags on this forum? Might make reading logs easier if we could submit them all nice and color coded so the errors stand out like in CB's output log.
Not sure what exact color style you want. You mean error messages on red color, warning messages on blue color?

Maybe, you can try this: FireFox Stylish add on. I just use to change the font size, see:custom CSS to change the font size in code and quote tags for our forum (http://forums.codeblocks.org/index.php/topic,19980.msg136381.html#msg136381)
 
Title: Re: Can anyone compile the contrib workspace from svn 10127?
Post by: ouch on February 27, 2015, 11:19:02 pm
Yep, that fixed it. But now I'm getting an error with the fortran plugin:

Code
mingw32-g++.exe -Wall -O2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -I..\..\..\include -I..\..\..\sdk\wxscintilla\include -IC:\Programming\wxWidgets\WX_2_8_BRANCH\include -IC:\Programming\wxWidgets\WX_2_8_BRANCH\lib\gcc_dll\mswu -c C:\Programming\codeblocks\src\plugins\contrib\FortranProject\fpoptionsdlg.cpp -o ..\..\..\.objs\plugins\contrib\FortranProject\fpoptionsdlg.o
C:\Programming\codeblocks\src\plugins\contrib\FortranProject\fortranproject.cpp:34:9: error: #include expects "FILENAME" or <FILENAME>

and a little later:

Code
mingw32-g++.exe -Wall -O2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -I..\..\..\include -I..\..\..\sdk\wxscintilla\include -IC:\Programming\wxWidgets\WX_2_8_BRANCH\include -IC:\Programming\wxWidgets\WX_2_8_BRANCH\lib\gcc_dll\mswu -c C:\Programming\codeblocks\src\plugins\contrib\FortranProject\makefilegen.cpp -o ..\..\..\.objs\plugins\contrib\FortranProject\makefilegen.o
C:\Programming\codeblocks\src\plugins\contrib\FortranProject\fortranproject.cpp:35:2: error: expected unqualified-id before '<' token
Title: Re: Can anyone compile the contrib workspace from svn 10127?
Post by: ollydbg on March 01, 2015, 12:43:21 pm
Yep, that fixed it. But now I'm getting an error with the fortran plugin:
...
You may report this failure in Code::Blocks IDE for Fortran google group (https://groups.google.com/forum/?fromgroups#!forum/cbfortran)
Title: Re: Can anyone compile the contrib workspace from svn 10127?
Post by: ouch on March 02, 2015, 11:12:19 pm
Ok, just did.