Author Topic: code::blocks svn version 6218 compiling error  (Read 4799 times)

Offline sksksk

  • Single posting newcomer
  • *
  • Posts: 2
code::blocks svn version 6218 compiling error
« on: May 12, 2010, 08:00:56 am »
During the compile I get:
Code
/include/wx/fs_mem.h:68: undefined reference to `_imp___ZTV17wxMemoryFSHandler
why?
code::blocks svn version 6218
mingw version 4.4.1

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: code::blocks svn version 6218 compiling error
« Reply #1 on: May 12, 2010, 01:36:19 pm »
During the compile I get:
Code
/include/wx/fs_mem.h:68: undefined reference to `_imp___ZTV17wxMemoryFSHandler
why?
code::blocks svn version 6218
mingw version 4.4.1
Because you are missing to provide the implementation of that function to the linker.

Notice that this is not a Code::blocks issue, so your topic might get locked as it violates our forum rules. Using Google before asking here would have revealed that, too.
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 Jasper

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: code::blocks svn version 6218 compiling error
« Reply #2 on: May 29, 2010, 05:09:27 pm »
Ironically enough, this is the only result when searching google for that error. If tell to show even the results it thought too similar (or whatever that functionality is called in English) you will get a bunch more references to this post and to one other result. Also on this forums.

Anyway, let me repeat real quick what it said there: this might be caused by your dll having been compiled with a different version of gcc than you are using to Code::Blocks with.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7787
    • My Best Post
Re: code::blocks svn version 6218 compiling error
« Reply #3 on: June 06, 2010, 12:36:50 am »
During the compile I get:
Code
/include/wx/fs_mem.h:68: undefined reference to `_imp___ZTV17wxMemoryFSHandler
why?
code::blocks svn version 6218
mingw version 4.4.1

I got the same error compiling Code::Blocks and linking against wxWidgets 2.8.10 that was compiled with different compiler (It may have been the 3.4.5 MinGW GCC). After recompiling wxWidgets with TDM 4.4.1 SJLJ the error did not happen on linking.
Another post blamed the issue on Bin Utils being to old; no idea if that is true.

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