Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1> g++ -DWN -g -ffunction-sections -O0 -c -Wall -fmessage-length=0 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z -Werror=return-type -g vidstream.cpp -o vidstream.o
- 1> g++ -DWN -g -ffunction-sections -O0 -c -Wall -fmessage-length=0 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z -Werror=return-type -g VideoStreamer.cpp -o VideoStreamer.o
- 1> g++ -g -o ../vidstream vidstream.o VideoStreamer.o -lc -l:libswscale.a -l:libavformat.a -l:libavcodec.a -l:libavutil.a -lstdc++
- 1> /usr/lib/gcc/i686-linux-gnu/4.9/../../../i386-linux-gnu/libavformat.a(http.o): In function `http_read_header':
- 1> (.text+0xac1): undefined reference to `inflateEnd'
- // ...
- 1> /usr/lib/gcc/i686-linux-gnu/4.9/../../../i386-linux-gnu/libavcodec.a(libgsmdec.o): In function `libgsm_flush':
- 1> (.text+0x28): undefined reference to `gsm_create'
- 1> /usr/lib/gcc/i686-linux-gnu/4.9/../../../i386-linux-gnu/libavcodec.a(libgsmdec.o): In function `libgsm_flush':
- 1> (.text+0x5c): undefined reference to `gsm_option'
- 1> /usr/lib/gcc/i686-linux-gnu/4.9/../../../i386-linux-gnu/libavcodec.a(libgsmdec.o): In function `libgsm_decode_frame':
- 1> (.text+0x103): undefined reference to `gsm_decode'
- //...
- // make file snippet
- CXX = g++
- CC = gcc
- LinkOptions = -lc -l:libswscale.a -l:libavformat.a -l:libavcodec.a -l:libavutil.a -lstdc++
- $(TARGET): $(OBJECTS)
- $(CXX) $(DEBUGGINGFLAG) -o $(TARGET) $(OBJECTS) $(LinkOptions)
- %.o: %.c
- $(CC) $(CCFLAGS) $(DEBUGGINGFLAG) $< -o $@
- %.o: %.cpp
- $(CXX) $(CXXFLAGS) $(DEBUGGINGFLAG) $< -o $@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement