Advertisement
itsthatblackkidd

Build Erros

May 24th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. heku@sheku-Ubuntu:~/hdd/University/FirstYear/COS10009/Despacito Chat$ .//build.sh
  2. --------------------------------------------------
  3. Creating Despacito Chat
  4. for Linux
  5. --------------------------------------------------
  6. Running script from /home/sheku/hdd/University/FirstYear/COS10009/Despacito Chat
  7. Saving output to ./bin/Debug
  8. Compiler flags -I./lib/ -std=c99 -g -Wall
  9. --------------------------------------------------
  10. ... Creating Despacito Chat
  11. ... Compiling Animations
  12. ... Compiling Utils
  13. ... Compiling Images
  14. ... Compiling Physics
  15. ... Compiling Colors
  16. ... Compiling UserInterface
  17. ... Compiling Arduino
  18. ... Compiling Characters
  19. ... Compiling SGSDK
  20. ... Compiling Text
  21. ... Compiling Camera
  22. ... Compiling Audio
  23. ... Compiling Timers
  24. ... Compiling Graphics
  25. ... Compiling Input
  26. ... Compiling Sprites
  27. ... Compiling Geometry
  28. ... Compiling Networking
  29. ... Compiling Resources
  30. ... Compiling main
  31. ./src/./main.c:40:28: warning: incompatible pointer types passing 'char *[456]' to parameter of type 'char *' [-Wincompatible-pointer-types]
  32. read_message(peer, received_message);
  33. ^~~~~~~~~~~~~~~~
  34. ./lib/Networking.h:50:49: note: passing argument to parameter 'result' here
  35. void read_message(connection aConnection, char *result);
  36. ^
  37. ./src/./main.c:41:16: warning: incompatible pointer types passing 'char *[456]' to parameter of type 'const char *' [-Wincompatible-pointer-types]
  38. printf(received_message);
  39. ^~~~~~~~~~~~~~~~
  40. /usr/include/stdio.h:318:43: note: passing argument to parameter '__format' here
  41. extern int printf (const char *__restrict __format, ...);
  42. ^
  43. ./src/./main.c:41:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  44. printf(received_message);
  45. ^~~~~~~~~~~~~~~~
  46. ./src/./main.c:41:16: note: treat the string as an argument to avoid this
  47. printf(received_message);
  48. ^
  49. "%s",
  50. ./src/./main.c:122:46: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  51. unsigned int portnum = strtouint(portbox->content_string);
  52. ^~~~~~~~~~~~~~~~~~~~~~~
  53. ./src/./local/helper.c:8:30: note: passing argument to parameter 'st' here
  54. unsigned int strtouint(char *st) {
  55. ^
  56. ./src/./main.c:137:46: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  57. unsigned int portnum = strtouint(portbox->content_string);
  58. ^~~~~~~~~~~~~~~~~~~~~~~
  59. ./src/./local/helper.c:8:30: note: passing argument to parameter 'st' here
  60. unsigned int strtouint(char *st) {
  61. ^
  62. ./src/./main.c:141:40: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  63. peer = connect_as_peer(hostbox->content_string,portnum);
  64. ^~~~~~~~~~~~~~~~~~~~~~~
  65. ./src/./main.c:58:34: note: passing argument to parameter 'host' here
  66. connection connect_as_peer(char* host, int port) {
  67. ^
  68. ./src/./main.c:149:30: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  69. send_message(message->content_string,peer);
  70. ^~~~~~~~~~~~~~~~~~~~~~~
  71. ./src/./main.c:31:25: note: passing argument to parameter 'message' here
  72. void send_message(char *message, connection peer) {
  73. ^
  74. 7 warnings generated.
  75. ... Creating game
  76. /usr/bin/ld: cannot find -lsgsdk
  77. clang: error: linker command failed with exit code 1 (use -v to see invocation)
  78. Error creating game
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement