From user-return-110-archive-asf-public=cust-asf.ponee.io@arrow.apache.org Thu Mar 21 13:08:50 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 01226180621 for ; Thu, 21 Mar 2019 14:08:49 +0100 (CET) Received: (qmail 89462 invoked by uid 500); 21 Mar 2019 13:08:49 -0000 Mailing-List: contact user-help@arrow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@arrow.apache.org Delivered-To: mailing list user@arrow.apache.org Received: (qmail 89450 invoked by uid 99); 21 Mar 2019 13:08:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Mar 2019 13:08:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A25C6C0597 for ; Thu, 21 Mar 2019 13:08:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.801 X-Spam-Level: * X-Spam-Status: No, score=1.801 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Xp6SKFboPhgr for ; Thu, 21 Mar 2019 13:08:47 +0000 (UTC) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 6B04C5F244 for ; Thu, 21 Mar 2019 13:08:46 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id q206so4162981pgq.4 for ; Thu, 21 Mar 2019 06:08:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=i/8DizMjvGCDs8qlGh851vMnqg35CrqGcJz9WZi2/d4=; b=ZbUoJOHKKwr15NJ/QGt3p6Dxr1+9zA2L/yWQhU2XIEp1e4hSl1aCZ0XFk8ajNMCzZE 0juYCX3PXCjsb09Wz/hqH/K+w9U25L3tIcj9HhNtwE2H0CUGJtz93fgSKrmOp2y2BcFL uG/8ej+6zo1nUgMtKwHyWUuw+11UYA8gNwW8BQQMYlhiYwf9nPYZJBV6UrjmmOrQsw81 s5P2KYhRUJV4v2PhIc2jpKGIslCtDujGjRJ3SM7kMf3W1o0XPuqSsQEHX1y8aqsThkEg GZeL9eA8MFzOpkYM0Latf5r0hLy51t4EietL8utAxXs0tdfBS0TC8xkFkYSSdfFKPNk6 fMxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=i/8DizMjvGCDs8qlGh851vMnqg35CrqGcJz9WZi2/d4=; b=moW/GaiG3UKbFH6JGNhWvO7Mbh0QR1yrL0N3zZACMBYO1lDJ50qfKTKWiA/esxVLh7 1O965uY+/shZRlgWRytesT07eX+RaAt0EuQf6o6d8cN6PPaGdBElcPP7TAKjZp3/tbF8 CsueQ6j4E+iBhml46VHRhin9Voo/of2kPcCYAPJ4KTe54vPmvYviChkagF250QtXNhyz qbuQt8E0R4ZsMsCoULe0DT10F3gaVvCUEqpFf5SUQgxRTWt9ZwPi0U72zsKQbz1PfCc5 mjqaJ2/Mv+TWEP6WDV5+4vhn0yFYu5RfEwlLrKCqCRfO5qACmQYhM8Is9c3r2A10HWQK yJ4w== X-Gm-Message-State: APjAAAW974evZzOEV4gRZbZVpPQP/TFoyrxJVvxj83Oeo/bBkG01z0oC T/lK13JUD2/KG9pGaSc9BapS3LsY X-Google-Smtp-Source: APXvYqzODTCX6eHkCyrCSmdpgETfKkCgAhTmaxIQWKOw88ssjX71UDTmRuokCpsEsjbjlz+dWwBJYQ== X-Received: by 2002:a62:168a:: with SMTP id 132mr3195238pfw.155.1553173725428; Thu, 21 Mar 2019 06:08:45 -0700 (PDT) Received: from [172.16.100.101] ([49.206.0.21]) by smtp.gmail.com with ESMTPSA id i64sm6671004pfb.112.2019.03.21.06.08.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 06:08:44 -0700 (PDT) From: Nirmala S Content-Type: multipart/alternative; boundary="Apple-Mail=_6E42B6CC-EF36-42FC-82B3-ECB216B76A7F" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: default memory pool in macOS Date: Thu, 21 Mar 2019 18:38:37 +0530 References: <4299be07-5d16-4a0e-abf2-37c94bc37e41@www.fastmail.com> To: user@arrow.apache.org In-Reply-To: <4299be07-5d16-4a0e-abf2-37c94bc37e41@www.fastmail.com> Message-Id: <972035A8-8FCB-4A78-A498-2D52C3BCDFFC@gmail.com> X-Mailer: Apple Mail (2.3445.9.1) --Apple-Mail=_6E42B6CC-EF36-42FC-82B3-ECB216B76A7F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Thanks Uwe, After fiddling around a bit with makefile, I got it right, linking the = library was missing. > On 21-Mar-2019, at 6:37 PM, Uwe L. Korn wrote: >=20 > Hello Nirmala, >=20 > this looks like you're missing to link to libarrow.dylib. Can you = share your compile command? You're most likely missing a -larrow in = there. >=20 > Uwe >=20 > On Thu, Mar 21, 2019, at 8:44 AM, Nirmala S wrote: >> Hi, >>=20 >> I am a newbie to Arrow. I am trying to create a default memory pool = and use it to allocate, store and read some stuff using C++ libraries.=20= >>=20 >> My code looks like below >> int initializeArrow(int64_t memSize, uint8_t **memStart) { >> arrow::MemoryPool* pool =3D arrow::default_memory_pool(); >>=20 >> arrow::Status status =3D pool->Allocate(memSize, memStart); >> if (status.ok()) { >> return 0; >> } >>=20 >> return 1; >> } >> I am getting an error like below, >>=20 >> Undefined symbols for architecture x86_64: >> "arrow::default_memory_pool()", referenced from: >> initializeArrow(long long, unsigned char**) in main.cpp.o >> ld: symbol(s) not found for architecture x86_64 >> clang: error: linker command failed with exit code 1 (use -v to see = invocation) >>=20 >> I looked into = https://arrow.apache.org/docs/cpp/examples.html#row-to-columnar-conversion= = as well older stuff on the user mailing list without avail. Can = someone help ? >>=20 >> Thanks in advance >> Nirmala --Apple-Mail=_6E42B6CC-EF36-42FC-82B3-ECB216B76A7F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Thanks Uwe,

After fiddling around a bit with makefile, I got it right, = linking the library was missing.

On = 21-Mar-2019, at 6:37 PM, Uwe L. Korn <uwelk@xhochy.com> = wrote:

Hello = Nirmala,

this = looks like you're missing to link to libarrow.dylib. Can you share your = compile command? You're most likely missing a -larrow in there.

Uwe

On = Thu, Mar 21, 2019, at 8:44 AM, Nirmala S wrote:
Hi,

I = am a newbie to Arrow. I am trying to create a default memory pool and = use it to allocate, store and read some stuff using C++ = libraries. 

My code looks like below
int = initializeArrow(int64_t memSize, uint8_t **memStart) {
arrow::MemoryPool* pool =3D arrow::default_memory_pool();

arrow::Status status =3D = pool->Allocate(memSize, memStart);
= if (status.ok()) {
return 0;
}

return 1;
}
I am getting an error like below,

Undefined symbols = for architecture x86_64:
  = "arrow::default_memory_pool()", referenced from:
      = initializeArrow(long long, unsigned char**) in main.cpp.o
ld: symbol(s) not found for = architecture x86_64
clang: error: = linker command failed with exit code 1 (use -v to see = invocation)

I looked into https://arrow.apache.org/docs/cpp/examples.html#row-to-columnar= -conversion as = well older stuff on the user mailing list without avail. Can = someone help ?

Thanks in advance
Nirmala
=

= --Apple-Mail=_6E42B6CC-EF36-42FC-82B3-ECB216B76A7F--