"splitcsvline undeclared"

35 views
Skip to first unread message

Tim Wintle

unread,
Nov 8, 2010, 5:01:25 AM11/8/10
to szl-users
Hi,

I'm trying to embed szl in a simple C++ app, based on the mapreduce
sample.

I've got the program

string program =
"t:table set(100)[int] of int;"
"fields: array of bytes = splitcsvline(input);"
"index: int = int(string(fields[0]), 10);"
"value: int = int(string(fields[1]), 10);"
"emit t[index] <- value;";

but running sawzall::Executable is giving me the error

"mapper:1: splitcsvline undeclared"

Am I missing a requirement to initialize the intrinsic functions
separately somehow?

p.s. thanks for releasing the code btw :-)

Manisha Jain

unread,
Nov 8, 2010, 11:41:01 AM11/8/10
to szl-...@googlegroups.com
Do you have the dependency on //sawzall/engine/intrinsic:googleintrinsic declared for your target? Seems like you might not be linking in the intrinsics and extensions.

-Manisha

Tim Wintle

unread,
Nov 9, 2010, 4:30:57 AM11/9/10
to szl-...@googlegroups.com
On Mon, 2010-11-08 at 08:41 -0800, Manisha Jain wrote:
> Do you have the dependency
> on //sawzall/engine/intrinsic:googleintrinsic declared for your
> target? Seems like you might not be linking in the intrinsics and
> extensions.

Thanks - I'd assumed they were included in libszl.

Tim

Reply all
Reply to author
Forward
0 new messages