New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to link when build with C mrbgem #3414

Closed
fatihsirin opened this Issue Jan 24, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@fatihsirin

fatihsirin commented Jan 24, 2017

Hello

Steps:

  1. Clone mruby.

git clone git@github.com:mruby/mruby.git

  1. ./minirake

and result

/home/nope/Desktop/mruby/build/host/lib/libmruby.a(example.o): In function `mrb_mrbgems_example_gem_init': /home/nope/Desktop/mruby/build/mrbgems/mrbgems-example/src/example.c:14: undefined reference to `ARGS_NONE' collect2: error: ld returned 1 exit status /home/nope/Desktop/mruby/build/host/lib/libmruby.a(example.o): In function `mrb_mrbgems_example_gem_init': /home/nope/Desktop/mruby/build/mrbgems/mrbgems-example/src/example.c:14: undefined reference to `ARGS_NONE' collect2: error: ld returned 1 exit status rake aborted! Command Failed: [gcc -o "/home/nope/Desktop/mruby/build/host/bin/mirb" "/home/nope/Desktop/mruby/build/host/mrbgems/mruby-bin-mirb/tools/mirb/mirb.o" "/home/nope/Desktop/mruby/build/host/lib/libmruby.a" -lm ] Rakefile:70:in `block (4 levels) in <top (required)>'

Is my mrbgem.rake wrong? What should I change for build it?
Thanks.

@ksss

This comment has been minimized.

Show comment
Hide comment
@ksss

ksss Jan 25, 2017

Contributor

Did you comment out this line or this line . didn't you?

masuidrive/mrbgems-example@76518e8 seems unmaintained.

It should use MRB_ARGS_NONE instead of ARGS_NONE

Contributor

ksss commented Jan 25, 2017

Did you comment out this line or this line . didn't you?

masuidrive/mrbgems-example@76518e8 seems unmaintained.

It should use MRB_ARGS_NONE instead of ARGS_NONE

@ksss

This comment has been minimized.

Show comment
Hide comment
@ksss

ksss Jan 25, 2017

Contributor

I sent a PR to https://github.com/masuidrive/mrbgems-example.
Please try this branch.

Contributor

ksss commented Jan 25, 2017

I sent a PR to https://github.com/masuidrive/mrbgems-example.
Please try this branch.

matz added a commit that referenced this issue Jan 25, 2017

@matz

This comment has been minimized.

Show comment
Hide comment
@matz

matz Mar 4, 2017

Member

The issue seems to be solved.

Member

matz commented Mar 4, 2017

The issue seems to be solved.

@matz matz closed this Mar 4, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment