[odb-users] HelloWorld: runtime error

CanisMajorWuff canismajorwuff at gmail.com
Fri Apr 5 09:19:16 EDT 2013


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<odb::database> 
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 
<http://gnu.org/licenses/gpl.html>
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:
<mingw-w64-public at lists.sourceforge.net>...
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,



More information about the odb-users mailing list