Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Pecan on July 22, 2007, 04:48:10 pm

Title: SVN 4291 does not compile
Post by: Pecan on July 22, 2007, 04:48:10 pm
Code
-------------- Build: Projects-workspaces importer in Code::Blocks ---------------
Compiling: plugins\projectsimporter\msvc7loader.cpp
Compiling: plugins\projectsimporter\msvc7workspaceloader.cpp
Compiling: plugins\projectsimporter\msvcloader.cpp
Compiling: plugins\projectsimporter\msvcworkspacebase.cpp
Compiling: plugins\projectsimporter\msvcworkspaceloader.cpp
Compiling: plugins\projectsimporter\projectsimporter.cpp
Compiling: plugins\projectsimporter\devcpploader.cpp
Linking dynamic library: devel\share\CodeBlocks\plugins\projectsimporter.dll
Info: resolving vtable for TiXmlDocumentby linking to __imp___ZTV13TiXmlDocument (auto-import)
.objs\plugins\projectsimporter\msvc7loader.o: In function `ZNSt6vectorIPN14BlockAllocatorI21CodeBlocksLayoutEventLj75ELb0EE11LinkedBlockIS1_EESaIS5_EEixEj':
C:/Usr/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/stl_vector.h:(.text$_ZN13TiXmlDocumentD1Ev[TiXmlDocument::~TiXmlDocument()]+0x3a): variable 'vtable for TiXmlDocument' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
collect2: ld returned 1 exit status
Process terminated with status 1 (7 minutes, 12 seconds)
0 errors, 0 warnings
 


After updating to svn 4291 I get the above linker failure.
Xp Sp2 g++ (GCC) 3.4.4 (mingw special)
Title: Re: SVN 4291 does not compile
Post by: stahta01 on July 23, 2007, 10:20:51 pm
Wild guess here, delete all the .gch files and the codeblocks.a file.

Tim S
Title: Re: SVN 4291 does not compile
Post by: Pecan on July 23, 2007, 11:10:58 pm
Nope, still the same error after doing a "del *.gch /s" from the /trunk/src dir.

And I don't have a codeblocks.a file.


Code
Linking dynamic library: devel\share\CodeBlocks\plugins\projectsimporter.dll
Info: resolving vtable for TiXmlDocumentby linking to __imp___ZTV13TiXmlDocument (auto-import)
.objs\plugins\projectsimporter\msvc7loader.o: In function `ZNSt6vectorIPN14BlockAllocatorI21CodeBlocksLayoutEventLj75ELb0EE11LinkedBlockIS1_EESaIS5_EEixEj':
C:/Usr/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/stl_vector.h:(.text$_ZN13TiXmlDocumentD1Ev[TiXmlDocument::~TiXmlDocument()]+0x3a): variable 'vtable for TiXmlDocument' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
collect2: ld returned 1 exit status
Process terminated with status 1 (7 minutes, 15 seconds)
0 errors, 0 warnings
 

Title: Re: SVN 4291 does not compile
Post by: pauliusz on July 23, 2007, 11:17:11 pm
Once I had similar problem... I solved it by updating GCC to 3.4.5. You can accomplish this by using candidate version of MinGW.
Title: Re: SVN 4291 does not compile
Post by: Pecan on July 23, 2007, 11:23:31 pm
What version of mingw is CB supposed to be compiled with?

The wiki says to use the RC2 installer. Which is what I did many months ago.
Title: Re: SVN 4291 does not compile
Post by: Pecan on July 24, 2007, 12:04:25 am
Once I had similar problem... I solved it by updating GCC to 3.4.5. You can accomplish this by using candidate version of MinGW.

Upgrading to MinGW 3.4.5 did the trick! Thanks.

Code
Compiling: plugins\projectsimporter\msvc7loader.cpp
Compiling: plugins\projectsimporter\msvc7workspaceloader.cpp
Compiling: plugins\projectsimporter\msvcloader.cpp
Compiling: plugins\projectsimporter\msvcworkspacebase.cpp
Compiling: plugins\projectsimporter\msvcworkspaceloader.cpp
Compiling: plugins\projectsimporter\projectsimporter.cpp
Compiling: plugins\projectsimporter\devcpploader.cpp
Linking dynamic library: devel\share\CodeBlocks\plugins\projectsimporter.dll
Info: resolving vtable for TiXmlDocumentby linking to __imp___ZTV13TiXmlDocument (auto-import)
Process terminated with status 0 (6 minutes, 13 seconds)
0 errors, 0 warnings