[odb-users] field 'extra_' has incomplete type 'odb::section'

不明真相 icewill9999 at vip.qq.com
Wed Jul 7 01:49:54 EDT 2021


thx Boris, the inclusion fix the problem.
The migration to odb 2.5.0 makes a bunch of problems that i have to fix, right now  the problem that i am trying to solve is below:


link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /DLL /SUBSYSTEM:WINDOWS /MANIFEST:embed /OUT:..\..\..\newsdbdev\bin\news_ndbbase_vc2015d_64.dll @E:\newsdbdev\bin\news_ndbbase_vc2015d_64.dll.3304.70969.jom
  正在创建库 ..\..\..\newsdbdev\bin\news_ndbbase_vc2015d_64.lib 和对象 ..\..\..\newsdbdev\bin\news_ndbbase_vc2015d_64.exp
odb.lib(statement-processing.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb.lib(connection.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb.lib(prepared-query.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb-mysql.lib(exceptions.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb-mysql.lib(options.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb-mysql.lib(error.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb-boost.lib(exceptions.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb-mysql.lib(statement.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb-mysql.lib(transaction-impl.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb-mysql.lib(connection.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb-mysql.lib(connection-factory.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb.lib(base.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb.lib(result.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb-mysql.lib(query.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb-mysql.lib(database.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb.lib(transaction.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb.lib(exceptions.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb.lib(database.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb.lib(tracer.lib.obj) : error LNK2001: 无法解析的外部符号 __CxxFrameHandler4
odb.lib(connection.lib.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
odb-mysql.lib(connection-factory.lib.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
odb-mysql.lib(exceptions.lib.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
odb-mysql.lib(options.lib.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
odb-mysql.lib(error.lib.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
odb.lib(exceptions.lib.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
odb-mysql.lib(query.lib.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
odb-mysql.lib(database.lib.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
odb-mysql.lib(connection.lib.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
odb-mysql.lib(connection-factory.lib.obj) : error LNK2019: 无法解析的外部符号 __dyn_tls_on_demand_init,该符号在函数 "public: virtual class odb::details::shared_ptr<class odb::mysql::connection&gt; __cdecl odb::mysql::new_connection_factory::connect(void)" (?connect at new_connection_factory@mysql at odb@@UEAA?AV?$shared_ptr at Vconnection@mysql at odb@@@details at 3@XZ) 中被引用
odb-mysql.lib(connection-factory.lib.obj) : error LNK2001: 无法解析的外部符号 __tls_guard
..\..\..\newsdbdev\bin\news_ndbbase_vc2015d_64.dll : fatal error LNK1120: 4 个无法解析的外部命令



I searched google, basically it's a compiler problem that I currently have no idea on how to fix it, do you have any suggestion?
My working environment is QT 5.8, use qmake and msvc 2015 to compile my project. Sorry for the chinese characters, I assume that would not disturb you since these chinese info are not vital and you are expert.


Regards,
Wang


------------------&nbsp;Original&nbsp;------------------
From:                                                                                                                        "odb-users"                                                                                    <boris at codesynthesis.com&gt;;
Date:&nbsp;Tue, Jul 6, 2021 08:36 PM
To:&nbsp;"不明真相"<icewill9999 at vip.qq.com&gt;;
Cc:&nbsp;"odb-users"<odb-users at codesynthesis.com&gt;;
Subject:&nbsp;Re: [odb-users] field 'extra_' has incomplete type 'odb::section'



<icewill9999 at vip.qq.com&gt; writes:

&gt; baseinfo.hxx:564:18: error: field 'extras_' has incomplete type
&gt; 'odb::section'

Does baseinfo.hxx #include <odb/section.hxx&gt;?


More information about the odb-users mailing list