Skip to content

Commit

Permalink
clarify that linker args come last
Browse files Browse the repository at this point in the history
  • Loading branch information
silverhammermba committed Feb 15, 2024
1 parent 4c81c4f commit 0a45a7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _posts/2012-01-01-embed.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include paths for these headers. You will also need to link with the Ruby lib.
On my machine, my minimal compiler options are

{% highlight shell_session %}
$ gcc -I/usr/include/ruby-{{ site.rbversion }}.0 -I/usr/include/ruby-{{ site.rbversion }}.0/x86_64-linux -lruby
$ gcc foo.c -I/usr/include/ruby-{{ site.rbversion }}.0 -I/usr/include/ruby-{{ site.rbversion }}.0/x86_64-linux -lruby
{% endhighlight %}

Though, if available, you should really use `pkg-config` to get the appropriate
Expand Down
2 changes: 1 addition & 1 deletion _test/lib/c_api.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'open3'
require 'tempfile'

BUILD_VERSION = "2.6"
BUILD_VERSION = "3.0"

module CAPI
class Result
Expand Down

0 comments on commit 0a45a7d

Please sign in to comment.