Advertisement
Guest User

Untitled

a guest
Dec 21st, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. 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
  2. 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
  3. 1> g++ -g -o ../vidstream vidstream.o VideoStreamer.o -lc -l:libswscale.a -l:libavformat.a -l:libavcodec.a -l:libavutil.a -lstdc++
  4. 1> /usr/lib/gcc/i686-linux-gnu/4.9/../../../i386-linux-gnu/libavformat.a(http.o): In function `http_read_header':
  5. 1> (.text+0xac1): undefined reference to `inflateEnd'
  6.  
  7. // ...
  8.  
  9. 1> /usr/lib/gcc/i686-linux-gnu/4.9/../../../i386-linux-gnu/libavcodec.a(libgsmdec.o): In function `libgsm_flush':
  10. 1> (.text+0x28): undefined reference to `gsm_create'
  11. 1> /usr/lib/gcc/i686-linux-gnu/4.9/../../../i386-linux-gnu/libavcodec.a(libgsmdec.o): In function `libgsm_flush':
  12. 1> (.text+0x5c): undefined reference to `gsm_option'
  13. 1> /usr/lib/gcc/i686-linux-gnu/4.9/../../../i386-linux-gnu/libavcodec.a(libgsmdec.o): In function `libgsm_decode_frame':
  14. 1> (.text+0x103): undefined reference to `gsm_decode'
  15.  
  16. //...
  17.  
  18.  
  19. // make file snippet
  20. CXX = g++
  21. CC = gcc
  22. LinkOptions = -lc -l:libswscale.a -l:libavformat.a -l:libavcodec.a -l:libavutil.a -lstdc++
  23.  
  24. $(TARGET): $(OBJECTS)
  25. $(CXX) $(DEBUGGINGFLAG) -o $(TARGET) $(OBJECTS) $(LinkOptions)
  26.  
  27. %.o: %.c
  28. $(CC) $(CCFLAGS) $(DEBUGGINGFLAG) $< -o $@
  29.  
  30. %.o: %.cpp
  31. $(CXX) $(CXXFLAGS) $(DEBUGGINGFLAG) $< -o $@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement