From boris at codesynthesis.com Mon Apr 1 07:30:55 2013 From: boris at codesynthesis.com (Boris Kolpackov) Date: Mon Apr 1 07:31:03 2013 Subject: [odb-users] MS SQL Foreign Key Error In-Reply-To: <249906D2DF7F3449BA7E2F4F6AA0046F01913D31AEF6@BURI.PacificCabinets.com> References: <249906D2DF7F3449BA7E2F4F6AA0046F01913D31AEF6@BURI.PacificCabinets.com> Message-ID: Hi Dean, Dean Throop writes: > I have a Products table with a to-one relationship to an ItemTypes table. Can you show the definitions for these tables (i.e., the CREATE TABLE statements). > for(std::vector::const_iterator i(productTypes.begin ());i!=productTypes.end ();++i) > { > if(i->GetName()==currentProductType) > { > ItemType theValue=*i; > productType=&theValue; > break; > } > } This code is not going to work. You are creating a local copy (on the stack) of the ItemType object (theValue) and then assign a pointer to it to the data member (productType). You are lucky you are getting an exception. Normally you would end up with access violation. A quick and dirty fix would be to instead assign a pointer to the object that is in the vector (you will either need to pass non-const reference to the vector of make productType const): productType=&*i; Better yet, use std::shared_ptr to manage your objects. Boris From DThroop at PacificCabinets.com Mon Apr 1 11:05:35 2013 From: DThroop at PacificCabinets.com (Dean Throop) Date: Mon Apr 1 11:05:48 2013 Subject: [odb-users] MS SQL Foreign Key Error In-Reply-To: References: <249906D2DF7F3449BA7E2F4F6AA0046F01913D31AEF6@BURI.PacificCabinets.com> Message-ID: <249906D2DF7F3449BA7E2F4F6AA0046F01913D2E7E53@BURI.PacificCabinets.com> Hi Boris, Thanks for the prompt reply. That piece of code was an act of desperation that I thought would not work as the object would go out of scope. My memory profiler though indicates that it was still in state and accessible in the main. (aProduct.productType address initialized at 0x13bf7f0, new object and at iesDB->update address was 0x7fff85672dd0) I will however make that change. I am avoiding "advanced" pointers though as my preference is for memory issues to crash my program vs. being obscured by the garbage collector at the expense of some extra work and diligence on my part. Below are my tables. USE [PCI_IES_DB] GO /****** Object: Table [dbo].[ItemTypes] Script Date: 04/01/2013 07:58:31 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[ItemTypes]( [ID] [int] IDENTITY(1,1) NOT NULL, [Name] [varchar](50) NOT NULL, [IsProduct] [bit] NOT NULL, CONSTRAINT [PK_ItemTypes] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO USE [PCI_IES_DB] GO /****** Object: Table [dbo].[Products] Script Date: 04/01/2013 07:58:03 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Products]( [ID] [int] IDENTITY(1,1) NOT NULL, [InstanceID] [uniqueidentifier] ROWGUIDCOL NOT NULL, [Name] [varchar](50) NOT NULL, [Description] [varchar](1000) NULL, [LogicalGroupID] [int] NOT NULL, [ItemTemplateID] [int] NOT NULL, [Width] [decimal](18, 2) NOT NULL, [Height] [decimal](18, 2) NOT NULL, [Depth] [decimal](18, 2) NOT NULL, [FinishedLeft] [bit] NULL, [FinishedRight] [bit] NULL, [NumberOfShelves] [int] NULL, [ProductStatusID] [int] NOT NULL, [ProjectColorSchemeID] [int] NOT NULL, [ProjectMaterialSchemeID] [int] NOT NULL, [ProjectHardwareSchemeID] [int] NOT NULL, [ProjectDesignSchemeID] [int] NOT NULL, [ProductContourID] [uniqueidentifier] NULL, [ItemTypeID] [int] NULL, [IsCustom] [bit] NOT NULL, CONSTRAINT [PK_Products] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO ALTER TABLE [dbo].[Products] WITH CHECK ADD CONSTRAINT [FK_Products_ItemTemplates] FOREIGN KEY([ItemTemplateID]) REFERENCES [dbo].[ItemTemplates] ([ID]) GO ALTER TABLE [dbo].[Products] CHECK CONSTRAINT [FK_Products_ItemTemplates] GO ALTER TABLE [dbo].[Products] WITH CHECK ADD CONSTRAINT [FK_Products_ItemTypes] FOREIGN KEY([ItemTypeID]) REFERENCES [dbo].[ItemTypes] ([ID]) GO ALTER TABLE [dbo].[Products] CHECK CONSTRAINT [FK_Products_ItemTypes] GO ALTER TABLE [dbo].[Products] WITH CHECK ADD CONSTRAINT [FK_Products_LogicalGroups] FOREIGN KEY([LogicalGroupID]) REFERENCES [dbo].[LogicalGroups] ([ID]) GO ALTER TABLE [dbo].[Products] CHECK CONSTRAINT [FK_Products_LogicalGroups] GO ALTER TABLE [dbo].[Products] WITH CHECK ADD CONSTRAINT [FK_Products_ProductContours] FOREIGN KEY([ProductContourID]) REFERENCES [dbo].[ProductContours] ([ID]) GO ALTER TABLE [dbo].[Products] CHECK CONSTRAINT [FK_Products_ProductContours] GO ALTER TABLE [dbo].[Products] WITH CHECK ADD CONSTRAINT [FK_Products_ProductStatuses] FOREIGN KEY([ProductStatusID]) REFERENCES [dbo].[ProductStatuses] ([ID]) GO ALTER TABLE [dbo].[Products] CHECK CONSTRAINT [FK_Products_ProductStatuses] GO ALTER TABLE [dbo].[Products] WITH CHECK ADD CONSTRAINT [FK_Products_ProjectSchemes] FOREIGN KEY([ProjectColorSchemeID]) REFERENCES [dbo].[ProjectSchemes] ([ID]) GO ALTER TABLE [dbo].[Products] CHECK CONSTRAINT [FK_Products_ProjectSchemes] GO ALTER TABLE [dbo].[Products] WITH CHECK ADD CONSTRAINT [FK_Products_ProjectSchemes1] FOREIGN KEY([ProjectDesignSchemeID]) REFERENCES [dbo].[ProjectSchemes] ([ID]) GO ALTER TABLE [dbo].[Products] CHECK CONSTRAINT [FK_Products_ProjectSchemes1] GO ALTER TABLE [dbo].[Products] WITH CHECK ADD CONSTRAINT [FK_Products_ProjectSchemes2] FOREIGN KEY([ProjectHardwareSchemeID]) REFERENCES [dbo].[ProjectSchemes] ([ID]) GO ALTER TABLE [dbo].[Products] CHECK CONSTRAINT [FK_Products_ProjectSchemes2] GO ALTER TABLE [dbo].[Products] WITH CHECK ADD CONSTRAINT [FK_Products_ProjectSchemes3] FOREIGN KEY([ProjectMaterialSchemeID]) REFERENCES [dbo].[ProjectSchemes] ([ID]) GO ALTER TABLE [dbo].[Products] CHECK CONSTRAINT [FK_Products_ProjectSchemes3] GO ALTER TABLE [dbo].[Products] ADD CONSTRAINT [DF_Products_InstanceID] DEFAULT (newid()) FOR [InstanceID] GO ALTER TABLE [dbo].[Products] ADD CONSTRAINT [DF_Products_IsCustom] DEFAULT ((0)) FOR [IsCustom] GO -----Original Message----- From: Boris Kolpackov [mailto:boris@codesynthesis.com] Sent: Monday, April 01, 2013 4:31 AM To: Dean Throop Cc: odb-users@codesynthesis.com Subject: Re: [odb-users] MS SQL Foreign Key Error Hi Dean, Dean Throop writes: > I have a Products table with a to-one relationship to an ItemTypes table. Can you show the definitions for these tables (i.e., the CREATE TABLE statements). > for(std::vector::const_iterator i(productTypes.begin > ());i!=productTypes.end ();++i) { > if(i->GetName()==currentProductType) > { > ItemType theValue=*i; > productType=&theValue; > break; > } > } This code is not going to work. You are creating a local copy (on the stack) of the ItemType object (theValue) and then assign a pointer to it to the data member (productType). You are lucky you are getting an exception. Normally you would end up with access violation. A quick and dirty fix would be to instead assign a pointer to the object that is in the vector (you will either need to pass non-const reference to the vector of make productType const): productType=&*i; Better yet, use std::shared_ptr to manage your objects. Boris From boris at codesynthesis.com Mon Apr 1 11:32:08 2013 From: boris at codesynthesis.com (Boris Kolpackov) Date: Mon Apr 1 11:32:17 2013 Subject: [odb-users] MS SQL Foreign Key Error In-Reply-To: <249906D2DF7F3449BA7E2F4F6AA0046F01913D2E7E53@BURI.PacificCabinets.com> References: <249906D2DF7F3449BA7E2F4F6AA0046F01913D31AEF6@BURI.PacificCabinets.com> <249906D2DF7F3449BA7E2F4F6AA0046F01913D2E7E53@BURI.PacificCabinets.com> Message-ID: Hi Dean, Dean Throop writes: > My memory profiler though indicates that it was still in state and > accessible in the main. It may be accessible (it is part of the stack) but it will most likely contain garbage. > Below are my tables. I took a look and I don't see any problems. So it is most likely that the productType member points to an object (or, rather a piece of memory) that contains garbage instead of a valid ItemTypes object id. To verify, you can print it just before calling db->update(). On a side note, when working with an existing schema, it is a good idea to explicitly assign column name and type to every data member, to avoid any inconsistencies. For example: #pragma db id auto column("ID") type("int") int id; Boris From boris at codesynthesis.com Mon Apr 1 11:35:00 2013 From: boris at codesynthesis.com (Boris Kolpackov) Date: Mon Apr 1 11:35:08 2013 Subject: [odb-users] ODB polymorphic inheritence problem In-Reply-To: <1364672882.31976372@f343.mail.ru> References: <1364672882.31976372@f343.mail.ru> Message-ID: Hi Alexander, Alexander Konin writes: > The problem is that ODB generates incorrect SQL instructions for loading > Segment::segments_: > > [...] > > "parent" field is contained in "Items" table (we have Item::parent_), > not "Segments" table! Yes, that's a bug, thanks for reporting it! I've committed a fix and the patch is available here: http://scm.codesynthesis.com/?p=odb/odb.git;a=patch;h=62886c67aa1088a5e26b885bb0f44c0e02e0975d Will you be able to apply it and build the ODB compiler from source? Boris From ykwu2012 at 163.com Tue Apr 2 23:51:44 2013 From: ykwu2012 at 163.com (ykw2012) Date: Tue Apr 2 23:51:50 2013 Subject: [odb-users] Problems in android platform using ODB Message-ID: Hello: I develop a C++ application for android system using ODB.I use android ndk toolchain to cross-compiled the libraries I needed following the guiude(Using ODB on Mobile and Embedded Systems) .And the libraries come out fine.I build my own application,and run it.I find the error come at "db->query<>". Then I build the odb-example(hello-world) using the libraries to see if I got the same error.I put the libraries into the android system(Path:/system/lib),and put the application(hello-world) into the /data/local/tmp.I run the example,and I get a segmetation fault.I carefully examine the application,the error comes at line 53(the code is attached below).I got the same error.The query sentence always get me a segmetation fault. I wonder whether android platform is supported and do you have ever test odb on android platform? Thank you. 45 typedef odb::query query; 46 typedef odb::result result; 47 48 // Say hello to those over 30. 49 // 50 { 51 transaction t (db->begin ()); 52 53 result r (db->query (query::age > 30)); 2013-04-02 ykw2012@163.com From boris at codesynthesis.com Wed Apr 3 10:57:23 2013 From: boris at codesynthesis.com (Boris Kolpackov) Date: Wed Apr 3 10:57:43 2013 Subject: [odb-users] Problems in android platform using ODB In-Reply-To: References: Message-ID: Hi, ykw2012 writes: > Then I build the odb-example(hello-world) using the libraries to > see if I got the same error.I put the libraries into the android > system(Path:/system/lib),and put the application(hello-world) into > the /data/local/tmp. I run the example,and I get a segmetation fault. My bet would be on the exception handling and RTTI support. Have you made sure that all the ODB libraries and your application are build with exception/RTTI enabled as well as the that was STL build with these features is used? I am not an Android expert so I am not 100% sure how to achieve this, but CPLUSPLUS-SUPPORT.html file that comes with the NDK has some information on this. Also be careful with mixing shared/static libraries. If you built the ODB libraries as shared, then you most likely also have to use shared STL for exceptions to work. In fact, to minimize the number of potential issues, I would suggest that you start with building the ODB libraries as static (--disabled-shared configure option) and link to static STL. Only once this works, I would try to use shared libraries. > I wonder whether android platform is supported and do you have ever > test odb on android platform? We haven't tested it ourselves, however, from the documentation, NDK appears to provide a fairly complete C++ environment (C++ exceptions and RTTI support as well as STL compiled with this support). I think it is just a matter of configuring and building everything correctly. Also, if you manage to make it work (I would be happy to help in any way I can), it would be greatly appreciated if you could shared the steps and commands you used to build everything. Boris From canismajorwuff at gmail.com Fri Apr 5 09:19:16 2013 From: canismajorwuff at gmail.com (CanisMajorWuff) Date: Fri Apr 5 11:26:01 2013 Subject: [odb-users] HelloWorld: runtime error Message-ID: <515ECF54.9040701@gmail.com> Hello, I have problem with building of "hello world" example. $ waf build_debug Waf: Entering directory `e:\Documents\documents\C++Projects\odb\build\debug' [1/3] cxx: src\driver.cxx -> build\debug\src\driver.cxx.1.o [2/3] cxx: src\person-odb.cxx -> build\debug\src\person-odb.cxx.1.o In file included from ..\..\src\driver.cxx:12:0: ..\..\src\person.hxx:12:0: warning: ignoring #pragma db object [-Wunknown-pragmas] ..\..\src\person.hxx:52:0: warning: ignoring #pragma db id [-Wunknown-pragmas] ..\..\src\person.hxx:60:0: warning: ignoring #pragma db view [-Wunknown-pragmas] ..\..\src\person.hxx:63:0: warning: ignoring #pragma db column [-Wunknown-pragmas] ..\..\src\person.hxx:66:0: warning: ignoring #pragma db column [-Wunknown-pragmas] ..\..\src\person.hxx:69:0: warning: ignoring #pragma db column [-Wunknown-pragmas] In file included from ..\..\src\driver.cxx:10:0: ..\..\src\database.hxx: In function 'std::auto_ptr create_database(int&, char**)': ..\..\src\database.hxx:64:25: warning: 'auto_ptr' is deprecated (declared at d:\mingw\bin\../lib/gcc/x86_64-w64-m ingw32/4.7.1/../../../../include/c++/4.7.1/backward/auto_ptr.h:87) [-Wdeprecated-declarations] ..\..\src\driver.cxx: In function 'int main(int, char**)': ..\..\src\driver.cxx:23:28: warning: 'auto_ptr' is deprecated (declared at d:\mingw\bin\../lib/gcc/x86_64-w64-min gw32/4.7.1/../../../../include/c++/4.7.1/backward/auto_ptr.h:87) [-Wdeprecated-declarations] In file included from ..\..\src\person-odb.hxx:16:0, from ..\..\src\person-odb.cxx:7: ..\..\src\person.hxx:12:0: warning: ignoring #pragma db object [-Wunknown-pragmas] ..\..\src\person.hxx:52:0: warning: ignoring #pragma db id [-Wunknown-pragmas] ..\..\src\person.hxx:60:0: warning: ignoring #pragma db view [-Wunknown-pragmas] ..\..\src\person.hxx:63:0: warning: ignoring #pragma db column [-Wunknown-pragmas] ..\..\src\person.hxx:66:0: warning: ignoring #pragma db column [-Wunknown-pragmas] ..\..\src\person.hxx:69:0: warning: ignoring #pragma db column [-Wunknown-pragmas] [3/3] cxxprogram: build\debug\src\driver.cxx.1.o build\debug\src\person-odb.cxx.1.o -> build\debug\src\odb.exe Waf: Leaving directory `e:\Documents\documents\C++Projects\odb\build\debug' odb.exe - it is not a compiler, it is a name of the "hello world" executable file. $ gdb ./build/release/src/odb.exe GNU gdb (rubenvb-4.7.1-2-release) 7.5.50.20120816-cvs Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-w64-mingw32". For bug reporting instructions, please see: ... Reading symbols from e:\Documents\documents\C++Projects\odb\build\release\src\odb.exe...done. (gdb) r Starting program: e:\Documents\documents\C++Projects\odb\build\release\src\odb.exe [New Thread 10908.0x2aa4] warning: FTH: (10908): *** Fault tolerant heap shim applied to current process. This is usually due to previous cr ashes. *** [New Thread 10908.0x1664] Program received signal SIGSEGV, Segmentation fault. 0x0000000076f6e4b4 in ntdll!RtlDefaultNpAcl () from C:\Windows\system32\ntdll.dll (gdb) bt #0 0x0000000076f6e4b4 in ntdll!RtlDefaultNpAcl () from C:\Windows\system32\ntdll.dll The same happens when I start it with --create --database "test.db" arguments. The only I can do is to use it with --help argument. Any suggestion? With Best Regards, From boris at codesynthesis.com Fri Apr 5 11:34:42 2013 From: boris at codesynthesis.com (Boris Kolpackov) Date: Fri Apr 5 11:34:50 2013 Subject: [odb-users] HelloWorld: runtime error In-Reply-To: <515ECF54.9040701@gmail.com> References: <515ECF54.9040701@gmail.com> Message-ID: Hi, CanisMajorWuff writes: > #0 0x0000000076f6e4b4 in ntdll!RtlDefaultNpAcl () from > C:\Windows\system32\ntdll.dll > > Any suggestion? My guess would be there is something wrong with your MinGW-W64 toolchain or the way you built the example. We tested ODB on MinGW-W64 and all tests and all examples pass for all databases. Have you tried to build the examples using the standard build tool (i.e., ./configure && make)? If so, do you get the same error? Boris From canismajorwuff at gmail.com Fri Apr 5 17:12:59 2013 From: canismajorwuff at gmail.com (CanisMajorWuff) Date: Sat Apr 6 11:12:11 2013 Subject: [odb-users] odb-examples build Message-ID: <515F3E5B.9030206@gmail.com> Hello, I am building odb on Windows with Mingw64 with the following commands cd build ./../libodb/configure --prefix=/d/odb/try2/install && make && make install ./../libodb-sqlite/configure CPPFLAGS="-I/d/sqlite3/sqlite3/include -I/d/odb/try2/install/include" LDFLAGS="-L/d/sqlite3/sqlite3/lib -L/d/odb/try2/install/lib" --prefix=/d/odb/try2/install && make && make install ./../odb-examples/configure --with-database=sqlite CPPFLAGS="-I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include" LDFLAGS="-L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib" --prefix=/d/odb/try2/examples && make && make install With example build I have the following problems: make all-recursive make[1]: Entering directory `/d/odb/try2/build' Making all in access make[2]: Entering directory `/d/odb/try2/build/access' odb -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include --database sqlite --generat query --table-prefix access_ .././../odb-examples/access/person.hxx make all-am make[3]: Entering directory `/d/odb/try2/build/access' depbase=`echo driver.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -DHAVE_CONFIG_H -I'.' -I'.././../odb-examples/access' -DDATABASE_SQLITE -I/ nclude -I/d/sqlite3/sqlite3/include -g -O2 -mthreads -MT driver.o -MD -MP -MF $depbase.Tpo - ./odb-examples/access/driver.cxx &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo person-odb.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -DHAVE_CONFIG_H -I'.' -I'.././../odb-examples/access' -DDATABASE_SQLITE -I/ nclude -I/d/sqlite3/sqlite3/include -g -O2 -mthreads -MT person-odb.o -MD -MP -MF $depbase.T o person-odb.cxx &&\ mv -f $depbase.Tpo $depbase.Po /bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -mthreads -L/d/odb/try2/install/lib - lib -o driver.exe driver.o person-odb.o -lodb-sqlite -lodb libtool: link: g++ -g -O2 -mthreads -o .libs/driver.exe driver.o person-odb.o -L/d/odb/try2/ ite3/sqlite3/lib /d/odb/try2/install/lib/libodb-sqlite.a -lsqlite3 /d/odb/try2/install/lib/li -L/d/odb/try2/install/lib driver.o: In function `create_database(int&, char**)': d:\odb\try2\build\access/.././../odb-examples/access/database.hxx:66: undefined reference to e8databaseC1ERiPPcbibRKSsNS_7details12transfer_ptrINS0_18connection_factoryEEE' d:\odb\try2\build\access/.././../odb-examples/access/database.hxx:49: undefined reference to e8database11print_usageERSo' person-odb.o: In function `odb::access::object_traits_impl::init _traits_impl::image_type&, person const&, odb::sqlite::statement d:\odb\try2\build\access/person-odb.cxx:222: undefined reference to `__imp__ZN3odb6sqlite20de sLNS0_16database_type_idE2EE9set_imageERNS_7details12basic_bufferIcEERyRbRKSs' d:\odb\try2\build\access/person-odb.cxx:203: undefined reference to `__imp__ZN3odb6sqlite20de sLNS0_16database_type_idE2EE9set_imageERNS_7details12basic_bufferIcEERyRbRKSs' person-odb.o: In function `odb::access::object_traits_impl::init _traits_impl::id_image_type&, std::string const&)': d:\odb\try2\build\access/person-odb.cxx:389: undefined reference to `__imp__ZN3odb6sqlite20de sLNS0_16database_type_idE2EE9set_imageERNS_7details12basic_bufferIcEERyRbRKSs' person-odb.o: In function `odb::access::object_traits_impl::find t_statements&, std::string const*)': d:\odb\try2\build\access/person-odb.cxx:727: undefined reference to `__imp__ZN3odb6sqlite16se teEv' person-odb.o: In function `odb::sqlite::select_statement::fetch()': d:/odb/try2/install/include/odb/sqlite/statement.hxx:225: undefined reference to `__imp__ZN3o atement4nextEv' person-odb.o: In function `~auto_result': d:/odb/try2/install/include/odb/sqlite/statement.hxx:271: undefined reference to `__imp__ZN3o atement11free_resultEv' person-odb.o: In function `odb::sqlite::select_statement::fetch()': d:/odb/try2/install/include/odb/sqlite/statement.hxx:225: undefined reference to `__imp__ZN3o atement4loadEv' person-odb.o: In function `odb::sqlite::select_statement::refetch()': d:/odb/try2/install/include/odb/sqlite/statement.hxx:233: undefined reference to `__imp__ZN3o atement6reloadEv' person-odb.o: In function `odb::sqlite::object_statements::find_statement()': d:/odb/try2/install/include/odb/sqlite/simple-object-statements.hxx:363: undefined reference lite16select_statementC1ERNS0_10connectionEPKcRNS0_7bindingES7_' person-odb.o: In function `~auto_result': d:/odb/try2/install/include/odb/sqlite/statement.hxx:271: undefined reference to `__imp__ZN3o atement11free_resultEv' person-odb.o: In function `odb::sqlite::select_statement::fetch()': d:/odb/try2/install/include/odb/sqlite/statement.hxx:225: undefined reference to `__imp__ZN3o atement4loadEv' person-odb.o: In function `odb::sqlite::select_statement::refetch()': d:/odb/try2/install/include/odb/sqlite/statement.hxx:233: undefined reference to `__imp__ZN3o atement6reloadEv' person-odb.o: In function `odb::sqlite::object_statements::find_statement()': d:/odb/try2/install/include/odb/sqlite/simple-object-statements.hxx:363: undefined reference lite16select_statementC1ERNS0_10connectionEPKcRNS0_7bindingES7_' person-odb.o: In function `~auto_result': d:/odb/try2/install/include/odb/sqlite/statement.hxx:271: undefined reference to `__imp__ZN3o atement11free_resultEv' person-odb.o: In function `odb::access::object_traits_impl::eras e&, odb::sqlite::query_base const&)': d:\odb\try2\build\access/person-odb.cxx:796: undefined reference to `__imp__ZN3odb6sqlite11tr person-odb.o: In function `odb::sqlite::query_base::init_parameters() const': d:/odb/try2/install/include/odb/sqlite/query.ixx:12: undefined reference to `__imp__ZN3odb6sq nitEv' person-odb.o: In function `odb::access::object_traits_impl::eras e&, odb::sqlite::query_base const&)': d:\odb\try2\build\access/person-odb.cxx:802: undefined reference to `__imp__ZNK3odb6sqlite10q d:\odb\try2\build\access/person-odb.cxx:802: undefined reference to `__imp__ZN3odb6sqlite16de 0_10connectionERKSsRNS0_7bindingE' d:\odb\try2\build\access/person-odb.cxx:804: undefined reference to `__imp__ZN3odb6sqlite16de teEv' person-odb.o: In function `~delete_statement': d:/odb/try2/install/include/odb/sqlite/statement.hxx:331: undefined reference to `__imp__ZTVN statementE' d:/odb/try2/install/include/odb/sqlite/statement.hxx:331: undefined reference to `__imp__ZN3o 2Ev' person-odb.o: In function `odb::access::object_traits_impl::quer b::sqlite::query_base const&)': d:\odb\try2\build\access/person-odb.cxx:757: undefined reference to `__imp__ZN3odb6sqlite11tr person-odb.o: In function `odb::sqlite::query_base::init_parameters() const': d:/odb/try2/install/include/odb/sqlite/query.ixx:12: undefined reference to `__imp__ZN3odb6sq nitEv' person-odb.o: In function `odb::access::object_traits_impl::quer b::sqlite::query_base const&)': d:\odb\try2\build\access/person-odb.cxx:779: undefined reference to `__imp__ZNK3odb6sqlite10q d:\odb\try2\build\access/person-odb.cxx:779: undefined reference to `__imp__ZN3odb6sqlite16se 0_10connectionERKSsRNS0_7bindingES7_' d:\odb\try2\build\access/person-odb.cxx:781: undefined reference to `__imp__ZN3odb6sqlite16se teEv' person-odb.o: In function `odb::access::object_traits_impl::relo erson&)': d:\odb\try2\build\access/person-odb.cxx:675: undefined reference to `__imp__ZN3odb6sqlite11tr person-odb.o: In function `odb::sqlite::object_statements::find_statement()': d:/odb/try2/install/include/odb/sqlite/simple-object-statements.hxx:363: undefined reference lite16select_statementC1ERNS0_10connectionEPKcRNS0_7bindingES7_' person-odb.o: In function `odb::access::object_traits_impl::find ::string const&, person&)': d:\odb\try2\build\access/person-odb.cxx:642: undefined reference to `__imp__ZN3odb6sqlite11tr person-odb.o: In function `odb::sqlite::object_statements::find_statement()': d:/odb/try2/install/include/odb/sqlite/simple-object-statements.hxx:363: undefined reference d:\odb\try2\build\access/person-odb.cxx:594: undefined reference to `__imp__ZN3odb6sqlite11tr person-odb.o: In function `odb::sqlite::object_statements::find_statement()': d:/odb/try2/install/include/odb/sqlite/simple-object-statements.hxx:363: undefined reference lite16select_statementC1ERNS0_10connectionEPKcRNS0_7bindingES7_' person-odb.o: In function `odb::sqlite::delete_statement::~delete_statement()': d:/odb/try2/install/include/odb/sqlite/statement.hxx:331: undefined reference to `__imp__ZTVN statementE' d:/odb/try2/install/include/odb/sqlite/statement.hxx:331: undefined reference to `__imp__ZN3o 2Ev' person-odb.o: In function `~delete_statement': d:/odb/try2/install/include/odb/sqlite/statement.hxx:331: undefined reference to `__imp__ZTVN statementE' d:/odb/try2/install/include/odb/sqlite/statement.hxx:331: undefined reference to `__imp__ZN3o 2Ev' person-odb.o: In function `odb::sqlite::object_result_impl::invalidate()': d:/odb/try2/install/include/odb/sqlite/simple-object-result.txx:30: undefined reference to `_ 6select_statement11free_resultEv' person-odb.o: In function `odb::sqlite::object_result_impl::next()': d:/odb/try2/install/include/odb/sqlite/simple-object-result.txx:102: undefined reference to ` 16select_statement4nextEv' d:/odb/try2/install/include/odb/sqlite/simple-object-result.txx:104: undefined reference to ` 16select_statement11free_resultEv' person-odb.o: In function `odb::sqlite::object_result_impl::~object_result_impl()': d:/odb/try2/install/include/odb/sqlite/simple-object-result.txx:21: undefined reference to `_ 6select_statement11free_resultEv' person-odb.o: In function `odb::sqlite::object_statements::object_statements(odb::sql d:/odb/try2/install/include/odb/sqlite/simple-object-statements.txx:52: undefined reference t ite22object_statements_baseD2Ev' person-odb.o: In function `odb::sqlite::object_statements::~object_statements()': d:/odb/try2/install/include/odb/sqlite/simple-object-statements.txx:39: undefined reference t ite22object_statements_baseD2Ev' d:/odb/try2/install/include/odb/sqlite/simple-object-statements.txx:39: undefined reference t ite22object_statements_baseD2Ev' person-odb.o: In function `odb::sqlite::object_result_impl::load_image()': d:/odb/try2/install/include/odb/sqlite/simple-object-result.txx:126: undefined reference to ` 16select_statement4loadEv' d:/odb/try2/install/include/odb/sqlite/simple-object-result.txx:139: undefined reference to ` 16select_statement6reloadEv' d:/odb/try2/install/lib/libodb-sqlite.a(error.o): In function `forced_rollback': d:\odb\try2\build\odb\sqlite/../.././../libodb-sqlite/odb/sqlite/exceptions.hxx:28: undefined __ZTVN3odb6sqlite15forced_rollbackE' collect2.exe: error: ld returned 1 exit status make[3]: *** [driver.exe] Error 1 make[3]: Leaving directory `/d/odb/try2/build/access' make[2]: *** [all] Error 2 make[2]: Leaving directory `/d/odb/try2/build/access' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/d/odb/try2/build' make: *** [all] Error 2 \ Config log is attached. With Best Regards, -------------- next part -------------- This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by odb-examples configure 2.2.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./../odb-examples/configure --with-database=sqlite CPPFLAGS=-I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include LDFLAGS=-L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib --prefix=/d/odb/try2/examples ## --------- ## ## Platform. ## ## --------- ## hostname = CanisMajorWuff uname -m = i686 uname -r = 1.0.17(0.48/3/2) uname -s = MINGW32_NT-6.1 uname -v = 2011-04-24 23:39 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: . PATH: /usr/local/bin PATH: /mingw/bin PATH: /bin PATH: /d/conemu/ConEmu PATH: /d/LLVM/3.3/bin PATH: /d/xpdf/bin64 PATH: /d/odb/try2/install/bin PATH: /d/odb/odb/bin PATH: /d/qt/4.8.3/x86_64-w64-mingw322/bin PATH: /d/boost/1.52.0/boost/bin PATH: /d/waf PATH: /d/python/2.7 PATH: /d/uncrustify PATH: /c/Program Files (x86)/NVIDIA Corporation/PhysX/Common PATH: /usr/bin PATH: /d/ctagsD PATH: /mingw/bin PATH: /d/subversion/Subversion Client PATH: /c/Windows/System32 PATH: /c/Windows PATH: /c/Windows/System32/WindowsPowerShell/v1.0/ PATH: /c/ProgramData/NVIDIA Corporation/NVIDIA GPU Computing SDK 4.2/C/common/bin PATH: /d/cygwin/bin PATH: /d/git/bin PATH: /d/mathlab/runtime/win64 PATH: /d/mathlab/bin PATH: /d/apache-maven-3.0.4/bin PATH: /c/Program Files/Java/jdk1.7.0_06/bin PATH: /d/mercurial/ PATH: /e/Documents/documents/Python/LatexAutoCompiler PATH: /d/texlive/2012/bin/win32 ## ----------- ## ## Core tests. ## ## ----------- ## configure:2425: checking for a BSD-compatible install configure:2493: result: /bin/install -c configure:2504: checking whether build environment is sane configure:2559: result: yes configure:2710: checking for a thread-safe mkdir -p configure:2749: result: /bin/mkdir -p configure:2756: checking for gawk configure:2772: found /bin/gawk configure:2783: result: gawk configure:2794: checking whether make sets $(MAKE) configure:2816: result: yes configure:2897: checking how to create a ustar tar archive configure:2910: tar --version tar (GNU tar) 1.23 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. configure:2913: $? = 0 configure:2953: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar configure:2956: $? = 0 configure:2960: tar -xf - &5 gcc.exe (rubenvb-4.7.1-2-release) 4.7.1 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3370: $? = 0 configure:3359: gcc -v >&5 Using built-in specs. COLLECT_GCC=d:\mingw\bin\gcc.exe COLLECT_LTO_WRAPPER=d:/mingw/bin/../libexec/gcc/x86_64-w64-mingw32/4.7.1/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: /home/ruben/mingw-w64/src/gcc/configure --host=x86_64-w64-mingw32 --build=x86_64-linux-gnu --target=x86_64-w64-mingw32 --with-sysroot=/home/ruben/mingw-w64/mingw64mingw64/mingw64 --prefix=/home/ruben/mingw-w64/mingw64mingw64/mingw64 --with-gmp=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-mpfr=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-mpc=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-ppl=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-cloog=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --disable-ppl-version-check --disable-cloog-version-check --enable-cloog-backend=isl --with-host-libstdcxx='-static -lstdc++ -lm' --enable-shared --enable-static --enable-threads=win32 --enable-plugins --disable-multilib --enable-languages=c,lto,c++,objc,obj-c++,fortran,java --enable-libgomp --enable-fully-dynamic-string --enable-libstdcxx-time --disable-nls --disable-werror --enable-checking=release --with-gnu-as --with-gnu-ld --disable-win32-registry --disable-rpath --disable-werror --with-libiconv-prefix=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-pkgversion=rubenvb-4.7.1-2-release --with-bugurl=mingw-w64-public@lists.sourceforge.net CC= CFLAGS='-O2 -march=nocona -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer' LDFLAGS= Thread model: win32 gcc version 4.7.1 (rubenvb-4.7.1-2-release) configure:3370: $? = 0 configure:3359: gcc -V >&5 gcc.exe: error: unrecognized command line option '-V' gcc.exe: fatal error: no input files compilation terminated. configure:3370: $? = 1 configure:3359: gcc -qversion >&5 gcc.exe: error: unrecognized command line option '-qversion' gcc.exe: fatal error: no input files compilation terminated. configure:3370: $? = 1 configure:3390: checking whether the C compiler works configure:3412: gcc -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib conftest.c >&5 configure:3416: $? = 0 configure:3464: result: yes configure:3467: checking for C compiler default output file name configure:3469: result: a.exe configure:3475: checking for suffix of executables configure:3482: gcc -o conftest.exe -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib conftest.c >&5 configure:3486: $? = 0 configure:3508: result: .exe configure:3530: checking whether we are cross compiling configure:3538: gcc -o conftest.exe -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib conftest.c >&5 configure:3542: $? = 0 configure:3549: ./conftest.exe configure:3553: $? = 0 configure:3568: result: no configure:3573: checking for suffix of object files configure:3595: gcc -c -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:3599: $? = 0 configure:3620: result: o configure:3624: checking whether we are using the GNU C compiler configure:3643: gcc -c -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:3643: $? = 0 configure:3652: result: yes configure:3661: checking whether gcc accepts -g configure:3681: gcc -c -g -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:3681: $? = 0 configure:3722: result: yes configure:3739: checking for gcc option to accept ISO C89 configure:3802: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:3802: $? = 0 configure:3815: result: none needed configure:3837: checking dependency style of gcc configure:3948: result: gcc3 configure:4013: checking for ar configure:4029: found /mingw/bin/ar configure:4040: result: ar configure:4066: checking the archiver (ar) interface configure:4076: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:4076: $? = 0 configure:4078: ar cru libconftest.a conftest.o >&5 configure:4081: $? = 0 configure:4104: result: ar configure:4154: checking build system type configure:4168: result: i686-pc-mingw32 configure:4188: checking host system type configure:4201: result: i686-pc-mingw32 configure:4242: checking how to print strings configure:4269: result: printf configure:4290: checking for a sed that does not truncate output configure:4354: result: /bin/sed configure:4372: checking for grep that handles long lines and -e configure:4430: result: /bin/grep configure:4435: checking for egrep configure:4497: result: /bin/grep -E configure:4502: checking for fgrep configure:4564: result: /bin/grep -F configure:4599: checking for ld used by gcc configure:4666: result: d:/mingw/x86_64-w64-mingw32/bin/ld.exe configure:4673: checking if the linker (d:/mingw/x86_64-w64-mingw32/bin/ld.exe) is GNU ld configure:4688: result: yes configure:4700: checking for BSD- or MS-compatible name lister (nm) configure:4749: result: /mingw/bin/nm configure:4879: checking the name lister (/mingw/bin/nm) interface configure:4886: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:4889: /mingw/bin/nm "conftest.o" configure:4892: output 0000000000000000 b .bss 0000000000000000 d .data 0000000000000000 N .debug_abbrev 0000000000000000 N .debug_aranges 0000000000000000 N .debug_info 0000000000000000 N .debug_line 0000000000000000 t .text 0000000000000000 B some_variable configure:4899: result: BSD nm configure:4902: checking whether ln -s works configure:4909: result: no, using cp -pR configure:4914: checking the maximum length of command line arguments configure:5045: result: 8192 configure:5062: checking whether the shell understands some XSI constructs configure:5072: result: yes configure:5076: checking whether the shell understands "+=" configure:5082: result: yes configure:5117: checking how to convert i686-pc-mingw32 file names to i686-pc-mingw32 format configure:5157: result: func_convert_file_msys_to_w32 configure:5164: checking how to convert i686-pc-mingw32 file names to toolchain format configure:5184: result: func_convert_file_msys_to_w32 configure:5191: checking for d:/mingw/x86_64-w64-mingw32/bin/ld.exe option to reload object files configure:5198: result: -r configure:5272: checking for objdump configure:5288: found /mingw/bin/objdump configure:5299: result: objdump configure:5331: checking how to recognize dependent libraries configure:5529: result: file_magic ^x86 archive import|^x86 DLL configure:5614: checking for dlltool configure:5630: found /mingw/bin/dlltool configure:5641: result: dlltool configure:5674: checking how to associate runtime and link libraries configure:5701: result: func_cygming_dll_for_implib configure:5825: checking for archiver @FILE support configure:5842: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:5842: $? = 0 configure:5845: ar cru libconftest.a @conftest.lst >&5 configure:5848: $? = 0 configure:5853: ar cru libconftest.a @conftest.lst >&5 d:\mingw\bin\ar.exe: conftest.o: No such file or directory configure:5856: $? = 1 configure:5868: result: @ configure:5926: checking for strip configure:5942: found /mingw/bin/strip configure:5953: result: strip configure:6025: checking for ranlib configure:6041: found /mingw/bin/ranlib configure:6052: result: ranlib configure:6154: checking command to parse /mingw/bin/nm output from gcc object configure:6274: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:6277: $? = 0 configure:6281: /mingw/bin/nm conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)\{0,1\}$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm configure:6284: $? = 0 configure:6350: gcc -o conftest.exe -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib conftest.c conftstm.o >&5 configure:6353: $? = 0 configure:6391: result: ok configure:6428: checking for sysroot configure:6458: result: no configure:6721: checking for mt configure:6751: result: no configure:6771: checking if : is a manifest tool configure:6777: : '-?' configure:6785: result: no configure:7427: checking how to run the C preprocessor configure:7458: gcc -E -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c configure:7458: $? = 0 configure:7472: gcc -E -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:7472: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | /* end confdefs.h. */ | #include configure:7497: result: gcc -E configure:7517: gcc -E -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c configure:7517: $? = 0 configure:7531: gcc -E -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:7531: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | /* end confdefs.h. */ | #include configure:7560: checking for ANSI C header files configure:7580: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:7580: $? = 0 configure:7653: gcc -o conftest.exe -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib conftest.c >&5 configure:7653: $? = 0 configure:7653: ./conftest.exe configure:7653: $? = 0 configure:7664: result: yes configure:7677: checking for sys/types.h configure:7677: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:7677: $? = 0 configure:7677: result: yes configure:7677: checking for sys/stat.h configure:7677: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:7677: $? = 0 configure:7677: result: yes configure:7677: checking for stdlib.h configure:7677: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:7677: $? = 0 configure:7677: result: yes configure:7677: checking for string.h configure:7677: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:7677: $? = 0 configure:7677: result: yes configure:7677: checking for memory.h configure:7677: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:7677: $? = 0 configure:7677: result: yes configure:7677: checking for strings.h configure:7677: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:7677: $? = 0 configure:7677: result: yes configure:7677: checking for inttypes.h configure:7677: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:7677: $? = 0 configure:7677: result: yes configure:7677: checking for stdint.h configure:7677: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:7677: $? = 0 configure:7677: result: yes configure:7677: checking for unistd.h configure:7677: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:7677: $? = 0 configure:7677: result: yes configure:7691: checking for dlfcn.h configure:7691: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 conftest.c:55:19: fatal error: dlfcn.h: No such file or directory compilation terminated. configure:7691: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | | #include configure:7691: result: no configure:7897: checking for objdir configure:7912: result: .libs configure:8183: checking if gcc supports -fno-rtti -fno-exceptions configure:8201: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include -fno-rtti -fno-exceptions conftest.c >&5 cc1.exe: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default] configure:8205: $? = 0 configure:8218: result: no configure:8545: checking for gcc option to produce PIC configure:8552: result: -DDLL_EXPORT -DPIC configure:8560: checking if gcc PIC flag -DDLL_EXPORT -DPIC works configure:8578: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include -DDLL_EXPORT -DPIC -DPIC conftest.c >&5 configure:8582: $? = 0 configure:8595: result: yes configure:8624: checking if gcc static flag -static works configure:8652: result: yes configure:8667: checking if gcc supports -c -o file.o configure:8688: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include -o out/conftest2.o conftest.c >&5 configure:8692: $? = 0 configure:8714: result: yes configure:8722: checking if gcc supports -c -o file.o configure:8769: result: yes configure:8802: checking whether the gcc linker (d:/mingw/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries configure:9959: result: yes configure:9996: checking whether -lc should be explicitly linked in configure:10004: gcc -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.c >&5 configure:10007: $? = 0 configure:10022: gcc -shared conftest.o -v -o ./conftest -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker conftest 2\>\&1 \| /bin/grep -lc \>/dev/null 2\>\&1 configure:10025: $? = 1 configure:10039: result: yes configure:10199: checking dynamic linker characteristics configure:10933: result: Win32 ld.exe configure:11040: checking how to hardcode library paths into programs configure:11065: result: immediate configure:11605: checking whether stripping libraries is possible configure:11610: result: yes configure:11645: checking if libtool supports shared libraries configure:11647: result: yes configure:11650: checking whether to build shared libraries configure:11671: result: yes configure:11674: checking whether to build static libraries configure:11678: result: yes configure:11778: checking for g++ configure:11794: found /mingw/bin/g++ configure:11805: result: g++ configure:11832: checking for C++ compiler version configure:11841: g++ --version >&5 g++.exe (rubenvb-4.7.1-2-release) 4.7.1 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:11852: $? = 0 configure:11841: g++ -v >&5 Using built-in specs. COLLECT_GCC=d:\mingw\bin\g++.exe COLLECT_LTO_WRAPPER=d:/mingw/bin/../libexec/gcc/x86_64-w64-mingw32/4.7.1/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: /home/ruben/mingw-w64/src/gcc/configure --host=x86_64-w64-mingw32 --build=x86_64-linux-gnu --target=x86_64-w64-mingw32 --with-sysroot=/home/ruben/mingw-w64/mingw64mingw64/mingw64 --prefix=/home/ruben/mingw-w64/mingw64mingw64/mingw64 --with-gmp=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-mpfr=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-mpc=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-ppl=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-cloog=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --disable-ppl-version-check --disable-cloog-version-check --enable-cloog-backend=isl --with-host-libstdcxx='-static -lstdc++ -lm' --enable-shared --enable-static --enable-threads=win32 --enable-plugins --disable-multilib --enable-languages=c,lto,c++,objc,obj-c++,fortran,java --enable-libgomp --enable-fully-dynamic-string --enable-libstdcxx-time --disable-nls --disable-werror --enable-checking=release --with-gnu-as --with-gnu-ld --disable-win32-registry --disable-rpath --disable-werror --with-libiconv-prefix=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-pkgversion=rubenvb-4.7.1-2-release --with-bugurl=mingw-w64-public@lists.sourceforge.net CC= CFLAGS='-O2 -march=nocona -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer' LDFLAGS= Thread model: win32 gcc version 4.7.1 (rubenvb-4.7.1-2-release) configure:11852: $? = 0 configure:11841: g++ -V >&5 g++.exe: error: unrecognized command line option '-V' g++.exe: fatal error: no input files compilation terminated. configure:11852: $? = 1 configure:11841: g++ -qversion >&5 g++.exe: error: unrecognized command line option '-qversion' g++.exe: fatal error: no input files compilation terminated. configure:11852: $? = 1 configure:11856: checking whether we are using the GNU C++ compiler configure:11875: g++ -c -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 configure:11875: $? = 0 configure:11884: result: yes configure:11893: checking whether g++ accepts -g configure:11913: g++ -c -g -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 configure:11913: $? = 0 configure:11954: result: yes configure:11979: checking dependency style of g++ configure:12090: result: gcc3 configure:12123: checking how to run the C++ preprocessor configure:12150: g++ -E -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp configure:12150: $? = 0 configure:12164: g++ -E -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp conftest.cpp:22:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:12164: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | #include configure:12189: result: g++ -E configure:12209: g++ -E -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp configure:12209: $? = 0 configure:12223: g++ -E -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp conftest.cpp:22:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:12223: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | #include configure:12392: checking for ld used by g++ configure:12459: result: d:/mingw/x86_64-w64-mingw32/bin/ld.exe configure:12466: checking if the linker (d:/mingw/x86_64-w64-mingw32/bin/ld.exe) is GNU ld configure:12481: result: yes configure:12536: checking whether the g++ linker (d:/mingw/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries configure:13538: result: yes configure:13574: g++ -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 configure:13577: $? = 0 configure:14097: checking for g++ option to produce PIC configure:14104: result: -DDLL_EXPORT -DPIC configure:14112: checking if g++ PIC flag -DDLL_EXPORT -DPIC works configure:14130: g++ -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include -DDLL_EXPORT -DPIC -DPIC conftest.cpp >&5 configure:14134: $? = 0 configure:14147: result: yes configure:14170: checking if g++ static flag -static works configure:14198: result: yes configure:14210: checking if g++ supports -c -o file.o configure:14231: g++ -c -g -O2 -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include -o out/conftest2.o conftest.cpp >&5 configure:14235: $? = 0 configure:14257: result: yes configure:14262: checking if g++ supports -c -o file.o configure:14309: result: yes configure:14339: checking whether the g++ linker (d:/mingw/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries configure:14378: result: yes configure:14519: checking dynamic linker characteristics configure:15187: result: Win32 ld.exe configure:15240: checking how to hardcode library paths into programs configure:15265: result: immediate configure:15315: creating ./config.lt ## ------------------ ## ## Running config.lt. ## ## ------------------ ## config.lt:700: creating libtool configure:16993: g++ -o conftest.exe -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib conftest.cpp >&5 C:\Users\CANISM~1\AppData\Local\Temp\ccI8301I.o: In function `main': d:\odb\try2\build/conftest.cpp:26: undefined reference to `pthread_create' collect2.exe: error: ld returned 1 exit status configure:16993: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | #include | int | main () | { | pthread_create(0,0,0,0); | ; | return 0; | } configure:17390: checking whether we are in C++11 mode configure:17422: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 conftest.cpp: In function 'int main()': conftest.cpp:29:3: error: 'shared_ptr' is not a member of 'std' conftest.cpp:29:19: error: expected primary-expression before 'int' conftest.cpp:29:19: error: expected ';' before 'int' conftest.cpp:30:4: error: 'p' was not declared in this scope configure:17422: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | | | #include | | int | main () | { | std::shared_ptr p (new int (10)); | *p = 11; | } | configure:17473: result: no configure:17506: checking for odb configure:17531: result: odb configure:17557: checking for libodb configure:17631: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 configure:17631: $? = 0 configure:17638: ./libtool --tag=CXX --mode=link g++ -no-install -g -O2 -mthreads -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib -o conftest conftest.o -lodb >&5 libtool: link: warning: `-no-install' is ignored for i686-pc-mingw32 libtool: link: warning: assuming `-no-fast-install' instead libtool: link: g++ -g -O2 -mthreads -o .libs/conftest conftest.o -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib /d/odb/try2/install/lib/libodb.dll.a -mthreads -L/d/odb/try2/install/lib -L/d/odb/try2/install/lib configure:17642: $? = 0 configure:17685: result: yes configure:17700: checking for TR1 configure:17732: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 configure:17732: $? = 0 configure:17739: ./libtool --tag=CXX --mode=link g++ -no-install -g -O2 -mthreads -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib -o conftest conftest.o -lodb >&5 libtool: link: warning: `-no-install' is ignored for i686-pc-mingw32 libtool: link: warning: assuming `-no-fast-install' instead libtool: link: g++ -g -O2 -mthreads -o .libs/conftest conftest.o -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib /d/odb/try2/install/lib/libodb.dll.a -mthreads -L/d/odb/try2/install/lib -L/d/odb/try2/install/lib configure:17743: $? = 0 configure:17777: result: yes configure:17804: checking for boost base headers configure:17867: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 conftest.cpp:25:29: fatal error: boost/version.hpp: No such file or directory compilation terminated. configure:17867: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TR1_MEMORY 1 | /* end confdefs.h. */ | | | #include | | #ifndef BOOST_VERSION | # error BOOST_VERSION not defined | #endif | | int | main () | { | } | configure:17925: result: no configure:17934: checking for boost system library configure:17965: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 configure:17965: $? = 0 configure:17972: ./libtool --tag=CXX --mode=link g++ -no-install -g -O2 -mthreads -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib -o conftest conftest.o -lboost_system -lodb >&5 libtool: link: warning: `-no-install' is ignored for i686-pc-mingw32 libtool: link: warning: assuming `-no-fast-install' instead libtool: link: g++ -g -O2 -mthreads -o .libs/conftest conftest.o -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib -lboost_system /d/odb/try2/install/lib/libodb.dll.a -mthreads -L/d/odb/try2/install/lib -L/d/odb/try2/install/lib d:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lboost_system collect2.exe: error: ld returned 1 exit status configure:17976: $? = 1 configure:18038: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 configure:18038: $? = 0 configure:18045: ./libtool --tag=CXX --mode=link g++ -no-install -g -O2 -mthreads -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib -o conftest conftest.o -lboost_system-mt -lodb >&5 libtool: link: warning: `-no-install' is ignored for i686-pc-mingw32 libtool: link: warning: assuming `-no-fast-install' instead libtool: link: g++ -g -O2 -mthreads -o .libs/conftest conftest.o -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib -lboost_system-mt /d/odb/try2/install/lib/libodb.dll.a -mthreads -L/d/odb/try2/install/lib -L/d/odb/try2/install/lib d:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lboost_system-mt collect2.exe: error: ld returned 1 exit status configure:18049: $? = 1 configure:18092: result: no configure:18102: checking for boost smart_ptr library configure:18134: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 conftest.cpp:25:32: fatal error: boost/shared_ptr.hpp: No such file or directory compilation terminated. configure:18134: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TR1_MEMORY 1 | /* end confdefs.h. */ | | | #include | #include | | int | main () | { | boost::shared_ptr sp (new int (10)); | boost::weak_ptr wp (sp); | } | configure:18183: result: no configure:18193: checking for boost unordered library configure:18228: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 conftest.cpp:25:35: fatal error: boost/unordered_set.hpp: No such file or directory compilation terminated. configure:18228: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TR1_MEMORY 1 | /* end confdefs.h. */ | | | #include | #include | | int | main () | { | boost::unordered_set s; | boost::unordered_map m; | | s.insert (1); | return m.find (1) != m.end (); | } | configure:18277: result: no configure:18287: checking for boost date_time library configure:18323: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 conftest.cpp:25:51: fatal error: boost/date_time/gregorian/gregorian.hpp: No such file or directory compilation terminated. configure:18323: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TR1_MEMORY 1 | /* end confdefs.h. */ | | | #include | | int | main () | { | boost::gregorian::greg_month m (1); | const char* s (m.as_short_string ()); | return s == 0; | } | configure:18401: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 conftest.cpp:25:51: fatal error: boost/date_time/gregorian/gregorian.hpp: No such file or directory compilation terminated. configure:18401: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TR1_MEMORY 1 | /* end confdefs.h. */ | | | #include | | int | main () | { | boost::gregorian::greg_month m (1); | const char* s (m.as_short_string ()); | return s == 0; | } | configure:18455: result: no configure:18476: checking for libodb-boost configure:18551: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 conftest.cpp:25:35: fatal error: odb/boost/exception.hxx: No such file or directory compilation terminated. configure:18551: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TR1_MEMORY 1 | /* end confdefs.h. */ | | | #include | | void | f () | { | } | | const char* | g () | { | try | { | f (); | } | catch (const odb::boost::exception& e) | { | return e.what (); | } | return 0; | } | | int | main () | { | const char* m (g ()); | return m != 0; | } | configure:18609: result: no configure:18638: checking for pkg-config configure:18671: result: no configure:18677: checking for QtCore configure:18725: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 conftest.cpp:35:26: fatal error: QtCore/QString: No such file or directory compilation terminated. configure:18725: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TR1_MEMORY 1 | /* end confdefs.h. */ | | | // See libodb-qt/odb/qt/details/config.hxx for more information on | // what's going on here. | // | # if defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__) | # include // QT_REDUCE_RELOCATIONS | # ifdef QT_REDUCE_RELOCATIONS | # define __PIE__ | # endif | # endif | #include | #include | | int | main () | { | QString qs ("test"); | std::string ss (qs.toStdString ()); | return ss.size () != 0; | } | configure:18818: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 conftest.cpp:35:26: fatal error: QtCore/QString: No such file or directory compilation terminated. configure:18818: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TR1_MEMORY 1 | /* end confdefs.h. */ | | | // See libodb-qt/odb/qt/details/config.hxx for more information on | // what's going on here. | // | # if defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__) | # include // QT_REDUCE_RELOCATIONS | # ifdef QT_REDUCE_RELOCATIONS | # define __PIE__ | # endif | # endif | #include | #include | | int | main () | { | QString qs ("test"); | std::string ss (qs.toStdString ()); | return ss.size () != 0; | } | configure:18818: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 conftest.cpp:35:26: fatal error: QtCore/QString: No such file or directory compilation terminated. configure:18818: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TR1_MEMORY 1 | /* end confdefs.h. */ | | | // See libodb-qt/odb/qt/details/config.hxx for more information on | // what's going on here. | // | # if defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__) | # include // QT_REDUCE_RELOCATIONS | # ifdef QT_REDUCE_RELOCATIONS | # define __PIE__ | # endif | # endif | #include | #include | | int | main () | { | QString qs ("test"); | std::string ss (qs.toStdString ()); | return ss.size () != 0; | } | configure:18818: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 conftest.cpp:35:26: fatal error: QtCore/QString: No such file or directory compilation terminated. configure:18818: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TR1_MEMORY 1 | /* end confdefs.h. */ | | | // See libodb-qt/odb/qt/details/config.hxx for more information on | // what's going on here. | // | # if defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__) | # include // QT_REDUCE_RELOCATIONS | # ifdef QT_REDUCE_RELOCATIONS | # define __PIE__ | # endif | # endif | #include | #include | | int | main () | { | QString qs ("test"); | std::string ss (qs.toStdString ()); | return ss.size () != 0; | } | configure:18818: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 conftest.cpp:35:26: fatal error: QtCore/QString: No such file or directory compilation terminated. configure:18818: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TR1_MEMORY 1 | /* end confdefs.h. */ | | | // See libodb-qt/odb/qt/details/config.hxx for more information on | // what's going on here. | // | # if defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__) | # include // QT_REDUCE_RELOCATIONS | # ifdef QT_REDUCE_RELOCATIONS | # define __PIE__ | # endif | # endif | #include | #include | | int | main () | { | QString qs ("test"); | std::string ss (qs.toStdString ()); | return ss.size () != 0; | } | configure:18818: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 conftest.cpp:35:26: fatal error: QtCore/QString: No such file or directory compilation terminated. configure:18818: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TR1_MEMORY 1 | /* end confdefs.h. */ | | | // See libodb-qt/odb/qt/details/config.hxx for more information on | // what's going on here. | // | # if defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__) | # include // QT_REDUCE_RELOCATIONS | # ifdef QT_REDUCE_RELOCATIONS | # define __PIE__ | # endif | # endif | #include | #include | | int | main () | { | QString qs ("test"); | std::string ss (qs.toStdString ()); | return ss.size () != 0; | } | configure:18918: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 conftest.cpp:35:26: fatal error: QtCore/QString: No such file or directory compilation terminated. configure:18918: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TR1_MEMORY 1 | /* end confdefs.h. */ | | | // See libodb-qt/odb/qt/details/config.hxx for more information on | // what's going on here. | // | # if defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__) | # include // QT_REDUCE_RELOCATIONS | # ifdef QT_REDUCE_RELOCATIONS | # define __PIE__ | # endif | # endif | #include | #include | | int | main () | { | QString qs ("test"); | std::string ss (qs.toStdString ()); | return ss.size () != 0; | } | configure:19086: result: no configure:19106: checking for libodb-qt configure:19181: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 conftest.cpp:25:32: fatal error: odb/qt/exception.hxx: No such file or directory compilation terminated. configure:19181: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "odb-examples" | #define PACKAGE_TARNAME "odb-examples" | #define PACKAGE_VERSION "2.2.0" | #define PACKAGE_STRING "odb-examples 2.2.0" | #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" | #define PACKAGE_URL "" | #define PACKAGE "odb-examples" | #define VERSION "2.2.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TR1_MEMORY 1 | /* end confdefs.h. */ | | | #include | | void | f () | { | } | | const char* | g () | { | try | { | f (); | } | catch (const odb::qt::exception& e) | { | return e.what (); | } | return 0; | } | | int | main () | { | const char* m (g ()); | return m != 0; | } | configure:19239: result: no configure:19259: checking for database to use configure:19316: result: sqlite configure:19773: checking for libodb-sqlite configure:19848: g++ -c -g -O2 -mthreads -I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include conftest.cpp >&5 configure:19848: $? = 0 configure:19855: ./libtool --tag=CXX --mode=link g++ -no-install -g -O2 -mthreads -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib -o conftest conftest.o -lodb-sqlite -lodb >&5 libtool: link: warning: `-no-install' is ignored for i686-pc-mingw32 libtool: link: warning: assuming `-no-fast-install' instead libtool: link: g++ -g -O2 -mthreads -o .libs/conftest conftest.o -L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib /d/odb/try2/install/lib/libodb-sqlite.a -lsqlite3 /d/odb/try2/install/lib/libodb.dll.a -mthreads -L/d/odb/try2/install/lib -L/d/odb/try2/install/lib configure:19859: $? = 0 configure:19902: result: yes configure:19915: checking for sqlite database file configure:19956: result: '/d/odb/try2/build/odb-test.db' configure:21149: checking that generated files are newer than configure configure:21155: result: done configure:21222: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by odb-examples config.status 2.2.0, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on CanisMajorWuff config.status:1282: creating access/Makefile config.status:1282: creating boost/Makefile config.status:1282: creating c++11/Makefile config.status:1282: creating composite/Makefile config.status:1282: creating container/Makefile config.status:1282: creating hello/Makefile config.status:1282: creating inheritance/polymorphism/Makefile config.status:1282: creating inheritance/reuse/Makefile config.status:1282: creating inverse/Makefile config.status:1282: creating Makefile config.status:1282: creating mapping/Makefile config.status:1282: creating optimistic/Makefile config.status:1282: creating pimpl/Makefile config.status:1282: creating prepared/Makefile config.status:1282: creating qt/Makefile config.status:1282: creating query/Makefile config.status:1282: creating relationship/Makefile config.status:1282: creating schema/custom/Makefile config.status:1282: creating schema/embedded/Makefile config.status:1282: creating view/Makefile config.status:1282: creating config.h config.status:1496: executing depfiles commands config.status:1496: executing libtool commands config.status:1496: executing sqlite.options commands ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=i686-pc-mingw32 ac_cv_c_compiler_gnu=yes ac_cv_cxx_compiler_gnu=yes ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value='-I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include' ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib' ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_ODBCPPFLAGS_set= ac_cv_env_ODBCPPFLAGS_value= ac_cv_env_ODBFLAGS_set= ac_cv_env_ODBFLAGS_value= ac_cv_env_ODB_set= ac_cv_env_ODB_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_exeext=.exe ac_cv_header_dlfcn_h=no ac_cv_header_inttypes_h=yes ac_cv_header_memory_h=yes ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_host=i686-pc-mingw32 ac_cv_objext=o ac_cv_path_EGREP='/bin/grep -E' ac_cv_path_FGREP='/bin/grep -F' ac_cv_path_GREP=/bin/grep ac_cv_path_SED=/bin/sed ac_cv_path_install='/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_CPP='gcc -E' ac_cv_prog_CXXCPP='g++ -E' ac_cv_prog_ac_ct_AR=ar ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CXX=g++ ac_cv_prog_ac_ct_DLLTOOL=dlltool ac_cv_prog_ac_ct_OBJDUMP=objdump ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_prog_cxx_g=yes ac_cv_prog_make_make_set=yes am_cv_CC_dependencies_compiler_type=gcc3 am_cv_CXX_dependencies_compiler_type=gcc3 am_cv_ar_interface=ar am_cv_prog_tar_ustar=gnutar lt_cv_ar_at_file=@ lt_cv_archive_cmds_need_lc=yes lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd=func_win32_libid lt_cv_file_magic_test_file= lt_cv_ld_reload_flag=-r lt_cv_nm_interface='BSD nm' lt_cv_objdir=.libs lt_cv_path_LD=d:/mingw/x86_64-w64-mingw32/bin/ld.exe lt_cv_path_LDCXX=d:/mingw/x86_64-w64-mingw32/bin/ld.exe lt_cv_path_NM=/mingw/bin/nm lt_cv_path_mainfest_tool=no lt_cv_prog_compiler_c_o=yes lt_cv_prog_compiler_c_o_CXX=yes lt_cv_prog_compiler_pic='-DDLL_EXPORT -DPIC' lt_cv_prog_compiler_pic_CXX='-DDLL_EXPORT -DPIC' lt_cv_prog_compiler_pic_works=yes lt_cv_prog_compiler_pic_works_CXX=yes lt_cv_prog_compiler_rtti_exceptions=no lt_cv_prog_compiler_static_works=yes lt_cv_prog_compiler_static_works_CXX=yes lt_cv_prog_gnu_ld=yes lt_cv_prog_gnu_ldcxx=yes lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\) \{0,1\}$/\1 \2 \2/p'\'' | sed '\''/ __gnu_lto/d'\''' lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\''' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\''' lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\''' lt_cv_sys_max_cmd_len=8192 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /d/odb/try2/odb-examples/config/missing --run aclocal-1.12' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' AMTAR='$${TAR-tar}' AR='ar' AUTOCONF='${SHELL} /d/odb/try2/odb-examples/config/missing --run autoconf' AUTOHEADER='${SHELL} /d/odb/try2/odb-examples/config/missing --run autoheader' AUTOMAKE='${SHELL} /d/odb/try2/odb-examples/config/missing --run automake-1.12' AWK='gawk' CC='gcc' CCDEPMODE='depmode=gcc3' CFLAGS='-g -O2' CPP='gcc -E' CPPFLAGS='-I/d/odb/try2/install/include -I/d/sqlite3/sqlite3/include' CXX='g++' CXXCPP='g++ -E' CXXDEPMODE='depmode=gcc3' CXXFLAGS='-g -O2 -mthreads' CYGPATH_W='cygpath -w' DATABASE_MSSQL_FALSE='' DATABASE_MSSQL_TRUE='#' DATABASE_MYSQL_FALSE='' DATABASE_MYSQL_TRUE='#' DATABASE_ORACLE_FALSE='' DATABASE_ORACLE_TRUE='#' DATABASE_PGSQL_FALSE='' DATABASE_PGSQL_TRUE='#' DATABASE_SQLITE_FALSE='#' DATABASE_SQLITE_TRUE='' DEFS='-DHAVE_CONFIG_H' DEPDIR='.deps' DLLTOOL='dlltool' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/bin/grep -E' EXEEXT='.exe' FGREP='/bin/grep -F' GREP='/bin/grep' HAVE_CXX11_FALSE='' HAVE_CXX11_TRUE='#' HAVE_TR1_MEMORY_FALSE='#' HAVE_TR1_MEMORY_TRUE='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='d:/mingw/x86_64-w64-mingw32/bin/ld.exe' LDFLAGS='-L/d/odb/try2/install/lib -L/d/sqlite3/sqlite3/lib' LIBOBJS='' LIBS='-lodb-sqlite -lodb ' LIBTOOL='$(SHELL) $(top_builddir)/libtool' LIPO='' LN_S='cp -pR' LTLIBOBJS='' MAKEINFO='${SHELL} /d/odb/try2/odb-examples/config/missing --run makeinfo' MANIFEST_TOOL=':' MKDIR_P='/bin/mkdir -p' NM='/mingw/bin/nm' NMEDIT='' OBJDUMP='objdump' OBJEXT='o' ODB='odb' ODBCPPFLAGS='' ODBFLAGS='' ODB_EXAMPLES_BOOST_FALSE='' ODB_EXAMPLES_BOOST_TRUE='#' ODB_EXAMPLES_QT_FALSE='' ODB_EXAMPLES_QT_TRUE='#' ODB_EXAMPLES_THREADS_FALSE='#' ODB_EXAMPLES_THREADS_TRUE='' OTOOL64='' OTOOL='' PACKAGE='odb-examples' PACKAGE_BUGREPORT='odb-users@codesynthesis.com' PACKAGE_NAME='odb-examples' PACKAGE_STRING='odb-examples 2.2.0' PACKAGE_TARNAME='odb-examples' PACKAGE_URL='' PACKAGE_VERSION='2.2.0' PATH_SEPARATOR=':' PTHREAD_CXX='' PTHREAD_CXXFLAGS='' PTHREAD_LIBS='' RANLIB='ranlib' SED='/bin/sed' SET_MAKE='' SHELL='/bin/sh' STRIP='strip' VERSION='2.2.0' ac_ct_AR='ar' ac_ct_CC='gcc' ac_ct_CXX='g++' ac_ct_DUMPBIN='' acx_pthread_config='' am__EXEEXT_FALSE='#' am__EXEEXT_TRUE='' am__fastdepCC_FALSE='#' am__fastdepCC_TRUE='' am__fastdepCXX_FALSE='#' am__fastdepCXX_TRUE='' am__include='include' am__isrc=' -I$(srcdir)' am__leading_dot='.' am__nodep='_no' am__quote='' am__tar='tar --format=ustar -chf - "$$tardir"' am__untar='tar -xf -' bindir='${exec_prefix}/bin' build='i686-pc-mingw32' build_alias='' build_cpu='i686' build_os='mingw32' build_vendor='pc' database='sqlite' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='${prefix}' host='i686-pc-mingw32' host_alias='' host_cpu='i686' host_os='mingw32' host_vendor='pc' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /d/odb/try2/odb-examples/config/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' pkg_config='' prefix='/d/odb/try2/examples' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "odb-examples" #define PACKAGE_TARNAME "odb-examples" #define PACKAGE_VERSION "2.2.0" #define PACKAGE_STRING "odb-examples 2.2.0" #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com" #define PACKAGE_URL "" #define PACKAGE "odb-examples" #define VERSION "2.2.0" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define LT_OBJDIR ".libs/" #define HAVE_TR1_MEMORY 1 #define DATABASE_SQLITE 1 configure: exit 0 From boris at codesynthesis.com Mon Apr 8 11:28:22 2013 From: boris at codesynthesis.com (Boris Kolpackov) Date: Mon Apr 8 11:28:28 2013 Subject: [odb-users] odb-examples build In-Reply-To: <515F3E5B.9030206@gmail.com> References: <515F3E5B.9030206@gmail.com> Message-ID: Hi, CanisMajorWuff writes: > driver.o: In function `create_database(int&, char**)': > d:\odb\try2\build\access/.././../odb-examples/access/database.hxx:66: > undefined reference to e8databaseC1ERiPPcbibRKSsNS_7details12transfer_ptrINS0_18connection_factoryEEE' It seems there is something really wrong with your MinGW. Sometimes you can build things successfully but they don't run. Sometimes you get linker errors. Have you tried to build and run a simple "Hello, World" program? In any case, I just tried your exact steps and everything builds and runs just fine. I used the MinGW/MSYS toolchain that comes with the ODB compiler. Maybe you should try that too and see if you have better luck. To start the terminal, run mingw/msys.bat file found in the ODB compiler directory. Another MinGW toolchain that we have tested ODB with is the one that comes with the Qt Creator. Boris From boris at codesynthesis.com Tue Apr 16 07:56:17 2013 From: boris at codesynthesis.com (Boris Kolpackov) Date: Tue Apr 16 07:56:23 2013 Subject: [odb-users] Using ODB on Android Message-ID: Hi, Peter Wu contributed instructions for using ODB on Android with Android NDK. We have published them as a guide on the Wiki: http://wiki.codesynthesis.com/Using_ODB_on_Android Enjoy, Boris From mwpowellhtx at gmail.com Sat Apr 20 09:15:06 2013 From: mwpowellhtx at gmail.com (Michael Powell) Date: Sat Apr 20 09:15:14 2013 Subject: [odb-users] Interested in C++ ORM / serialization Message-ID: Hello, I am interested in ODB for its ORM serialization. Having read some of the online docs, seems like a fairly straightforward hook to incorporate into a model. My concerns are in how well odb works cross platform: specifically, we are targeting ArchLinux for ARM. I believe there are sqlite and odb lib resources available. If I can statically link ODB, however, so much the better, or at least figure out a way to dynamically link the shared lib (acceptable). Not counting the packaging deployment concerns (separate follow on concern, strictly speaking). Thoughts? Suggestions? Advice? Thank you... Regards, Michael Powell From mwpowellhtx at gmail.com Sat Apr 20 09:29:18 2013 From: mwpowellhtx at gmail.com (Michael Powell) Date: Sat Apr 20 09:29:26 2013 Subject: [odb-users] How to handle hierarchical class structure Message-ID: Hello, How is ODB at handling a hierarchical class model? For instance, forgiving the psuedo code, I am using boost and have a couple of classes with boost-ish concerns folded in: class model_base { private: friend class odb::access; public: #pragma db id boost::uuid id; protected: model_base(){} public: virtual ~model_base() {} }; Then we extend that into the model space: #pragma db object class point : public model_base { public: float _x, _y; public: point() : model_base(), _x(0), _y(0) {} }; #pragma db object class shape : public model_base { public: point _point; public: shape : model_base(), _point() {} }; And so on. So, generally, what ODB outcome to expect? Do we end up with flat separated tables? Or does more of an effort to normalize the database take place? How clean of a db separation of concerns is it (for the programmer-sensitive db admins out there...). Thank you... Regards, Michael Powell From boris at codesynthesis.com Sat Apr 20 10:29:07 2013 From: boris at codesynthesis.com (Boris Kolpackov) Date: Sat Apr 20 10:29:16 2013 Subject: [odb-users] Interested in C++ ORM / serialization In-Reply-To: References: Message-ID: Hi Michael, Michael Powell writes: > My concerns are in how well odb works cross platform: specifically, we > are targeting ArchLinux for ARM. There is a detailed guide on how to build and use ODB on mobile/embedded systems: http://wiki.codesynthesis.com/Using_ODB_on_Mobile_and_Embedded_Systems Boris From boris at codesynthesis.com Sat Apr 20 10:31:42 2013 From: boris at codesynthesis.com (Boris Kolpackov) Date: Sat Apr 20 10:31:48 2013 Subject: [odb-users] How to handle hierarchical class structure In-Reply-To: References: Message-ID: Hi Michael, Michael Powell writes: > How is ODB at handling a hierarchical class model? Chapter 8, "Inheritance" in the ODB manual is dedicated to answering this question. I am surprised you missed it. Boris From tenchu.tarik at hotmail.fr Fri Apr 26 03:23:31 2013 From: tenchu.tarik at hotmail.fr (Tarik BENZ) Date: Fri Apr 26 03:23:39 2013 Subject: [odb-users] query::Age --> Incomplete type is not alowed Message-ID: Hi, I have some troubles to compile my code because I have this error "Incomplete type is not alowed" My code is : #include #include // std::unique_ptr #include #include #include "Database.hxx" // create_database #include "User.hxx" // create_database #include #include #include .... typedef odb::query query; typedef odb::result result; std::unique_ptr db (create_database ()); transaction t (db->begin ()); result r (db->query (query::userName == user && query::userPass == password)); // ERROR : query::userName --> Incomplete type is not alowed for (result::iterator i (r.begin ()); i != r.end (); ++i) { cout << "Hello, " << i->first () << endl; } t.commit (); ---------------User Mapping---------- #include #include #include #include "Role.hxx" typedef Role* Role_ptr; #pragma db object class User { public: friend class odb::access; User(void); User(const int userId, const std::string& userName, const std::string& userPass, Role_ptr ref_Role) : userName_(userName), userId(userId), ref_Role(ref_Role), userPass_(userPass){} ~User(void); const int getUserId() const { return this->userId; } void setUserId(const int Statusode) { this->userId = userId; } const std::string getUserName() const { return this->userName_; } void setUserName(const std::string& userName) { this->userName_ = userName; } const std::shared_ptr getRefRole() const { return this->ref_Role; } void setRefRole(std::shared_ptr ref_Role) { this->ref_Role = ref_Role; } const std::string getUserPass() const { return this->userPass_; } void setUserPass(const std::string& userPass) { this->userPass_ = userPass; } private: #pragma db id #pragma db get(getUserId) set(setUserId) int userId; #pragma db get(getUserName) set(setUserName) std::string userName_; #pragma db get(getUserPass) set(setUserPass) std::string userPass_; #pragma db get(getRefRole) set(setRefRole) std::shared_ptr ref_Role; }; -----------------------Can some help me to fix this please? ---------------- From boris at codesynthesis.com Fri Apr 26 03:31:37 2013 From: boris at codesynthesis.com (Boris Kolpackov) Date: Fri Apr 26 03:31:45 2013 Subject: [odb-users] query::Age --> Incomplete type is not alowed In-Reply-To: References: Message-ID: Hi Tarik, Tarik BENZ writes: > result r (db->query (query::userName == user && query::userPass == password)); > // ERROR : query::userName --> Incomplete type is not alowed Have you enabled query support when compiling User.hxx? You need to pass --generate-query (or -q for short) to the ODB compiler. Boris From tenchu.tarik at hotmail.fr Fri Apr 26 03:38:31 2013 From: tenchu.tarik at hotmail.fr (Tarik BENZ) Date: Fri Apr 26 03:38:39 2013 Subject: [odb-users] query::Age --> Incomplete type is not alowed In-Reply-To: References: , Message-ID: Hi Boris, To compile User.hxx, I used : odb.exe --std c++11 --database mssql --generate-query --generate-schema User.hxx So I think query support should be enabled Tarik > Date: Fri, 26 Apr 2013 09:31:37 +0200 > From: boris@codesynthesis.com > To: tenchu.tarik@hotmail.fr > CC: odb-users@codesynthesis.com > Subject: Re: [odb-users] query::Age --> Incomplete type is not alowed > > Hi Tarik, > > Tarik BENZ writes: > > > result r (db->query (query::userName == user && query::userPass == password)); > > // ERROR : query::userName --> Incomplete type is not alowed > > Have you enabled query support when compiling User.hxx? You need to > pass --generate-query (or -q for short) to the ODB compiler. > > Boris From boris at codesynthesis.com Fri Apr 26 03:56:11 2013 From: boris at codesynthesis.com (Boris Kolpackov) Date: Fri Apr 26 03:56:23 2013 Subject: [odb-users] query::Age --> Incomplete type is not alowed In-Reply-To: References: Message-ID: Tarik BENZ writes: > So I think query support should be enabled Ok, the issue is actually simpler than that: you forgot to include User-odb.hxx: #include "User.hxx" #include "User-odb.hxx" The other two things that you may want to do: 1. Add include guards to User.hxx and Role.hxx, for example: #ifndef USER_HXX #define USER_HXX ... #endif 2. Seeing that you are using std::shared_ptr in relationships, you will need to make it the object pointer. The easiest way to do this is to make it the default object pointer: --default-pointer std::shared_ptr Boris From tenchu.tarik at hotmail.fr Fri Apr 26 04:01:02 2013 From: tenchu.tarik at hotmail.fr (Tarik BENZ) Date: Fri Apr 26 04:01:10 2013 Subject: [odb-users] query::Age --> Incomplete type is not alowed In-Reply-To: References: , Message-ID: Yes, indeed! Thank you very much! Tarik > Date: Fri, 26 Apr 2013 09:56:11 +0200 > From: boris@codesynthesis.com > To: tenchu.tarik@hotmail.fr > CC: odb-users@codesynthesis.com > Subject: Re: [odb-users] query::Age --> Incomplete type is not alowed > > Tarik BENZ writes: > > > So I think query support should be enabled > > Ok, the issue is actually simpler than that: you forgot to include > User-odb.hxx: > > #include "User.hxx" > #include "User-odb.hxx" > > The other two things that you may want to do: > > 1. Add include guards to User.hxx and Role.hxx, for example: > > #ifndef USER_HXX > #define USER_HXX > > ... > > #endif > > > 2. Seeing that you are using std::shared_ptr in relationships, you will > need to make it the object pointer. The easiest way to do this is to > make it the default object pointer: > > --default-pointer std::shared_ptr > > Boris From tenchu.tarik at hotmail.fr Mon Apr 29 12:27:11 2013 From: tenchu.tarik at hotmail.fr (Tarik BENZ) Date: Mon Apr 29 12:27:19 2013 Subject: [odb-users] Error C2766: explicit specialization; 'odb::mssql::default_type_traits' Message-ID: HI, I am trying to compile my project using odb on visual studio and I have this error : Error C2766: explicit specialization; 'odb::mssql::default_type_traits' has already been defined Z:\GestionLabo\ODB\libodb-mssql-2.2.0\odb\mssql\traits.hxx 2131 1 OslLaboratoryManagerApplication I am using this to compile my odb files : http://wiki.codesynthesis.com/Using_ODB_with_Microsoft_Visual_Studio It is a Qt application on visual studio 2012 I would be grateful if there is some one to explain me what is this error! Kind Regard From boris at codesynthesis.com Mon Apr 29 16:09:49 2013 From: boris at codesynthesis.com (Boris Kolpackov) Date: Mon Apr 29 16:09:59 2013 Subject: [odb-users] Error C2766: explicit specialization; 'odb::mssql::default_type_traits' In-Reply-To: References: Message-ID: Hi Tarik, Tarik BENZ writes: > I am trying to compile my project using odb on visual studio and > I have this error : > > Error C2766: explicit specialization; 'odb::mssql::default_type_traits< > unsigned short>' has already been defined My guess is the wchar_t type in your project is not treated as built-in type but rather as a typedef for unsigned short. To fix this, go to Porject Settings, C++, and look for an option to treat wchar_t as a built-in type. I am actually surprised this option is not on in your project since that's the default. Have you maybe turned it off for some reason? Boris From tenchu.tarik at hotmail.fr Tue Apr 30 04:04:46 2013 From: tenchu.tarik at hotmail.fr (Tarik BENZ) Date: Tue Apr 30 04:04:54 2013 Subject: [odb-users] Error C2766: explicit specialization; 'odb::mssql::default_type_traits' In-Reply-To: References: , Message-ID: Hello Boris, Thank you for the response, indeed the problem was from the project settings as you thought. But now I have more than 2000 error when i am compiling my project! It is the same error, this is some examples : Error 2 error LNK2019: unresolved external symbol "public: __thiscall Address::~Address(void)" (??1Address@@QAE@XZ) referenced in function __catch$??$_Resetp@VAddress@@@?$shared_ptr@VAddress@@@std@@AAEXPAVAddress@@@Z$0 D:\svn_checkout\OslLaboratoryManagerApplication\OslLaboratoryManagerApplication\trunk\OslLaboratoryManagerApplication\Account-odb.obj OslLaboratoryManagerApplication OR Error 16 error LNK2001: unresolved external symbol "public: __thiscall Status::~Status(void)" (??1Status@@QAE@XZ) D:\svn_checkout\OslLaboratoryManagerApplication\OslLaboratoryManagerApplication\trunk\OslLaboratoryManagerApplication\Status-odb.obj OslLaboratoryManagerApplication Do you know where this errors could come from? Thank you for your help Tarik > Date: Mon, 29 Apr 2013 22:09:49 +0200 > From: boris@codesynthesis.com > To: tenchu.tarik@hotmail.fr > CC: odb-users@codesynthesis.com > Subject: Re: [odb-users] Error C2766: explicit specialization; 'odb::mssql::default_type_traits' > > Hi Tarik, > > Tarik BENZ writes: > > > I am trying to compile my project using odb on visual studio and > > I have this error : > > > > Error C2766: explicit specialization; 'odb::mssql::default_type_traits< > > unsigned short>' has already been defined > > My guess is the wchar_t type in your project is not treated as built-in > type but rather as a typedef for unsigned short. To fix this, go to > Porject Settings, C++, and look for an option to treat wchar_t as a > built-in type. > > I am actually surprised this option is not on in your project since > that's the default. Have you maybe turned it off for some reason? > > Boris From tenchu.tarik at hotmail.fr Tue Apr 30 04:59:14 2013 From: tenchu.tarik at hotmail.fr (Tarik BENZ) Date: Tue Apr 30 04:59:21 2013 Subject: [odb-users] Error C2766: explicit specialization; 'odb::mssql::default_type_traits' In-Reply-To: References: , , , Message-ID: Hi, To correct the error, I added this libraries to the liker : but it still remains four errors that I don't understand: -error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall ManagerApplication::metaObject(void)const " (?metaObject@ManagerApplication@@UBEPBUQMetaObject@@XZ) -error LNK2001: unresolved external symbol "public: virtual void * __thiscall ManagerApplication::qt_metacast(char const *)" (?qt_metacast@OslLaboratoryManagerApplication@@UAEPAXPBD@Z) -error LNK2001: unresolved external symbol "public: virtual int __thiscall ManagerApplication::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@OslLaboratoryManagerApplication@@UAEHW4Call@QMetaObject@@HPAPAX@Z) -error LNK1120: 3 unresolved externals Thank you in advance for your help, Tarik > From: tenchu.tarik@hotmail.fr > To: boris@codesynthesis.com > Subject: RE: [odb-users] Error C2766: explicit specialization; 'odb::mssql::default_type_traits' > Date: Tue, 30 Apr 2013 10:04:46 +0200 > CC: odb-users@codesynthesis.com > > Hello Boris, > > Thank you for the response, indeed the problem was from the project settings as you thought. > But now I have more than 2000 error when i am compiling my project! > It is the same error, this is some examples : > > Error 2 error LNK2019: unresolved external symbol "public: __thiscall Address::~Address(void)" (??1Address@@QAE@XZ) referenced in function __catch$??$_Resetp@VAddress@@@?$shared_ptr@VAddress@@@std@@AAEXPAVAddress@@@Z$0 D:\svn_checkout\OslLaboratoryManagerApplication\OslLaboratoryManagerApplication\trunk\OslLaboratoryManagerApplication\Account-odb.obj OslLaboratoryManagerApplication > > OR > > Error 16 error LNK2001: unresolved external symbol "public: __thiscall Status::~Status(void)" (??1Status@@QAE@XZ) D:\svn_checkout\OslLaboratoryManagerApplication\OslLaboratoryManagerApplication\trunk\OslLaboratoryManagerApplication\Status-odb.obj OslLaboratoryManagerApplication > > > Do you know where this errors could come from? > > Thank you for your help > > Tarik > > > > Date: Mon, 29 Apr 2013 22:09:49 +0200 > > From: boris@codesynthesis.com > > To: tenchu.tarik@hotmail.fr > > CC: odb-users@codesynthesis.com > > Subject: Re: [odb-users] Error C2766: explicit specialization; 'odb::mssql::default_type_traits' > > > > Hi Tarik, > > > > Tarik BENZ writes: > > > > > I am trying to compile my project using odb on visual studio and > > > I have this error : > > > > > > Error C2766: explicit specialization; 'odb::mssql::default_type_traits< > > > unsigned short>' has already been defined > > > > My guess is the wchar_t type in your project is not treated as built-in > > type but rather as a typedef for unsigned short. To fix this, go to > > Porject Settings, C++, and look for an option to treat wchar_t as a > > built-in type. > > > > I am actually surprised this option is not on in your project since > > that's the default. Have you maybe turned it off for some reason? > > > > Boris > From boris at codesynthesis.com Tue Apr 30 06:03:16 2013 From: boris at codesynthesis.com (Boris Kolpackov) Date: Tue Apr 30 06:03:24 2013 Subject: [odb-users] Error C2766: explicit specialization; 'odb::mssql::default_type_traits' In-Reply-To: References: Message-ID: Hi Tarik, Tarik BENZ writes: > but it still remains four errors that I don't understand: I don't think these errors have anything to do with ODB so I am afraid I won't be able to help you here. As a general rule, you cannot mix object files (and libraries) that are built with different wchar_t options. So it might be a good idea to make sure all your projects have this option on and do a complete rebuild. Boris From tenchu.tarik at hotmail.fr Tue Apr 30 06:05:19 2013 From: tenchu.tarik at hotmail.fr (Tarik BENZ) Date: Tue Apr 30 06:05:27 2013 Subject: [odb-users] Error C2766: explicit specialization; 'odb::mssql::default_type_traits' In-Reply-To: References: , Message-ID: Yes I realized that these errors are due to Qt Thank you for your help Tarik > Date: Tue, 30 Apr 2013 12:03:16 +0200 > From: boris@codesynthesis.com > To: tenchu.tarik@hotmail.fr > CC: odb-users@codesynthesis.com > Subject: Re: [odb-users] Error C2766: explicit specialization; 'odb::mssql::default_type_traits' > > Hi Tarik, > > Tarik BENZ writes: > > > but it still remains four errors that I don't understand: > > I don't think these errors have anything to do with ODB so I am afraid > I won't be able to help you here. > > As a general rule, you cannot mix object files (and libraries) that > are built with different wchar_t options. So it might be a good idea > to make sure all your projects have this option on and do a complete > rebuild. > > Boris From Hugo.Mildenberger at web.de Tue Apr 30 06:56:46 2013 From: Hugo.Mildenberger at web.de (Hugo.Mildenberger@web.de) Date: Tue Apr 30 06:56:51 2013 Subject: [odb-users] ODB and the PostgreSQL asynchronous notification facility Message-ID: <20130430125646.2dcfaffa8f4c43c31ae15796@zotac.lan> Boris, with the NOTIFY / LISTEN statements, PostgreSQL provides the means for the asynchronous notification of its clients connected to the same database. The NOTIFY statement can be issued e.g. by a trigger procedure when a certain table was changed due to update, insert or delete operations. $ psql => =>listen "channel-person"; LISTEN => notify "channel-person", 'update person id 7719992/221231'; NOTIFY Asynchronous notification "channel-person" with payload "update person id 7719992/221231" received from server process with PID 26257. => Would it be possible to extend the PostgreSQL-specific ODB connection object to make it aware of asynchronous messages and call a virtual method upon arrival? As I understood the documentation, asynchronous messages will not arrive during an outstanding transaction. But this does not seem to be true when using "psql-9.2" interactively. I repeatedly got an outstanding notification from another process immediately after "BEGIN" was executed. Yet it may well be that this is only a defect within the "psql" client program. Hugo From boris at codesynthesis.com Tue Apr 30 09:07:12 2013 From: boris at codesynthesis.com (Boris Kolpackov) Date: Tue Apr 30 09:07:19 2013 Subject: [odb-users] ODB and the PostgreSQL asynchronous notification facility In-Reply-To: <20130430125646.2dcfaffa8f4c43c31ae15796@zotac.lan> References: <20130430125646.2dcfaffa8f4c43c31ae15796@zotac.lan> Message-ID: Hi Hugo, Hugo.Mildenberger@web.de writes: > Would it be possible to extend the PostgreSQL-specific ODB connection > object to make it aware of asynchronous messages and call a virtual > method upon arrival? You can already do this. You can derive a custom version of the connection class and you have access to the underlying connection handle. So you can implement whatever logic you need. See pooled_connection as an example. Boris