|
|
OT: VS 11 build problem
I'm in the process of updating this page --
http://webEbenezer.net/comparison.html -- that compares
the performance between the serialization library in Boost
with results from the C++ Middleware Writer.
I've updated the Linux results already, but am having a
problem getting a test case to build on Windows 7. Previously
with VS 10 I used:
cl -O2 -I /Users/Store/boost_1_50_0_beta1/ -EHsc bser.cc /link /nodefaultlib:msvcprt /nodefaultlib:libcmt libboost_serialization-vc110-1_50.lib
The version of Boost was an earlier one, but other than that
the command is the same. When I use that command with
VS 11 I get errors like this:
libboost_serialization-vc110-1_50.lib(basic_archive.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in bser.obj
I built the serialization library in Boost with this command:
bjam variant=release link=static
Any ideas on how to resolve this? Tia.
|
|
0
|
|
|
|
Reply
|
woodbrian77 (236)
|
6/11/2012 9:26:24 PM |
|
On Mon, 11 Jun 2012 14:26:24 -0700 (PDT), woodbrian77@gmail.com wrote:
>
>I'm in the process of updating this page --
>http://webEbenezer.net/comparison.html -- that compares
>the performance between the serialization library in Boost
>with results from the C++ Middleware Writer.
>
>I've updated the Linux results already, but am having a
>problem getting a test case to build on Windows 7. Previously
>with VS 10 I used:
>
>cl -O2 -I /Users/Store/boost_1_50_0_beta1/ -EHsc bser.cc /link /nodefaultlib:msvcprt /nodefaultlib:libcmt libboost_serialization-vc110-1_50.lib
>
>The version of Boost was an earlier one, but other than that
>the command is the same. When I use that command with
>VS 11 I get errors like this:
>
>libboost_serialization-vc110-1_50.lib(basic_archive.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in bser.obj
>
>I built the serialization library in Boost with this command:
>bjam variant=release link=static
>
>Any ideas on how to resolve this? Tia.
You have built the library as statically linked (/MT switch) and you
built the application as dynamically linked (/MD). Change the project
settings.
|
|
0
|
|
|
|
Reply
|
geoff745 (362)
|
6/11/2012 10:55:01 PM
|
|
On Monday, June 11, 2012 6:55:01 PM UTC-4, Geoff wrote:
>
> You have built the library as statically linked (/MT switch) and you
> built the application as dynamically linked (/MD).
I tried adding MT when building the application like this:
cl -MT -O2 -I /Users/Store/boost_1_50_0_beta1/ -EHsc bser.cc /link /nodefaultlib:msvcprt /nodefaultlib:libcmt libboost_serialization-vc110-1_50.lib
But that didn't seem to help -- I still got the same errors.
> Change the project
> settings.
I'm not using an IDE.
Brian
Ebenezer Enterprises
http://webEbenezer.net
|
|
0
|
|
|
|
Reply
|
woodbrian77 (236)
|
6/12/2012 7:47:45 PM
|
|
By any chance are you mixing debug and release versions of libraries in a
single build? I ran into a similar problem when moving from VS2008 to
VS2010. I'd been mixing debug & release all along but didn't know it (and
it didn't matter, apparently) until I moved to VS2010.
woodbrian77@gmail.com wrote:
> On Monday, June 11, 2012 6:55:01 PM UTC-4, Geoff wrote:
>>
>> You have built the library as statically linked (/MT switch) and you
>> built the application as dynamically linked (/MD).
>
> I tried adding MT when building the application like this:
>
> cl -MT -O2 -I /Users/Store/boost_1_50_0_beta1/ -EHsc bser.cc /link
> /nodefaultlib:msvcprt /nodefaultlib:libcmt
> libboost_serialization-vc110-1_50.lib
>
> But that didn't seem to help -- I still got the same errors.
>
>> Change the project
>> settings.
>
> I'm not using an IDE.
>
>
> Brian
> Ebenezer Enterprises
> http://webEbenezer.net
--
Al Dunstan, Software Engineer
OptiMetrics, Inc.
3115 Professional Drive
Ann Arbor, MI 48104-5131
"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the
other way is to make it so complicated that there are no obvious
deficiencies."
- C. A. R. Hoare
|
|
0
|
|
|
|
Reply
|
no317 (69)
|
6/13/2012 3:01:51 PM
|
|
On Wednesday, June 13, 2012 11:01:51 AM UTC-4, A. W. Dunstan wrote:
> By any chance are you mixing debug and release versions of libraries in a
> single build? I ran into a similar problem when moving from VS2008 to
> VS2010. I'd been mixing debug & release all along but didn't know it (and
> it didn't matter, apparently) until I moved to VS2010.
>
I'm not sure how to tell.
|
|
0
|
|
|
|
Reply
|
woodbrian77 (236)
|
6/21/2012 5:42:05 PM
|
|
|
4 Replies
237 Views
(page loaded in 0.127 seconds)
Similiar Articles: May be slightly OT: Apache on Solaris Segmentation Fault - comp ...... child pid XXXX exit signal Segmentation Fault (11 ... Dave wrote: > We just had this problem caused by an ... Slightly OT Java vs. C# crosspost from Perl - comp.soft-sys ... Calling MATLAB from Visual Studio in a C program - comp.soft-sys ...MATLAB R2010b, Visual Studio 2008 Pro, 64-bit Windows ... I do know you could set it up to build from within Visual Studio, but I ... On 19/11/10 11:03 AM, sk366 wrote: > Will ... A problem with the deployment tool - comp.soft-sys.matlab ...Hello, I have a problem when i try to build a project with the deployment tool. ... 11/18/2006 9:44:46 PM Use default latex font in Plots (not OT but almost) - comp.soft ...I do simply something like: plot(x,y) title('u_{11 ... Use default latex font in Plots (not OT but almost) - comp.soft ... LaTeX to XeLaTeX Problem with Math Fonts ... OT -- Windows 7 & 16-bit apps - comp.lang.xharbourDear Mel Smith: On Feb 23, 11:08=A0am, "Mel Smith ... I just installed Win 7 after fixing the 56k modem problem ... and leave the expensive stuff for a machine I build ... [OT] OpenGL games? - comp.graphics.api.opengl... it's designed > for after all). > I know it's off-topic ... Reply: Lawrence: 5/25/2005 9:45:11 AM ... embarrassed by SGI, who went to the trouble to build ... Database Service Manager encountered a problem and needed to close ...... 200i sql, serivce pack 4 , version 7.9.0.0 build 230 ... but you can at least change the app to avoid the problem. ... 7/20/2012 11:54:33 AM Help needed: read 3-dimensional array from a MAT-file in Fortran ...... mex -setup % set Intel Fortran 11 + Visual Studio 2005 as ... as an engine application as far as the build ... take some time to try to ferret out the problem of 10.0 vs 11.0. Compiling MCR C++ dll with VS2010 - comp.soft-sys.matlab ...I am using MCR 7.11 > > > > > > Thank you. ... here is my solution which works with the Visual Studio 10 ... method in matrix.h, but I still got the same problem when I build ... emacs vs. xemacs under Windows - comp.emacsXemacs: syntax highlighting problem for large ... Use default latex font in Plots (not OT but almost) - comp.soft ... emacs vs ... 7/11/2012 12:41:55 AM OT: VS 11 build problemOn Monday, June 11, 2012 6:55:01 PM UTC-4, Geoff wrote: > > You have built the library as statically linked (/MT switch) and you > built the application as ... [C++] Build problem with VS 11 - General Programming - GameDev.netBuild problem with VS 11 - posted in General Programming: I'm in the process of updating this performance comparison page using the latest version of Boost and newer ... 7/23/2012 5:55:03 AM
|
|
|
|
|
|
|
|
|