Try this:

  gcc -o hello_world hello_world.c $(pkg-config --libs --cflags arrow-glib)




On Wed, Dec 18, 2019 at 1:07 PM Chengxin Ma (Jira) <j...@apache.org> wrote:
>
> Chengxin Ma created ARROW-7434:
> ----------------------------------
>
>              Summary: [GLib] Homebrew packages seem not working
>                  Key: ARROW-7434
>                  URL: https://issues.apache.org/jira/browse/ARROW-7434
>              Project: Apache Arrow
>           Issue Type: Bug
>           Components: GLib
>     Affects Versions: 0.15.1
>          Environment: macOS 10.15.2
>             Reporter: Chengxin Ma
>
>
> After installing {{apache-arrow}} and {{apache-arrow-glib}} via {{Homebrew}} 
> according to the [Installation Guide|https://arrow.apache.org/install/], I 
> wrote a very simple program to test if they were successfully installed.
>
> {code}
> $ cat hello_world.c
> #include <stdio.h>
>
> #include <arrow-glib/arrow-glib.h>
>
> int main(int argc, char **argv) {
>     printf("Hello, World! \n");
> }
> {code}
>
> {{gcc}} gave the following error:
>
> {code}
> $ gcc -o hello_world hello_world.c
> In file included from hello_world.c:3:
> In file included from /usr/local/include/arrow-glib/arrow-glib.h:22:
> /usr/local/include/arrow-glib/gobject-type.h:22:10: fatal error: 
> 'glib-object.h' file not found
> #include <glib-object.h>
>          ^~~~~~~~~~~~~~~
> 1 error generated.
> {code}
>
> Is there any step that I didn’t follow here?
>
>
>
>
> --
> This message was sent by Atlassian Jira
> (v8.3.4#803005)

Reply via email to