Re: Re: [odb-users] Compiling ODB with /MTd

Erez GB erezgb at walla.com
Thu Mar 20 09:51:42 EDT 2014


<div dir='rtl'><p dir="ltr"><br><br>
	
	
		Hi Boris,</p><p dir="ltr"><br></p><p dir="ltr">Indeed you were right, we needed this define in all modules using the ODB and the application itself :-)</p><p dir="ltr"><br></p><p dir="ltr">Do we need to use these 3 defines or just the first 2 ?</p><p dir="ltr"><br></p><p dir="ltr">LIBODB_SQLITE_STATIC_LIB</p><p dir="ltr">LIBODB_STATIC_LIB</p><p dir="ltr">LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY</p><p dir="ltr"><br></p><p dir="ltr">Thank you very much,</p><p dir="ltr">Erez.</p><p dir="ltr"><br></p>
	

	
		
	

	


	 
		
		
		<hr>
		<div class="walSignature"><font size="2">שולח: <b>Boris Kolpackov<boris at codesynthesis.com>, </boris at codesynthesis.com></b><br>נושא: <b>Re: [odb-users] Compiling ODB with /MTd</b></font></div><p>
		

	
	

	


	
		
		
			Hi Erez, <br>
 <br>
Please do not remove odb-users at codesynthesis.com from To/Cc. <br>
 <br>
Erez GB <erezgb at walla.com> writes: <br>
 <br>
&gt; Thank you for your reply, following your advice I changed all <br>
&gt; projects to /MTd, changed the output lib <br>
&gt;  <br>
&gt; and replaced the preprocessor declares to define static lib. <br>
&gt;  <br>
&gt;  <br>
&gt; However I get many unresolved externals errors and cannot link <br>
&gt; an use them, <br>
 <br>
My guess would be that you are not building your application <br>
with LIBODB_STATIC_LIB and LIBODB_SQLITE_STATIC_LIB defines.  <br>
 <br>
Boris <br>
 <br>
 <br>
[The rest of the email follows for context.] <br>
 <br>
&gt; here are the declares I use: <br>
&gt;  <br>
&gt;  <br>
&gt; project : libodb-vc11 <br>
&gt;  <br>
&gt;  <br>
&gt; WIN32 <br>
&gt;  <br>
&gt; _DEBUG <br>
&gt;  <br>
&gt; _WINDOWS <br>
&gt;  <br>
&gt; _USRDLL <br>
&gt;  <br>
&gt; LIBODB_STATIC_LIB <br>
&gt;  <br>
&gt;  <br>
&gt;  <br>
&gt; project : libodb-sqlite-vc11 <br>
&gt;  <br>
&gt;  <br>
&gt; WIN32 <br>
&gt;  <br>
&gt; _DEBUG <br>
&gt;  <br>
&gt; _WINDOWS <br>
&gt;  <br>
&gt; _USRDLL <br>
&gt;  <br>
&gt; LIBODB_SQLITE_STATIC_LIB <br>
&gt;  <br>
&gt; LIBODB_STATIC_LIB <br>
&gt;  <br>
&gt; LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY <br>
&gt;  <br>
&gt;  <br>
&gt; [I tries both with and without _USRDLL] <br>
&gt;  <br>
&gt;  <br>
&gt; (Also please note that  libodb-sqlite-vc11 project is using 2 defines, one in  <br>
&gt; odbdetailsexport.hxx and the other in odbsqlitedetailsexport.hxx) <br>
&gt;  <br>
&gt;  <br>
&gt;  <br>
&gt; Can you please see if I am missing something ? <br>
&gt;  <br>
&gt;  <br>
&gt; Thank you, bellow I added a list of some of the errors I get. <br>
&gt;  <br>
&gt;  <br>
&gt; Erez. <br>
&gt;  <br>
&gt; ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ <br>
&gt; 1&gt;Framework-static-d.lib(IndividualMainData-odb.obj) : warning LNK4217: locally <br>
&gt; defined symbol ??1delete_statement at sqlite@odb@@UAE at XZ (public: virtual <br>
&gt; __thiscall odb::sqlite::delete_statement::~delete_statement(void)) imported in <br>
&gt; function "public: virtual void * __thiscall odb::sqlite::delete_statement:: <br>
&gt; `scalar deleting destructor'(unsigned int)" (?? <br>
&gt; _Gdelete_statement at sqlite@odb@@UAEPAXI at Z) <br>
&gt; 1&gt;Framework-static-d.lib(PlaceMainData-odb.obj) : warning LNK4049: locally <br>
&gt; defined symbol ??1delete_statement at sqlite@odb@@UAE at XZ (public: virtual <br>
&gt; __thiscall odb::sqlite::delete_statement::~delete_statement(void)) imported <br>
&gt; 1&gt;Framework-static-d.lib(FactMainData-odb.obj) : warning LNK4049: locally <br>
&gt; defined symbol ??1delete_statement at sqlite@odb@@UAE at XZ (public: virtual <br>
&gt; __thiscall odb::sqlite::delete_statement::~delete_statement(void)) imported <br>
&gt; 1&gt;Framework-static-d.lib(NoteMainData-odb.obj) : warning LNK4049: locally <br>
&gt; defined symbol ??1delete_statement at sqlite@odb@@UAE at XZ (public: virtual <br>
&gt; __thiscall odb::sqlite::delete_statement::~delete_statement(void)) imported <br>
&gt; 1&gt;Framework-static-d.lib(IndividualFactsMgr.obj) : error LNK2001: unresolved <br>
&gt; external symbol "__declspec(dllimport) public: __thiscall <br>
&gt; odb::object_not_persistent::object_not_persistent(void)" (__imp_?? <br>
&gt; 0object_not_persistent at odb@@QAE at XZ) <br>
&gt; 1&gt;Framework-static-d.lib(NoteMainData-odb.obj) : error LNK2019: unresolved <br>
&gt; external symbol "__declspec(dllimport) public: __thiscall <br>
&gt; odb::object_not_persistent::object_not_persistent(void)" (__imp_?? <br>
&gt; 0object_not_persistent at odb@@QAE at XZ) referenced in function "public: __thiscall <br>
&gt; std::_Iostream_error_category::_Iostream_error_category(void)" (?? <br>
&gt; 0_Iostream_error_category at std@@QAE at XZ) <br>
 <br></erezgb at walla.com></p></div><hr><div style="background-color:white;color:black;">Walla! Mail - <a href="http://www.walla.com" style="color:blue">Get your free unlimited mail today</a></div> 


More information about the odb-users mailing list