AP compiles but does not link