Thanks,

now the projects for oracle are there. But I get some compiler error when 
building soct_oracle with Visual Studio 2008:

3>vector-into-type.cpp
3>..\..\..\backends\oracle\vector-into-type.cpp(245) : error C3861: 'strtoull': 
identifier not found
3>standard-use-type.cpp
3>..\..\..\backends\oracle\standard-use-type.cpp(387) : error C3861: 
'strtoull': identifier not found
3>standard-into-type.cpp
3>..\..\..\backends\oracle\standard-into-type.cpp(200) : error C3861: 
'strtoull': identifier not found

Then I try the version 3.2.0, but there I get the following linker errors:

3>   Creating library 
C:\Projekte\soci-3.2.0\src\build\lib\Release\soci_oracle_3_2.lib and object 
C:\Projekte\soci-3.2.0\src\build\lib\Release\soci_oracle_3_2.exp
3>blob.obj : error LNK2019: unresolved external symbol _OCIDescriptorAlloc 
referenced in function "public: __thiscall 
soci::oracle_blob_backend::oracle_blob_backend(struct 
soci::oracle_session_backend &)" 
(??0oracle_blob_backend@soci@@QAE@AAUoracle_session_backend@1@@Z)
3>row-id.obj : error LNK2001: unresolved external symbol _OCIDescriptorAlloc
3>blob.obj : error LNK2019: unresolved external symbol _OCIDescriptorFree 
referenced in function "public: virtual __thiscall 
soci::oracle_blob_backend::~oracle_blob_backend(void)" 
(??1oracle_blob_backend@soci@@UAE@XZ)
3>row-id.obj : error LNK2001: unresolved external symbol _OCIDescriptorFree
3>blob.obj : error LNK2019: unresolved external symbol _OCILobGetLength 
referenced in function "public: virtual unsigned int __thiscall 
soci::oracle_blob_backend::get_len(void)" 
(?get_len@oracle_blob_backend@soci@@UAEIXZ)
3>blob.obj : error LNK2019: unresolved external symbol _OCILobRead referenced 
in function "public: virtual unsigned int __thiscall 
soci::oracle_blob_backend::read(unsigned int,char *,unsigned int)" 
(?read@oracle_blob_backend@soci@@UAEIIPADI@Z)
3>blob.obj : error LNK2019: unresolved external symbol _OCILobWrite referenced 
in function "public: virtual unsigned int __thiscall 
soci::oracle_blob_backend::write(unsigned int,char const *,unsigned int)" 
(?write@oracle_blob_backend@soci@@UAEIIPBDI@Z)
3>blob.obj : error LNK2019: unresolved external symbol _OCILobWriteAppend 
referenced in function "public: virtual unsigned int __thiscall 
soci::oracle_blob_backend::append(char const *,unsigned int)" 
(?append@oracle_blob_backend@soci@@UAEIPBDI@Z)
3>blob.obj : error LNK2019: unresolved external symbol _OCILobTrim referenced 
in function "public: virtual void __thiscall 
soci::oracle_blob_backend::trim(unsigned int)" 
(?trim@oracle_blob_backend@soci@@UAEXI@Z)
3>error.obj : error LNK2019: unresolved external symbol _OCIErrorGet referenced 
in function "void __cdecl soci::details::oracle::get_error_details(int,struct 
OCIError *,class std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > &,int &)" 
(?get_error_details@oracle@details@soci@@YAXHPAUOCIError@@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAH@Z)
3>session.obj : error LNK2019: unresolved external symbol _OCITransCommit 
referenced in function "public: virtual void __thiscall 
soci::oracle_session_backend::commit(void)" 
(?commit@oracle_session_backend@soci@@UAEXXZ)
3>session.obj : error LNK2019: unresolved external symbol _OCITransRollback 
referenced in function "public: virtual void __thiscall 
soci::oracle_session_backend::rollback(void)" 
(?rollback@oracle_session_backend@soci@@UAEXXZ)
3>session.obj : error LNK2019: unresolved external symbol _OCIServerDetach 
referenced in function "public: void __thiscall 
soci::oracle_session_backend::clean_up(void)" 
(?clean_up@oracle_session_backend@soci@@QAEXXZ)
3>vector-into-type.obj : error LNK2001: unresolved external symbol 
_OCIHandleFree
3>vector-use-type.obj : error LNK2001: unresolved external symbol _OCIHandleFree
3>session.obj : error LNK2019: unresolved external symbol _OCIHandleFree 
referenced in function "public: void __thiscall 
soci::oracle_session_backend::clean_up(void)" 
(?clean_up@oracle_session_backend@soci@@QAEXXZ)
3>standard-into-type.obj : error LNK2001: unresolved external symbol 
_OCIHandleFree
3>standard-use-type.obj : error LNK2001: unresolved external symbol 
_OCIHandleFree
3>statement.obj : error LNK2001: unresolved external symbol _OCIHandleFree
3>session.obj : error LNK2019: unresolved external symbol _OCISessionEnd 
referenced in function "public: void __thiscall 
soci::oracle_session_backend::clean_up(void)" 
(?clean_up@oracle_session_backend@soci@@QAEXXZ)
3>session.obj : error LNK2019: unresolved external symbol _OCISessionBegin 
referenced in function "public: __thiscall 
soci::oracle_session_backend::oracle_session_backend(class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> const &,class std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > const &,class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &,int,bool)" 
(??0oracle_session_backend@soci@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00H_N@Z)
3>session.obj : error LNK2019: unresolved external symbol _OCIAttrSet 
referenced in function "public: __thiscall 
soci::oracle_session_backend::oracle_session_backend(class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> const &,class std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > const &,class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &,int,bool)" 
(??0oracle_session_backend@soci@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00H_N@Z)
3>session.obj : error LNK2019: unresolved external symbol _OCIServerAttach 
referenced in function "public: __thiscall 
soci::oracle_session_backend::oracle_session_backend(class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> const &,class std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > const &,class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &,int,bool)" 
(??0oracle_session_backend@soci@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00H_N@Z)
3>session.obj : error LNK2019: unresolved external symbol _OCIHandleAlloc 
referenced in function "public: __thiscall 
soci::oracle_session_backend::oracle_session_backend(class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> const &,class std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > const &,class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &,int,bool)" 
(??0oracle_session_backend@soci@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00H_N@Z)
3>statement.obj : error LNK2001: unresolved external symbol _OCIHandleAlloc
3>session.obj : error LNK2019: unresolved external symbol _OCIEnvCreate 
referenced in function "public: __thiscall 
soci::oracle_session_backend::oracle_session_backend(class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> const &,class std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > const &,class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &,int,bool)" 
(??0oracle_session_backend@soci@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00H_N@Z)
3>standard-into-type.obj : error LNK2019: unresolved external symbol 
_OCIDefineByPos referenced in function "public: virtual void __thiscall 
soci::oracle_standard_into_type_backend::define_by_pos(int &,void *,enum 
soci::details::exchange_type)" 
(?define_by_pos@oracle_standard_into_type_backend@soci@@UAEXAAHPAXW4exchange_type@details@2@@Z)
3>vector-into-type.obj : error LNK2001: unresolved external symbol 
_OCIDefineByPos
3>standard-use-type.obj : error LNK2019: unresolved external symbol 
_OCIBindByPos referenced in function "public: virtual void __thiscall 
soci::oracle_standard_use_type_backend::bind_by_pos(int &,void *,enum 
soci::details::exchange_type,bool)" 
(?bind_by_pos@oracle_standard_use_type_backend@soci@@UAEXAAHPAXW4exchange_type@details@2@_N@Z)
3>vector-use-type.obj : error LNK2001: unresolved external symbol _OCIBindByPos
3>standard-use-type.obj : error LNK2019: unresolved external symbol 
_OCIBindByName referenced in function "public: virtual void __thiscall 
soci::oracle_standard_use_type_backend::bind_by_name(class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> const &,void *,enum soci::details::exchange_type,bool)" 
(?bind_by_name@oracle_standard_use_type_backend@soci@@UAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAXW4exchange_type@details@2@_N@Z)
3>vector-use-type.obj : error LNK2001: unresolved external symbol _OCIBindByName
3>statement.obj : error LNK2019: unresolved external symbol _OCIStmtPrepare 
referenced in function "public: virtual void __thiscall 
soci::oracle_statement_backend::prepare(class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &,enum 
soci::details::statement_type)" 
(?prepare@oracle_statement_backend@soci@@UAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4statement_type@details@2@@Z)
3>statement.obj : error LNK2019: unresolved external symbol _OCIStmtExecute 
referenced in function "public: virtual enum 
soci::details::statement_backend::exec_fetch_result __thiscall 
soci::oracle_statement_backend::execute(int)" 
(?execute@oracle_statement_backend@soci@@UAE?AW4exec_fetch_result@statement_backend@details@2@H@Z)
3>statement.obj : error LNK2019: unresolved external symbol _OCIStmtFetch 
referenced in function "public: virtual enum 
soci::details::statement_backend::exec_fetch_result __thiscall 
soci::oracle_statement_backend::fetch(int)" 
(?fetch@oracle_statement_backend@soci@@UAE?AW4exec_fetch_result@statement_backend@details@2@H@Z)
3>statement.obj : error LNK2019: unresolved external symbol _OCIAttrGet 
referenced in function "public: virtual __int64 __thiscall 
soci::oracle_statement_backend::get_affected_rows(void)" 
(?get_affected_rows@oracle_statement_backend@soci@@UAE_JXZ)
3>statement.obj : error LNK2019: unresolved external symbol _OCIParamGet 
referenced in function "public: unsigned int __thiscall 
soci::oracle_statement_backend::column_size(int)" 
(?column_size@oracle_statement_backend@soci@@QAEIH@Z)
3>C:\Projekte\soci-3.2.0\src\build\bin\Release\soci_oracle_3_2.dll : fatal 
error LNK1120: 26 unresolved externals

