[ 
https://issues.apache.org/jira/browse/AVRO-1173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13463556#comment-13463556
 ] 

Stefan Langer commented on AVRO-1173:
-------------------------------------

thanks for the hint ... I just tried this with 1.7.2 bundle 
("avro-c-1.7.2.tar.gz")
... it required adding two casts (so, some "void*" to a specific type)
... and there is a unistd.h in avroappend.c, which isn't available on VS2008 
(but also not needed, so just commented that out for my build)
... and I had to tweak cmake_avrolib.bat, I have a non-english Windows so 
"C:\Program Files" is invalid (btw. replacing it with %ProgramFiles% should be 
international afaik)

But beside this tiny tweaks it build really nice ^^
... is it OK to have those infos here? or should I create an jira-entry for 
those?
                
> C++ API for dynamic reading/writing based on schema
> ---------------------------------------------------
>
>                 Key: AVRO-1173
>                 URL: https://issues.apache.org/jira/browse/AVRO-1173
>             Project: Avro
>          Issue Type: Wish
>          Components: c++
>            Reporter: Stefan Langer
>
> When I started looking at Avro I hoped it would offer some API to read values 
> by name/id (or at least get name/id of datum while iterating over all 
> entries).
> When looking at examples for C: 
> http://avro.apache.org/docs/1.6.3/api/c/index.html#_examples
> ... or some Java examples
> There are getters/setters which have name-arguments, and there are 
> Record-objects constructed from schema which help reading/writing data.
> While testing the C++ API, I couldn't find a way to do so with it!
> I'm still not sure if I'm missing some part of the API or if it is just not 
> yet part of the C++ Interface.
> About C API: I could not use it, because it is C99 focused, so it can't be 
> compiled on our VS2008 ... For the C++ API it's just some tiny tweaks to get 
> it running.
> About Generator: I'm not interested in generating code (if I would be there 
> are enough alternatives to Avro ...)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to