User forums > Help

code::blocks svn version 6218 compiling error

(1/1)

sksksk:
During the compile I get:

--- Code: ---/include/wx/fs_mem.h:68: undefined reference to `_imp___ZTV17wxMemoryFSHandler
--- End code ---
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:

--- Code: ---/include/wx/fs_mem.h:68: undefined reference to `_imp___ZTV17wxMemoryFSHandler
--- End code ---
why?
code::blocks svn version 6218
mingw version 4.4.1

--- End quote ---
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.

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:

--- Code: ---/include/wx/fs_mem.h:68: undefined reference to `_imp___ZTV17wxMemoryFSHandler
--- End code ---
why?
code::blocks svn version 6218
mingw version 4.4.1

--- End quote ---

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.

Navigation

[0] Message Index

Go to full version