--- On Tue, 1/18/11, Julian Taylor <[email protected]> wrote:

From: Julian Taylor <[email protected]>
Subject: Re: [SOCI-users] strange errors from libsoci_core.a
To: "General-purpose list for SOCI users." <[email protected]>
Date: Tuesday, January 18, 2011, 11:15 PM


On Tue, Jan 18, 2011 at 4:49 PM, Doan Viet Dung <[email protected]> wrote:

Hi all,

I've used Soci a few weeks ago for my private project with mysql in Windows 7. 
I've tried to compile soci with CMake but without success. But by using the 
classic Makefiles, I did it (got two libs : libsoci_core.a and libsoci_mysql.a).


Then I started my test project (with Mingw) with the very first example from 
website and I got some thing unexplainable (see below)

I would appreciate very much for any suggestion


_Unwind_Resume is defined in libgcc_s. Are you maybe using an old version of 
mingw?
Try explicitly linking with it in your application
Many thanks for your reply. It's my bad. I used two different versions of mingw 
for compiling soci and running my app. Now it worked


Can you give details why the cmake build did not work (used soci version, build 
log, architecture, compiler version etc)?

I got soci from git. The problem is I am using the CMake GUI version for 
windows (v 2.3.8). After choosing the directory for source code and output 
binaries, configuring then I got the following log:

The CXX compiler identification is GNU
Check for working CXX compiler: C:/MinGW/bin/g++.exe
Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done

Configuring SOCI: 

SOCI_VERSION                             = 3.1.0 
SOCI_ABI_VERSION                         = 3_1 
SOCI_PLATFORM_NAME                       = win32 
SOCI_COMPILER_NAME                       = mingw-4.5.0 
SOCI_TESTS                               = ON 

Looking for SOCI dependencies: 

Boost: 
Boost_RELEASE_VERSION                    = 1.42.0 
Boost_INCLUDE_DIR                        = C:/Program Files/boost/boost_1_42 
Boost_LIBRARIES                          =  

MySQL: 
MYSQL_INCLUDE_DIR                        = C:/Program Files/MySQL/MySQL Server 
5.1/include 
MYSQL_LIBRARIES                          = C:/MinGW/bin/libmysql.lib 

ODBC: 
WARNING: 
ODBC not found, some libraries or features will be disabled. 
See the documentation for ODBC or manually set these variables: 
ODBC_INCLUDE_DIRECTORIES                 = ODBC_INCLUDE_DIRECTORIES-NOTFOUND 
ODBC_LIBRARIES                           = C:/Windows/System32/odbc32.dll 

Oracle: 
WARNING: 
Oracle not found, some libraries or features will be disabled. 
See the documentation for Oracle or manually set these variables: 
ORACLE_INCLUDE_DIR                       =  
ORACLE_LIBRARIES                         =  

PostgreSQL: 
WARNING: 
PostgreSQL not found, some libraries or features will be disabled. 
See the documentation for PostgreSQL or manually set these variables: 
POSTGRESQL_INCLUDE_DIR                   = POSTGRESQL_INCLUDE_DIR-NOTFOUND 
POSTGRESQL_LIBRARIES                     = POSTGRESQL_LIBRARIES-NOTFOUND 
POSTGRESQL_VERSION                       = unknown 

SQLite3: 
Trying OSGeo4W using default location OSGEO4W_ROOT=c:/OSGeo4W
WARNING: 
SQLite3 not found, some libraries or features will be disabled. 
See the documentation for SQLite3 or manually set these variables: 
SQLITE3_INCLUDE_DIR                      = SQLITE3_INCLUDE_DIR-NOTFOUND 
SQLITE3_LIBRARIES                        = SQLITE3_LIBRARY-NOTFOUND 

Configuring SOCI core library: 

SOCI_CORE_TARGET                         = soci_core 
SOCI_CORE_TARGET_OUTPUT_NAME             = soci_core_3_1 
SOCI_CORE_DEPENDENCIES                   =  
WITH_BOOST                               = ON 
COMPILE_DEFINITIONS                      = SOCI_ABI_VERSION=3_1 DBUG_OFF 

Configuring SOCI database backends: 

Empty - SOCI backend skeleton for development of new backends 
SOCI_EMPTY                               = ON 
SOCI_EMPTY_TARGET                        = soci_empty 
SOCI_EMPTY_TARGET_OUTPUT_NAME            = soci_empty_3_1 
SOCI_EMPTY_HEADERS                       = soci-empty.h 
COMPILE_DEFINITIONS                      = SOCI_ABI_VERSION=3_1 DBUG_OFF 
HAVE_BOOST=1 
SOCI_EMPTY_TEST_CONNSTR                  = dummy 

MySQL - SOCI backend for MySQL database engine 
SOCI_MYSQL                               = ON 
SOCI_MYSQL_TARGET                        = soci_mysql 
SOCI_MYSQL_TARGET_OUTPUT_NAME            = soci_mysql_3_1 
SOCI_MYSQL_HEADERS                       = soci-mysql.h common.h 
COMPILE_DEFINITIONS                      = SOCI_ABI_VERSION=3_1 DBUG_OFF 
HAVE_BOOST=1 HAVE_MYSQL=1 
SOCI_MYSQL_TEST_CONNSTR                  = dummy 

ODBC - SOCI backend for ODBC 
WARNING: 
Some required dependencies of ODBC backend not found: 
   ODBC 
Skipping 
SOCI_ODBC                                = OFF 

Oracle - SOCI backend for Oracle 10+ 
WARNING: 
Some required dependencies of Oracle backend not found: 
   Oracle 
Skipping 
SOCI_ORACLE                              = OFF 

PostgreSQL - SOCI backend for PostgreSQL database engine 
WARNING: 
Some required dependencies of PostgreSQL backend not found: 
   PostgreSQL 
Skipping 
SOCI_POSTGRESQL                          = OFF 

SQLite3 - SOCI backend for SQLite 3 database engine 
WARNING: 
Some required dependencies of SQLite3 backend not found: 
   SQLite3 
Skipping 
SOCI_SQLITE3                             = OFF 

Configuring done


However, when I generate the binaries, I got nothing except the cmake file 
(*.cmake).

VDung





      
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to