According to an article on Javalobby (http://www.javalobby.org/java/forums/t88464.html), the iPhone isn’t going to be supplied with a Java development kit. Surely Apple aren’t going to do this to developers? The iPhone looks like a great phone and I can imagine that there would be some great 3rd party Java apps written on it. I was considering getting an iPhone, but if it doesn’t have Java support I may have to rethink my plans.
When compiling small applications, its fairly easy just to compile using g++ from the command line. If you’re compiling anything more complex than a single file, its probably easier to use a Makefile. This example Makefile demonstrates how to compile an application that uses the GTKMM library. NAME=my-app CFLAGS=-g -Wall -o $(NAME) GTKFLAGS=`pkg-config --cflags --libs gtkmm-3.0` SRCS=main.cc myapp.cc CC=g++ # Do all all: main # Compile main: $(SRCS) $(CC) $(CFLAGS) $(SRCS) $(GTKFLAGS) # Clean clean: rm -f $(NAME) rm -f *.h~ rm -f *.cc~ rm -f Makefile~ rm -f *.glade~
Comments
Post a Comment