Guest User

Untitled

a guest
Jun 22nd, 2012
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Undefined reference to 'main' error in crt1.o function _start
  2. CC := gcc
  3. CXX := g++
  4. LINK := g++ -Wall
  5. CFLAGS := -g
  6. CXXFLAGS := -g
  7.  
  8. TARGET = program
  9.  
  10. $(TARGET): modules.o main.o
  11. $(LINK) -o $@ $< -lpcap
  12.  
  13. clean:
  14. rm *.o $(TARGET)
  15.  
  16. modules.o:
  17. $(CC) $(CFLAGS) -c modules.c -o $@ $<
  18.  
  19. main.o:
  20. $(CXX) $(CXXFLAGS) -c main.cpp -o $@ $<
Advertisement
Add Comment
Please, Sign In to add comment