From a6f1b92b6387b9246149e4cc78714b71f80106aa Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 10 Oct 2008 18:08:01 -0600 Subject: [PATCH] additional readme.txt embedding example clarification --- readme.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 65ac99ce70..d31022e1f0 100644 --- a/readme.txt +++ b/readme.txt @@ -235,9 +235,17 @@ main(int ac, const char** av) return exitCode; } EOF + +on Linux: + $ g++ -I$JAVA_HOME/include -I$JAVA_HOME/include/linux \ + -D_JNI_IMPLEMENTATION_ -c main.cpp -o main.o + +on Mac OS X: $ g++ -I$JAVA_HOME/include -D_JNI_IMPLEMENTATION_ -c main.cpp -o main.o -Add -I$JAVA_HOME/include/win32 to the above when building on Windows. +on Windows: + $ g++ -I$JAVA_HOME/include -I$JAVA_HOME/include/win32 \ + -D_JNI_IMPLEMENTATION_ -c main.cpp -o main.o Step 5: Link the objects produced above to produce the final