Code, Strings, and Keys

    • About Thomas Powell
    • Account
    • It’s been [0] days since [program] last updated
    • Login
    • Password Reset
    • Pianist / Accompanist / Music Director Resume
    • Reading List 2025
    • Register
    • Running Gear – Shoes, Treadmill, and Bandages
    • Site Map
Illustration of a bird flying.
  • Link java to a static library.

    See last post, assume testlib has a void hello(void) function. Step 1: Create a wrapper class.public class TestLibWrapper { public static native void hello(); static { System.loadLibrary(“testlib”); }} Step 2: Compile wrapper class.javac TestLibWrapper.java Step 3: Run javah to create C header and stub file.javah TestLibWrapper Step 4…

    February 8, 2007
  • GNUmakefile for a basic library

    GNUmakefile for a static library, testlib.a, including a single file, hello.c OBJS = hello.o CFILES := ${OBJS:.o=.c}LDFLAGS =ARFLAGS = rcv all:: testlib.a testlib.a: ${OBJS} @$(AR) ${ARFLAGS} $@ $? clean:: @$(RM) ${OBJS} testlib.a

    February 8, 2007
  • More on update-alternatives

    It appears that update-alternatives is a very handy facility in Debian derivatives for keeping track of the preferred application for specific tasks. This seems to be a much SAFER than Windows way of handling things (i.e., let the application try to set itself as the default handler–a la IE vs. Firefox, whatever audio player you…

    February 5, 2007
←Previous Page
1 … 291 292 293 294 295 … 310
Next Page→

Code, Strings, and Keys

Proudly powered by WordPress