- lynx
- w3m
- links
Textbrowser
Leave a reply
Schon viele male habe ich beim Linken solch eine Fehlermeldung bekommen:
main.c:(.text+0x4b908): undefined reference to `clock_gettime'
Lösung kann sein, dass alle Object-Dateien VOR den Libraries sein müssen:
$ gcc main.o -lpthread -lr -o main
TOPLEVEL = . SUBDIRS = \ obj all : all_sub Aufgabe9 include $(TOPLEVEL)/Makefile.inc STATIC_LIBRARY = obj/lib.a \ obj/planet/lib.a Aufgabe9 : $(STATIC_LIBRARY) $(CC) -o $@ obj/main.o $(STATIC_LIBRARY) $(LDFLAGS)
CC = g++ AR = ar CFLAGS = `sdl-config --cflags` -I/usr/glew/include -I$(TOPLEVEL)/include -D_REENTRANT -Wall -std=gnu++0x LDFLAGS = `sdl-config --libs` -L/usr/glew/lib -lopengl32 -lglu32 -lglew32 -lSDL_ttf OBJECT = $(SOURCES:%.cxx=%.o) # CFLAGS = -IC:\MinGW\msys\1.0\libsdl\include\SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -I$(TOPLEVEL)/include -D_REENTRANT -Wall # LDFLAGS = -LC:\MinGW\msys\1.0\libsdl\lib -lmingw32 -lSDLmain -lSDL -mwindows -lopengl32 -lglu32 -lSDL_ttf all_sub: if test "$(SUBDIRS)" != ""; then \ for subdir in $(SUBDIRS); do \ (cd $$subdir; make all); \ done; \ fi; clean: clean_sub rm -f *.o *.a $(CLEANFILES) clean_sub: if test "$(SUBDIRS)" != ""; then \ for subdir in $(SUBDIRS); do \ (cd $$subdir; make clean); \ done; \ fi; $(LIBRARY): $(OBJECT) $(AR) rcu $(LIBRARY) $(OBJECT) # $(AR) rcs $(LIBRARY) $(OBJECT) %.o: $(TOPLEVEL)/$(CURRENT)/%.cxx $(CC) -c $(CFLAGS) $< .SILENT: all_sub clean_sub
CURRENT = src TOPLEVEL = .. LIBRARY = lib.a SUBDIRS = \ planet SOURCES = \ main.cxx \ GLSL.cxx \ textfile.cxx \ Vector.cxx \ Matrix.cxx \ Keyboard.cxx \ Settings.cxx \ Game.cxx \ Camera.cxx \ Light.cxx \ Texture.cxx \ TextureFactory.cxx \ World.cxx \ text.cxx \ Debug.cxx \ 3ds.cxx \ Ship.cxx \ Shot.cxx \ Billboard.cxx \ Explosion.cxx \ DisplayList.cxx include $(TOPLEVEL)/Makefile.inc all: all_sub $(LIBRARY)
CURRENT = src/planet TOPLEVEL = ../.. LIBRARY = lib.a SUBDIRS = SOURCES = \ Planet.cxx \ Ring.cxx \ Sun.cxx \ Earth.cxx \ EarthMoon.cxx \ Jupiter.cxx \ Mars.cxx \ Mercury.cxx \ Neptun.cxx \ Pluto.cxx \ Saturn.cxx \ Saturnring.cxx \ Uranus.cxx \ Venus.cxx include $(TOPLEVEL)/Makefile.inc all: all_sub $(LIBRARY)
http://www.linuxtutorialblog.com/post/introduction-using-diff-and-patch-tutorial
$ diff -rq dir1 dir2
-r --recursive Recursively compare any subdirectories found. -q --brief Output only whether files differ.
$ man bc $ bc bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. scale=10 1/1000000 .0000010000 obase=16 ibase=2 11010001 D1
mount -o bind /proc /home/hsr/root/proc sudo mount -o bind /proc /home/andreas/jailroot/proc sudo mount -o bind /dev /home/andreas/jailroot/dev sudo mount -o bind /sys /home/andreas/jailroot/sys sudo mount -o bind /run /home/andreas/jailroot/run
Advanced Bash-Scripting Guide – External Filters, Programs and Commands