From 0a45a7d36a95466a6e576706cb61ae6eb02294e9 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 14 Feb 2024 20:38:22 -0500 Subject: [PATCH] clarify that linker args come last --- _posts/2012-01-01-embed.markdown | 2 +- _test/lib/c_api.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_posts/2012-01-01-embed.markdown b/_posts/2012-01-01-embed.markdown index 646fe06..dda9dbb 100644 --- a/_posts/2012-01-01-embed.markdown +++ b/_posts/2012-01-01-embed.markdown @@ -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 diff --git a/_test/lib/c_api.rb b/_test/lib/c_api.rb index 422cbb3..575476a 100644 --- a/_test/lib/c_api.rb +++ b/_test/lib/c_api.rb @@ -1,7 +1,7 @@ require 'open3' require 'tempfile' -BUILD_VERSION = "2.6" +BUILD_VERSION = "3.0" module CAPI class Result