News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

SVN 4291 does not compile

Started by Pecan, July 22, 2007, 04:48:10 PM

Previous topic - Next topic

Pecan


-------------- 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)

stahta01

Wild guess here, delete all the .gch files and the codeblocks.a file.

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]

Pecan

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.



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



pauliusz

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.

Pecan

#4
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.

Pecan

Quote from: 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.

Upgrading to MinGW 3.4.5 did the trick! Thanks.


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