lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] a minor MSVC linking fix


From: Vadim Zeitlin
Subject: [lmi] a minor MSVC linking fix
Date: Sat, 12 Jul 2008 19:54:58 +0200

 Hello again,

 The following patch is needed to make the project link with MSVC:

--- tier_view.cpp       2008-02-17 15:17:16 +0000
+++ tier_view.cpp       2008-07-12 17:48:03 +0000
@@ -30,6 +30,7 @@

 #include "multidimgrid_any.hpp"
 #include "multidimgrid_tools.hpp"
+#include "multidimgrid_safe.tpp"
 #include "safely_dereference_as.hpp"
 #include "stratified_charges.hpp"
 #include "stratified_charges.xpp"

Without it, the linker complains about DoGetValueAny(), DoSetValueAny(),
StringToValue() and ValueToString() methods of the class
MultiDimTable<pair<double,double>,TierTableAdapter,FakeConversion> being
referenced in tier_view.obj but not defined.

 AFAICS this is because this object file uses TierTableAdapter which uses
MultiDimTable. In any case, the only other solution except for the above I
found was to define the above-mentioned methods in multidimgrid_safe.hpp
and not multidimgrid_safe.tpp, this would actually be preferable from my
point of view as I guess the same problem could occur in other files too
but I thought you'd prefer the least intrusive fix possible, i.e. the patch
above. Please let me know if I was wrong about it.

 Thanks,
VZ





reply via email to

[Prev in Thread] Current Thread [Next in Thread]