dajobe/rasqal

How the "configure wrapper for libsv" is supposed to work ?

Opened this issue · 0 comments

I'm trying to build with MSVC, after solving some problems I have unresolved symbols like rasqal_sv_new.
And I am stuck at understanding these lines:

#define sv_new rasqal_sv_new
#define sv_free rasqal_sv_free
#define sv_set_option rasqal_sv_set_option
#define sv_get_line rasqal_sv_get_line
#define sv_get_header rasqal_sv_get_header
#define sv_parse_chunk rasqal_sv_parse_chunk

https://github.com/dajobe/rasqal/blob/ce52f41f06069b9fb3e5d4ebe6171da206c02d06/src/sv_config.h#L38C16-L38C29

sv_new is declared and defined in libsv so in sv_config.h you are trying to redirect sv_new to rasqal_sv_new ?
However rasqal_sv_new is not defined.

I can imagine that you are trying to do the opposite: redirect rasqal_sv_new to sv_new. However rasqal_sv_new is not used anywhere and I think the code in sv_config.h should be #define rasqal_sv_new sv_new.