Author Topic: CodeSnippets Build Error  (Read 9018 times)

Offline idblew

  • Multiple posting newcomer
  • *
  • Posts: 27
CodeSnippets Build Error
« on: June 17, 2014, 09:42:00 am »
When building the later SVNs, I'm getting the below errors on Windows.

Code
CodeBlocks\src\plugins\contrib\codesnippets\codesnippetsevent.cpp||In member function 'bool CodeSnippetsEvent::PostCodeSnippetsEvent(const CodeSnippetsEvent&)':
CodeBlocks\src\plugins\contrib\codesnippets\codesnippetsevent.cpp|87|error: 'class CodeSnippetsConfig' has no member named 'GetThreadSearchFrame'
CodeBlocks\src\plugins\contrib\codesnippets\codesnippetsevent.cpp||In member function 'bool CodeSnippetsEvent::ProcessCodeSnippetsEvent(const CodeSnippetsEvent&)':
CodeBlocks\src\plugins\contrib\codesnippets\codesnippetsevent.cpp|141|error: 'class CodeSnippetsConfig' has no member named 'GetThreadSearchFrame'

Any ideas?

This is using the CodeBlocks_wx30.workspace on Windows 7 (64-bit) with TDM GCC 4.8.1
« Last Edit: June 17, 2014, 10:00:10 am by idblew »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: CodeSnippets Build Error
« Reply #1 on: June 17, 2014, 10:12:37 am »
Are you able to build wx28 version? Probably the wx30 project files have not been updated.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline idblew

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: CodeSnippets Build Error
« Reply #2 on: June 17, 2014, 12:02:36 pm »
Confirmed working in wx28, so looks like a problem with the wx30 workspace.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: CodeSnippets Build Error
« Reply #3 on: June 17, 2014, 02:42:44 pm »
Confirmed working in wx28, so looks like a problem with the wx30 workspace.

Slightly tested patch for Windows Build; if you wish to test it.

Edit: Deleted patch code.
« Last Edit: June 19, 2014, 02:09:06 pm by stahta01 »
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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: CodeSnippets Build Error
« Reply #4 on: June 17, 2014, 08:49:18 pm »
Is this patch made, just by looking at the changes made to the wx28 project files?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: CodeSnippets Build Error
« Reply #5 on: June 17, 2014, 11:56:26 pm »
Is this patch made, just by looking at the changes made to the wx28 project files?

Yes, that is the way I made it; but, I might of missed some changes.

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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: CodeSnippets Build Error
« Reply #6 on: June 18, 2014, 12:35:17 am »
idblew: Please test and report if it fixes it for you, too, then I'll push it.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6079
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: CodeSnippets Build Error
« Reply #7 on: June 18, 2014, 02:49:16 am »
It looks like Morten has fixed this issue in trunk, rev 9808.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: CodeSnippets Build Error
« Reply #8 on: June 18, 2014, 08:59:48 am »
It looks like Morten has fixed this issue in trunk, rev 9808.
Ooops - I haven't seen this one. The issue popped out of my private builds. Sorry for intercepting... ::)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: CodeSnippets Build Error
« Reply #9 on: June 18, 2014, 10:13:44 am »
:)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline idblew

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: CodeSnippets Build Error
« Reply #10 on: June 19, 2014, 10:13:39 am »
Confirmed working again!

Thanks.