The additional dependencies for the linker are:

..\..\lib\Release\soci_core_3_2.lib
C:\oracle\product\11.2.0\client_2\oci\lib\msvc\oci.lib
C:\oracle\product\11.2.0\client_2\oci\lib\msvc\oraocci11.lib
C:\oracle\product\11.2.0\client_2\oci\lib\msvc\ociw32.lib

So i have no libraries for oracle.

Mit freundlichem Gruß
Ulrich Heinicke
--
______________________________________________

DAVID Software GmbH - Wendenring 1 - 38114 Braunschweig

Tel.: +49 531 24379-73
Fax.: +49 531 24379-79

E-Mail: mailto:[email protected]
WWW:    http://www.david-software.de

Eintragung: Amtsgericht Braunschweig, HRB 3167
Geschäftsführer: Frank Ptok
______________________________________________

-----Ursprüngliche Nachricht-----
Von: Mateusz Loskot [mailto:[email protected]] 
Gesendet: Freitag, 8. März 2013 14:50
An: General-purpose list for SOCI users.
Betreff: Re: [soci-users] Installation of version 3.1.0

On 8 March 2013 13:23, Ulrich Heinicke
<[email protected]> wrote:
>
> i use the following parameter for building the solution to generate the
> libraries:
>
> -DWITH_ORACLE=ON -DSOCI_ORACLE=ON
> -DORACLE_INCLUDE_DIR=C:/oracle/product/11.2.0/client_2/oci/include
> -DORACLE_LIBRARIES=C:/oracle/product/11.2.0/client_2/oci/lib/msvc
>
> but there is no project generated for build the oracle backend, because the
> output from cmake gives the warning:
>
> Some required dependencies of Oracle backend not found:     Oracle

It means, Oracle files are not found.

Could you try this instead:

set ORACLE_HOME=C:\oracle\product\11.2.0\client_2
cmake -DWITH_ORACLE=ON /path/to/soci/src

Does it work?

By the way, I'd suggest to grab SOCI sources form current Git master.
This is the state that is coming out as SOCI 3.2.0 release
within next few days.
There have been improvements to Oracle setup, among lots of other things.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to