posix - Using sqlite from vala without dependence on glib -


I need to use Sqlite Vapi without any fraud on GLib is I Skyuelit non-library, so it possible.

However, when I try to compile the following file using the - profile posix option,

  Sqlite; Zero Main () {stdout.printf ("Hello, World!"); }  

I get an error message:

  sqlite3.vapi: 357.56-357.59: Error: The symbol `GLib 'could not be found in public int Bind_blob (int index, void * value, int n, gliib, destyotitit nietity nntf); ^^^^ sqlite3.vapi: 362.68-362.71: ERROR: Symbol `GLib 'public int bind_text (int index, owned by string, integer n = -1, GLib.DestroyNotify destroy_notify = GLib.g_free) could not be found ; ^^^^ sqlite3.vapi: 411.42-411.45: ERROR: Symbol `GLib 'public void result_blob could not be found ([] data? Uint8, GLib.DestroyNotify destroy_notify = GLib.g_free); ^^^^ sqlite3.vapi: 420.59-420.62: ERROR: Symbol `GLib 'public void result_text (? String value, int length = -1, GLib.DestroyNotify destroy_notify = GLib.g_free) could not be found; ^^^^ Compilation failed: 4 error (error), 0 warning (s)  

It seems that many of the functions defined in the Squeaky Vapi make reference to GLib G_free and GLib.DestroyNotify symbols do they have a Pausx option?

It should be easy to solve, and I have several solutions.

The announcement of a representative zero DestroyNotify (void * data) (or, depending on the posix.vapi or sqlite3.vapi) and free to bind () in posix.vapi.

The problem is the name space, and you may have to discuss it with a bug file and the developers. If you want to avoid this problem and are ready to go with a solution, just a Mini glib.vapi is the name of GLib, where you only create DestroyNotify (girly) and g_free () (bound to libc / pOSIX free)

I, but could imagine that Sqlite3 GLib should not use, but libc / POSIX so you can only be corrected by modifying posix.vapi and sqlite3.vapi and filed a bug with your patch Should (awesome, a contribution!).


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -