Skip to content

compilation problem #2

@RobinHankin

Description

@RobinHankin

Hi there blynn (I am still a little unsure of github etiquette; apologies if I'm not getting it right).

I followed the instructions in dlx/README.asciidoc but encountered some errors. Following edited slightly for clarity:

rstudio % git clone https://github.com/blynn/blt
Cloning into 'blt'...
[snip]
rstudio % git clone https://github.com/blynn/dlx
Cloning into 'dlx'...
[snip]
rstudio % cd dlx
dlx % make
cc -O3 --std=gnu99 -Wall -o grizzly grizzly.c dlx.c -I ../blt ../blt/blt.c
In file included from grizzly.c:19:
../blt/blt.h:65:21: error: function definition is not allowed here
  int f(BLT_IT *it) { return fun(it), 1; }
                    ^
../blt/blt.h:66:28: error: use of undeclared identifier 'f'
  blt_allprefixed(blt, "", f);
                           ^
[other similar errors here]

I'm on macos 10.13.6. Can you advise?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions