www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - gcc -E -dD; dstep; sqlite3

reply johannes <johannes.janssens yahoo.com> writes:
doing the following : (sqlite3 version 3400000)

 gcc -E -dD sqlite3ext.h > sqlite3ext.i
 dstep sqlit3ext.i -o/we/sqlite3/package.d
when compiling a program using this interface (import we.sqlite3), I receive Errors like : enum __FLT128_MAX__ = 1.18973149535723176508575932662800702e+4932F128; enum __FLT128_NORM_MAX__ = 1.18973149535723176508575932662800702e+4932F128; enum __FLT128_MIN__ = 3.36210314311209350626267781732175260e-4932F128; enum __FLT128_EPSILON__ = 1.92592994438723585305597794258492732e-34F128; these are enums derived from #define
Dec 08 2022
next sibling parent johannes <johannes.janssens yahoo.com> writes:
/we-/we/sqlite3/package.d(121): Error: semicolon expected 
following auto declaration, not `32`
/we-/we/sqlite3/package.d(121): Error: declaration expected, not 
`32`
/we-/we/sqlite3/package.d(122): Error: semicolon expected 
following auto declaration, not `32`
/we-/we/sqlite3/package.d(122): Error: declaration expected, not 
`32`
/we-/we/sqlite3/package.d(123): Error: semicolon expected 
following auto declaration, not `32`
/we-/we/sqlite3/package.d(123): Error: declaration expected, not 
`32`
/we-/we/sqlite3/package.d(124): Error: semicolon expected 
following auto declaration, not `32`
/we-/we/sqlite3/package.d(124): Error: declaration expected, not 
`32`
/we-/we/sqlite3/package.d(125): Error: number 
`1.40129846432481707092372958328991613e-45f` is not representable
/we-/we/sqlite3/package.d(125): Error: semicolon expected 
following auto declaration, not `32`
/we-/we/sqlite3/package.d(125): Error: declaration expected, not 
`32`
/we-/we/sqlite3/package.d(136): Error: number 
`1.79769313486231570814527423731704357e+308f` is not representable
/we-/we/sqlite3/package.d(136): Error: semicolon expected 
following auto declaration, not `64`
/we-/we/sqlite3/package.d(136): Error: declaration expected, not 
`64`
/we-/we/sqlite3/package.d(137): Error: number 
`1.79769313486231570814527423731704357e+308f` is not representable
/we-/we/sqlite3/package.d(137): Error: semicolon expected 
following auto declaration, not `64`
/we-/we/sqlite3/package.d(137): Error: declaration expected, not 
`64`
/we-/we/sqlite3/package.d(138): Error: number 
`2.22507385850720138309023271733240406e-308f` is not representable
/we-/we/sqlite3/package.d(138): Error: semicolon expected 
following auto declaration, not `64`
/we-/we/sqlite3/package.d(138): Error: declaration expected, not 
`64`
make: *** [makefile:6: sqlite_binding] Fout 1
Compilatie is mislukt.
Dec 08 2022
prev sibling next sibling parent =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 12/8/22 06:28, johannes wrote:

 enum __FLT128_MAX__ = 1.18973149535723176508575932662800702e+4932F128;
That literal is not legal D. The "F128" characters at the end are extra. Besides, D does not have a 128-bit floating point type. Ali (Sorry for double e-mail.)
Dec 08 2022
prev sibling parent Siarhei Siamashka <siarhei.siamashka gmail.com> writes:
On Thursday, 8 December 2022 at 14:28:02 UTC, johannes wrote:
 doing the following : (sqlite3 version 3400000)

 gcc -E -dD sqlite3ext.h > sqlite3ext.i
 dstep sqlit3ext.i -o/we/sqlite3/package.d
when compiling a program using this interface (import we.sqlite3), I receive Errors like : [...]
Have you tried any of the existing sqlite3 wrapper libraries? https://code.dlang.org/search?q=sqlite
Dec 14 2022