Skip to content
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
Closed

Failed to link when build with C mrbgem #3414

fatihsirin opened this issue Jan 24, 2017 · 3 comments

Comments

@fatihsirin
Copy link

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
Copy link
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
Copy link
Contributor

ksss commented Jan 25, 2017

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

@matz
Copy link
Member

matz commented Mar 4, 2017

The issue seems to be solved.

@matz matz closed this as completed Mar 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants