g++ -Wl,-rpath,/usr/local/qt-x11-free-3.2.3/lib /* Tells g++ to run the linker, and pass these options to ld.*/ -o hw7 /* Specify the output to be called hw7. */ .obj/address.o .obj/ca_address.o .obj/constraintgroup.o .obj/customer.o .obj/dataobject.o .obj/dataobjectfactory.o .obj/hw07-demo.o .obj/us_address.o .obj/moc_address.o /* Link these object files into the executable. */ .obj/moc_ca_address.o .obj/moc_customer.o .obj/moc_dataobject.o .obj/moc_us_address.o -L/usr/local/qt-x11-free-3.2.3/lib -L/usr/X11R6/lib -L/usr/local/utils/lib /* Add another location for the linker to search for libraries. */ -lutils -lqt -lXext -lX11 -lm /* Link this app with five more libraries: qt utils, ext, X11, and m. */