Author Topic: Compile error on codesnippets.cpp SVN 3914 XP SP2  (Read 4765 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6678
    • My Best Post
Compile error on codesnippets.cpp SVN 3914 XP SP2
« on: May 01, 2007, 06:00:11 pm »
From codesnippets.cpp on line "#include "memorymappedfile.h"

SVN 3914; XP SP2

Where is the file memorymappedfile.h supposed to be?

Edit, SVN 3915 added files memorymappedfile.h and memorymappedfile.cpp that might fix it; will compile and see if it works.

Tim S

Code: [Select]
-------------- Build: Plugin - Win32 in CodeSnippets-msw ---------------
Compiling: codesnippets.cpp
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\plugins\contrib\codesnippets\codesnippets.cpp:43:30: memorymappedfile.h: No such file or directory
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\plugins\contrib\codesnippets\codesnippets.cpp: In member function `void CodeSnippets::TellExternalSnippetsToTerminate()':
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\plugins\contrib\codesnippets\codesnippets.cpp:327: error: invalid use of undefined type `struct wxMemoryMappedFile'
./codesnippets.h:31: error: forward declaration of `struct wxMemoryMappedFile'
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\plugins\contrib\codesnippets\codesnippets.cpp: In member function `bool CodeSnippets::ReleaseMemoryMappedFile()':
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\plugins\contrib\codesnippets\codesnippets.cpp:339: error: invalid use of undefined type `struct wxMemoryMappedFile'
./codesnippets.h:31: error: forward declaration of `struct wxMemoryMappedFile'
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\plugins\contrib\codesnippets\codesnippets.cpp:340: error: invalid use of undefined type `struct wxMemoryMappedFile'
./codesnippets.h:31: error: forward declaration of `struct wxMemoryMappedFile'
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\plugins\contrib\codesnippets\codesnippets.cpp:341: warning: possible problem detected in invocation of delete operator:
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\plugins\contrib\codesnippets\codesnippets.cpp:341: warning: invalid use of undefined type `struct wxMemoryMappedFile'
./codesnippets.h:31: warning: forward declaration of `struct wxMemoryMappedFile'
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\plugins\contrib\codesnippets\codesnippets.cpp:341: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\plugins\contrib\codesnippets\codesnippets.cpp: In member function `long int CodeSnippets::LaunchExternalSnippets()':
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\plugins\contrib\codesnippets\codesnippets.cpp:1311: error: invalid use of undefined type `struct wxMemoryMappedFile'
./codesnippets.h:31: error: forward declaration of `struct wxMemoryMappedFile'
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\plugins\contrib\codesnippets\codesnippets.cpp:1313: error: invalid use of undefined type `struct wxMemoryMappedFile'
./codesnippets.h:31: error: forward declaration of `struct wxMemoryMappedFile'
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\plugins\contrib\codesnippets\codesnippets.cpp:1315: error: invalid use of undefined type `struct wxMemoryMappedFile'
./codesnippets.h:31: error: forward declaration of `struct wxMemoryMappedFile'
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\plugins\contrib\codesnippets\codesnippets.cpp:1319: error: invalid use of undefined type `struct wxMemoryMappedFile'
./codesnippets.h:31: error: forward declaration of `struct wxMemoryMappedFile'
Process terminated with status 1 (0 minutes, 22 seconds)
16 errors, 3 warnings
« Last Edit: May 01, 2007, 06:27:19 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2180
Re: Compile error on codesnippets.cpp SVN 3914 XP SP2
« Reply #1 on: May 01, 2007, 06:22:08 pm »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6678
    • My Best Post
Re: Compile error on codesnippets.cpp SVN 3914 XP SP2
« Reply #2 on: May 01, 2007, 06:32:59 pm »
I understand, my memory is shot, if you think your memory is really bad have you might have your doctor check for Vitamin B12 deficiency.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org