Bonjour,

J essaie d utiliser la lib soci 3.0 mais je n arrive pas a la compiler.
J ouvre la solution : soci_dll.sln
Je tente un compile du projet odbc et j ai les erreurs suivante:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1>Linking...
1>   Creating library d:\Util\soci-3.0.0\soci-3.0.0\build\msvc80\dll\debug\soci_core-vc80-d-2_2.lib and object d:\Util\soci-3.0.0\soci-3.0.0\build\msvc80\dll\debug\soci_core-vc80-d-2_2.exp
1>session.obj : error LNK2019: unresolved external symbol "struct soci::backend_factory const & __cdecl soci::dynamic_backends::get(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?get@dynamic_backends@soci@@YAABUbackend_factory@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall soci::session::session(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 &)" (??0session@soci@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z)
1>session.obj : error LNK2019: unresolved external symbol "public: class soci::session & __thiscall soci::connection_pool::at(unsigned int)" (?at@connection_pool@soci@@QAEAAVsession@2@I@Z) referenced in function "public: __thiscall soci::session::session(class soci::connection_pool &)" (??0session@soci@@QAE@AAVconnection_pool@1@@Z)
1>session.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall soci::connection_pool::lease(void)" (?lease@connection_pool@soci@@QAEIXZ) referenced in function "public: __thiscall soci::session::session(class soci::connection_pool &)" (??0session@soci@@QAE@AAVconnection_pool@1@@Z)
1>session.obj : error LNK2019: unresolved external symbol "public: void __thiscall soci::connection_pool::give_back(unsigned int)" (?give_back@connection_pool@soci@@QAEXI@Z) referenced in function "public: __thiscall soci::session::~session(void)" (??1session@soci@@QAE@XZ)
1>D:\Util\soci-3.0.0\soci-3.0.0\build\msvc80\dll\Debug\soci_core-vc80-d-2_2.dll : fatal error LNK1120: 4 unresolved externals
1>Build log was saved at "file://d:\Util\soci-3.0.0\soci-3.0.0\build\msvc80\dll\core\Debug\BuildLog.htm"
1>core - 5 error(s), 0 warning(s)
2>------ Build started: Project: odbc, Configuration: Debug Win32 ------
2>Compiling...
2>blob.cpp
2>c1xx : fatal error C1083: Cannot open source file: '..\..\..\src\backends\odbc\blob.cpp': No such file or directory
2>factory.cpp
2>c1xx : fatal error C1083: Cannot open source file: '..\..\..\src\backends\odbc\factory.cpp': No such file or directory
2>row-id.cpp
2>c1xx : fatal error C1083: Cannot open source file: '..\..\..\src\backends\odbc\row-id.cpp': No such file or directory
2>session.cpp
2>c1xx : fatal error C1083: Cannot open source file: '..\..\..\src\backends\odbc\session.cpp': No such file or directory
2>standard-into-type.cpp
2>c1xx : fatal error C1083: Cannot open source file: '..\..\..\src\backends\odbc\standard-into-type.cpp': No such file or directory
2>standard-use-type.cpp
2>c1xx : fatal error C1083: Cannot open source file: '..\..\..\src\backends\odbc\standard-use-type.cpp': No such file or directory
2>statement.cpp
2>c1xx : fatal error C1083: Cannot open source file: '..\..\..\src\backends\odbc\statement.cpp': No such file or directory
2>vector-into-type.cpp
2>c1xx : fatal error C1083: Cannot open source file: '..\..\..\src\backends\odbc\vector-into-type.cpp': No such file or directory
2>vector-use-type.cpp
2>c1xx : fatal error C1083: Cannot open source file: '..\..\..\src\backends\odbc\vector-use-type.cpp': No such file or directory
2>Generating Code...
Quelqu un peu m aider