News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

code::blocks svn version 6218 compiling error

Started by sksksk, May 12, 2010, 08:00:56 AM

Previous topic - Next topic

sksksk

During the compile I get:
/include/wx/fs_mem.h:68: undefined reference to `_imp___ZTV17wxMemoryFSHandler
why?
code::blocks svn version 6218
mingw version 4.4.1

MortenMacFly

Quote from: sksksk on May 12, 2010, 08:00:56 AM
During the compile I get:
/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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Jasper

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.

stahta01

Quote from: sksksk on May 12, 2010, 08:00:56 AM
During the compile I get:
/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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]