Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- heku@sheku-Ubuntu:~/hdd/University/FirstYear/COS10009/Despacito Chat$ .//build.sh
- --------------------------------------------------
- Creating Despacito Chat
- for Linux
- --------------------------------------------------
- Running script from /home/sheku/hdd/University/FirstYear/COS10009/Despacito Chat
- Saving output to ./bin/Debug
- Compiler flags -I./lib/ -std=c99 -g -Wall
- --------------------------------------------------
- ... Creating Despacito Chat
- ... Compiling Animations
- ... Compiling Utils
- ... Compiling Images
- ... Compiling Physics
- ... Compiling Colors
- ... Compiling UserInterface
- ... Compiling Arduino
- ... Compiling Characters
- ... Compiling SGSDK
- ... Compiling Text
- ... Compiling Camera
- ... Compiling Audio
- ... Compiling Timers
- ... Compiling Graphics
- ... Compiling Input
- ... Compiling Sprites
- ... Compiling Geometry
- ... Compiling Networking
- ... Compiling Resources
- ... Compiling main
- ./src/./main.c:40:28: warning: incompatible pointer types passing 'char *[456]' to parameter of type 'char *' [-Wincompatible-pointer-types]
- read_message(peer, received_message);
- ^~~~~~~~~~~~~~~~
- ./lib/Networking.h:50:49: note: passing argument to parameter 'result' here
- void read_message(connection aConnection, char *result);
- ^
- ./src/./main.c:41:16: warning: incompatible pointer types passing 'char *[456]' to parameter of type 'const char *' [-Wincompatible-pointer-types]
- printf(received_message);
- ^~~~~~~~~~~~~~~~
- /usr/include/stdio.h:318:43: note: passing argument to parameter '__format' here
- extern int printf (const char *__restrict __format, ...);
- ^
- ./src/./main.c:41:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
- printf(received_message);
- ^~~~~~~~~~~~~~~~
- ./src/./main.c:41:16: note: treat the string as an argument to avoid this
- printf(received_message);
- ^
- "%s",
- ./src/./main.c:122:46: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
- unsigned int portnum = strtouint(portbox->content_string);
- ^~~~~~~~~~~~~~~~~~~~~~~
- ./src/./local/helper.c:8:30: note: passing argument to parameter 'st' here
- unsigned int strtouint(char *st) {
- ^
- ./src/./main.c:137:46: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
- unsigned int portnum = strtouint(portbox->content_string);
- ^~~~~~~~~~~~~~~~~~~~~~~
- ./src/./local/helper.c:8:30: note: passing argument to parameter 'st' here
- unsigned int strtouint(char *st) {
- ^
- ./src/./main.c:141:40: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
- peer = connect_as_peer(hostbox->content_string,portnum);
- ^~~~~~~~~~~~~~~~~~~~~~~
- ./src/./main.c:58:34: note: passing argument to parameter 'host' here
- connection connect_as_peer(char* host, int port) {
- ^
- ./src/./main.c:149:30: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
- send_message(message->content_string,peer);
- ^~~~~~~~~~~~~~~~~~~~~~~
- ./src/./main.c:31:25: note: passing argument to parameter 'message' here
- void send_message(char *message, connection peer) {
- ^
- 7 warnings generated.
- ... Creating game
- /usr/bin/ld: cannot find -lsgsdk
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
- Error creating game
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement