From user-return-108-archive-asf-public=cust-asf.ponee.io@arrow.apache.org Thu Mar 21 07:44:11 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 5A8F0180789 for ; Thu, 21 Mar 2019 08:44:10 +0100 (CET) Received: (qmail 21094 invoked by uid 500); 21 Mar 2019 07:44:09 -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 21079 invoked by uid 99); 21 Mar 2019 07:44:09 -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 07:44:09 +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 C3122C23CB for ; Thu, 21 Mar 2019 07:44:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.798 X-Spam-Level: * X-Spam-Status: No, score=1.798 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, SPF_PASS=-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-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id wg80qxgodh7t for ; Thu, 21 Mar 2019 07:44:07 +0000 (UTC) Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 380185F485 for ; Thu, 21 Mar 2019 07:35:15 +0000 (UTC) Received: by mail-io1-f66.google.com with SMTP id x3so4416219iol.10 for ; Thu, 21 Mar 2019 00:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Kkg08heNtKlellqNXmDuehpYpn2PkJSGAvxGMvm64z4=; b=XZMUNVsSIRfi8pYmmZ9JxuhW9l2CFBS8f+GFUfxVXvJntBJaSE5bo7tb7m6mppFoG8 iO2BwAGwx8p6Tz1OEqZRSHLcQcT2N0t3yBBLSrkcAeNmW79LqnKTLyGInHSRAgIc5hTm kE61unrXzUtmFhvPBfTuh6+lvh+uSwbodMGatw27TwHoV4RdYxTpy6WNfZZbA8ZoCcNo n4Vv/DmXFyQczJ7qO1U+HmmwuBH9vBLnMlq4NKOzzWm3bGr8jUaHCEBSSDJPUJHE3uJq 1mXOWtn0vvdkQd1TTooI6R94TQBt76aZxU+80OvW2aFkm52eRthCPwb6Mtb975wHLSJ+ I5JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Kkg08heNtKlellqNXmDuehpYpn2PkJSGAvxGMvm64z4=; b=olA43mTAYbBuwxmUq2qe53ppKzqUOSHxJZSTGC/07SI7I7xIm45Imu6U/cFxiL2ctI u6oVZCMTYctJx77oH8CoeLI1RIshSYbNjqL2xRcG9TIjrBVTfjfw1sE7dVaBRuqiSMtq ciyXZMTMu1ULO3tL8D4AAPfPmL/d3CGBLE6m7nsIvg3OsU7mByw1K3pBU+j1rN7XeyJU H79IBoi/7vIZrVYQuwTFqcSBHGmJr7pORgww2pDEqBiuz1fYQE/6vLmMN43a29bswbZk W39wH+HfwG1qTpTBaTMP1bKDNBG5pAazGCsJFTUW5BRzOQeP87s/R65V0p0I7+TlHeTE PiiQ== X-Gm-Message-State: APjAAAUB4ftTq1ywoY7QkLyiFBteZMxPH0fO4Xg19VxtjJRPx/au3ewz 7CMaE6S3FhL/MoejB1Fa2IgaIV2+PYyRYBAlUwLlC+Dk0PcX1A== X-Google-Smtp-Source: APXvYqx/LlnPdhHYnFztvzg0xI0MT5IgjBAK/Ofe0ae4U6lFGztbDuz+hiIZOPEsatpT1/YAgrgFMs+5clMlKycxH6s= X-Received: by 2002:a6b:510f:: with SMTP id f15mr1643411iob.59.1553153714090; Thu, 21 Mar 2019 00:35:14 -0700 (PDT) MIME-Version: 1.0 From: Nirmala S Date: Thu, 21 Mar 2019 13:04:59 +0530 Message-ID: Subject: default memory pool in macOS To: user@arrow.apache.org Content-Type: multipart/alternative; boundary="00000000000068f78f058495c735" --00000000000068f78f058495c735 Content-Type: text/plain; charset="UTF-8" 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 = arrow::default_memory_pool(); arrow::Status status = 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 --00000000000068f78f058495c735 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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.=C2=A0
<= div>
My code looks like below
int initializeArrow(int64_t memSize, u=
int8_t **memStart) {
arr= ow::MemoryPool* pool =3D= arrow::default_memory_pool();<= br>
arrow::Status status =3D pool->Allocate(memSiz= e, memStart);
if= (status.ok()) {
return 0;
= }

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

Undefined symbols for architecture x86_64:
=C2=A0 "arrow::default_memory_pool()= ", referenced from:
= =C2=A0 =C2=A0 =C2=A0 initializeArrow(long long, unsigned char**) in main.cp= p.o
ld: symbol(s) not found= for architecture x86_64
cl= ang: error: linker command failed with exit code 1 (use -v to see invocatio= n)

I looked into=C2=A0htt= ps://arrow.apache.org/docs/cpp/examples.html#row-to-columnar-conversion= as well older stuff on the user mailing=C2=A0list without avail. Can someo= ne help ?

Thanks in advance
Nirmala



--00000000000068f78f058495c735--