Re: Incompatibility of gtkmm 2.14 with boost 1.35/38 on Win32/MSVC 2008
- From: Urs Stotz <stotz napali borg ch>
- To: gtkmm-list gnome org
- Subject: Re: Incompatibility of gtkmm 2.14 with boost 1.35/38 on Win32/MSVC 2008
- Date: Tue, 17 Mar 2009 23:28:27 +0100
On Mon, Mar 16, 2009 at 03:30:43PM +0100, Armin Burgmeier wrote:
>On Mon, 2009-03-16 at 12:57 +0300, ???????? ???????????????? wrote:
>> Hi!
>>
>> I encountered a problem using gtkmm with boost 1.35/1.38 libraries on Win32/MSVC 2008.
>>
>> Simple code provided below works fine until I add gtkmm_2_4_vc90_d property
>> set as described here:
>> http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/sec-visual-studio-new-project.html.
>>
>> Code:
>>
>> #include "stdafx.h"
>>
>> int main(int argc, char* argv[])
>> {
>> float v = 2.2;
>> boost::format fmt("%.2f");
>> fmt % v; // <- AV here
>> return 0;
>> }
>>
>> After adding gtkmm property set access violation occurs during the execution of the program(in Debug
>> configuration). It is certainly not a boost libraries problem.
>
> Are you using prebuilt boost binaries from somewhere? If you have built
> boost yourself, then you probably need to make sure that you build using
> the same runtime (using multi-threaded debug DLL as runtime). Maybe you
> will also need to build boost with the /vd2 flag.
>
> I'll try to reproduce the problem to see what's going wrong.
It seams that boost::format use streambuffer on heap.
Then the problem is described here:
http://www.nabble.com/gtkmm-with-VS2005-vd2-option-td19781259.html
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=101134&wa=wsignin1.0
http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/bda1c363-7a9a-4094-b53e-a0c190892ad0/
Regards
Urs
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]