Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. undefined reference to `readline'
  2.  
  3. all: stest stestdebug
  4.  
  5. stest: stest.o struct.o
  6. gcc -g stest.o struct.o -lreadline -lncurses -o stest
  7.  
  8. stest.o: stest.c struct.h
  9. gcc -g -c stest.c
  10.  
  11. stestdebug: stestdebug.o struct.o
  12. gcc -g stestdebug.o struct.o -o stestdebug
  13.  
  14. stestdebug.o: stest.c struct.h
  15. gcc -g -c stest.c -o stestdebug.o
  16.  
  17. struct.o: struct.c struct.h
  18. gcc -g -c -DDEBUG struct.c
  19.  
  20. clean:
  21. rm -f *.o stest stestdebug
  22.  
  23. docs:
  24. doxygen
  25. chmod a+r html/*
  26. cp -p html/* ~/public_html/cs2303assig4
  27.  
  28. #include <stdio.h>
  29. #include <stdlib.h>
  30. #include <string.h>
  31. #include <readline/readline.h>
  32. #include <readline/history.h>
  33. #include "struct.h"
  34.  
  35. void requestInput() {
  36. printf("Please fill out all prompts to create a new emplyoee.n");
  37. char *name = readline("Name:");
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement