<div class="gmail_quote">On Mon, Jan 17, 2011 at 10:59 AM, Dean Inglis <span dir="ltr">&lt;<a href="mailto:dean.inglis@camris.ca">dean.inglis@camris.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Im trying to build vtk 5.7 and Qt 4.7.1 statically with VS2010 on Win 7, 32<br>
bit.<br>
Qt builds fine but I have run into the following link error:<br>
<br>
Linking CXX executable ..\..\..\..\bin\QVTKCxxTests.exe<br>
vtksqlite.lib(vtk_sqlite3.c.obj) : error LNK2005: _winCurrentTime already<br>
define<br>
d in QtSql.lib(sqlite3.obj)<br>
..\..\..\..\bin\QVTKCxxTests.exe : fatal error LNK1169: one or more multiply<br>
def<br>
ined symbols found<br>
LINK failed. with 2<br>
<br>
Here are the two locations where this method is defined:<br>
<br>
VTK\Utilities\vtksqlite\vtk_sqlite3.c(28935):int<br>
winCurrentTime(vtk_sqlite3_vfs *pVfs, double *prNow){<br>
<br>
qt-4.7.1\src\3rdparty\sqlite\sqlite3.c(28987):int winCurrentTime(sqlite3_vfs<br>
*pVfs, double *prNow){<br>
<br>
there is an option for configuring the build of Qt to use sqlite from the<br>
operating system.  Is this what I should do?<br><br></blockquote><div> </div></div>The VTK version of sqlite is supposed to have mangled symbols with the prefix &quot;vtk_&quot; so that this doesn&#39;t happen. Could you try replacing all occurances of winCurrentTime with vtk_winCurrentTime in the VTK version and see if it compiles correctly?<div>

<div><br></div><div>Jeff</div></div>