--- 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
[1;4;34mConfiguring SOCI:[0m
SOCI_VERSION = 3.1.0
SOCI_ABI_VERSION = 3_1
SOCI_PLATFORM_NAME = win32
SOCI_COMPILER_NAME = mingw-4.5.0
SOCI_TESTS = ON
[1;4;34mLooking for SOCI dependencies:[0m
[1;36mBoost:[0m
Boost_RELEASE_VERSION = 1.42.0
Boost_INCLUDE_DIR = C:/Program Files/boost/boost_1_42
Boost_LIBRARIES =
[1;36mMySQL:[0m
MYSQL_INCLUDE_DIR = C:/Program Files/MySQL/MySQL Server
5.1/include
MYSQL_LIBRARIES = C:/MinGW/bin/libmysql.lib
[1;36mODBC:[0m
[4;31mWARNING:[0m
[31mODBC not found, some libraries or features will be disabled.[0m
[31mSee the documentation for ODBC or manually set these variables:[0m
ODBC_INCLUDE_DIRECTORIES = ODBC_INCLUDE_DIRECTORIES-NOTFOUND
ODBC_LIBRARIES = C:/Windows/System32/odbc32.dll
[1;36mOracle:[0m
[4;31mWARNING:[0m
[31mOracle not found, some libraries or features will be disabled.[0m
[31mSee the documentation for Oracle or manually set these variables:[0m
ORACLE_INCLUDE_DIR =
ORACLE_LIBRARIES =
[1;36mPostgreSQL:[0m
[4;31mWARNING:[0m
[31mPostgreSQL not found, some libraries or features will be disabled.[0m
[31mSee the documentation for PostgreSQL or manually set these variables:[0m
POSTGRESQL_INCLUDE_DIR = POSTGRESQL_INCLUDE_DIR-NOTFOUND
POSTGRESQL_LIBRARIES = POSTGRESQL_LIBRARIES-NOTFOUND
POSTGRESQL_VERSION = unknown
[1;36mSQLite3:[0m
Trying OSGeo4W using default location OSGEO4W_ROOT=c:/OSGeo4W
[4;31mWARNING:[0m
[31mSQLite3 not found, some libraries or features will be disabled.[0m
[31mSee the documentation for SQLite3 or manually set these variables:[0m
SQLITE3_INCLUDE_DIR = SQLITE3_INCLUDE_DIR-NOTFOUND
SQLITE3_LIBRARIES = SQLITE3_LIBRARY-NOTFOUND
[1;4;34mConfiguring SOCI core library:[0m
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
[1;4;34mConfiguring SOCI database backends:[0m
[1;32mEmpty - SOCI backend skeleton for development of new backends[0m
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
[1;32mMySQL - SOCI backend for MySQL database engine[0m
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
[1;32mODBC - SOCI backend for ODBC[0m
[4;31mWARNING:[0m
[31mSome required dependencies of ODBC backend not found:[0m
[31m ODBC[0m
[31mSkipping[0m
SOCI_ODBC = OFF
[1;32mOracle - SOCI backend for Oracle 10+[0m
[4;31mWARNING:[0m
[31mSome required dependencies of Oracle backend not found:[0m
[31m Oracle[0m
[31mSkipping[0m
SOCI_ORACLE = OFF
[1;32mPostgreSQL - SOCI backend for PostgreSQL database engine[0m
[4;31mWARNING:[0m
[31mSome required dependencies of PostgreSQL backend not found:[0m
[31m PostgreSQL[0m
[31mSkipping[0m
SOCI_POSTGRESQL = OFF
[1;32mSQLite3 - SOCI backend for SQLite 3 database engine[0m
[4;31mWARNING:[0m
[31mSome required dependencies of SQLite3 backend not found:[0m
[31m SQLite3[0m
[31mSkipping[0m
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