almost final

This commit is contained in:
emilekm2142 2019-10-31 16:35:28 +01:00
parent 5f86e80252
commit 146a549215
36 changed files with 608 additions and 450 deletions

1
.idea/.name Normal file
View File

@ -0,0 +1 @@
ProjektDSIK

4
.idea/encodings.xml Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with NO BOM" />
</project>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="SerialMonitorSettings" BaudRate="9600" LineEndingsIndex="0" />
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -11,7 +11,37 @@
</configurations> </configurations>
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="97f792d3-056a-4080-95c1-9466c7ec0ade" name="Default Changelist" comment="" /> <list default="true" id="97f792d3-056a-4080-95c1-9466c7ec0ade" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/Player.h" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/CMakeLists.txt" beforeDir="false" afterPath="$PROJECT_DIR$/CMakeLists.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeCache.txt" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeCache.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/3.14.3/CMakeCCompiler.cmake" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/3.14.3/CMakeDetermineCompilerABI_C.bin" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/3.14.3/CMakeSystem.cmake" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/3.14.3/CompilerIdC/CMakeCCompilerId.c" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/3.14.3/CompilerIdC/a.out" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/CMakeDirectoryInformation.cmake" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/CMakeDirectoryInformation.cmake" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/CMakeOutput.log" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/CMakeOutput.log" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/Makefile.cmake" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/Makefile.cmake" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/Makefile2" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/Makefile2" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/C.includecache" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/C.includecache" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/DependInfo.cmake" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/DependInfo.cmake" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/build.make" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/build.make" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/depend.internal" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/depend.internal" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/depend.make" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/depend.make" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/flags.make" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/flags.make" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/link.txt" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/link.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/main.c.o" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/TargetDirectories.txt" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/TargetDirectories.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/clion-log.txt" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/clion-log.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/feature_tests.bin" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/feature_tests.bin" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/Makefile" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/Makefile" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/ProjektDSIK" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/ProjektDSIK" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/ProjektDSIK.cbp" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/ProjektDSIK.cbp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake-build-debug/cmake_install.cmake" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/cmake_install.cmake" afterDir="false" />
<change beforePath="$PROJECT_DIR$/main.c" beforeDir="false" afterPath="$PROJECT_DIR$/main.c" afterDir="false" />
</list>
<ignored path="$PROJECT_DIR$/cmake-build-debug/" /> <ignored path="$PROJECT_DIR$/cmake-build-debug/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
@ -24,17 +54,21 @@
</component> </component>
<component name="ExecutionTargetManager" SELECTED_TARGET="CMakeBuildProfile:Debug" /> <component name="ExecutionTargetManager" SELECTED_TARGET="CMakeBuildProfile:Debug" />
<component name="FileEditorManager"> <component name="FileEditorManager">
<leaf> <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/CMakeLists.txt"> <entry file="file://$PROJECT_DIR$/CMakeLists.txt">
<provider selected="true" editor-type-id="text-editor" /> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="75">
<caret line="5" column="60" lean-forward="true" selection-start-line="5" selection-start-column="60" selection-end-line="5" selection-end-column="60" />
</state>
</provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/main.c"> <entry file="file://$PROJECT_DIR$/main.c">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="462"> <state relative-caret-position="45">
<caret line="22" column="21" selection-start-line="22" selection-start-column="21" selection-end-line="22" selection-end-column="21" /> <caret line="32" column="4" selection-start-line="32" selection-start-column="4" selection-end-line="32" selection-end-column="4" />
<folding> <folding>
<element signature="e#0#18#0" expanded="true" /> <element signature="e#0#18#0" expanded="true" />
</folding> </folding>
@ -42,11 +76,23 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Player.h">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="18" column="23" selection-start-line="18" selection-start-column="23" selection-end-line="18" selection-end-column="23" />
<folding>
<element signature="e#99#118#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Game.h"> <entry file="file://$PROJECT_DIR$/Game.h">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="273"> <state relative-caret-position="195">
<caret line="13" column="20" lean-forward="true" selection-start-line="13" selection-start-column="20" selection-end-line="13" selection-end-column="20" /> <caret line="13" column="20" selection-start-line="13" selection-start-column="20" selection-end-line="13" selection-end-column="20" />
</state> </state>
</provider> </provider>
</entry> </entry>
@ -54,8 +100,8 @@
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/LinkedList.h"> <entry file="file://$PROJECT_DIR$/LinkedList.h">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="252"> <state relative-caret-position="225">
<caret line="15" lean-forward="true" selection-start-line="15" selection-end-line="15" /> <caret line="15" selection-start-line="15" selection-end-line="15" />
<folding> <folding>
<element signature="e#108#125#0" expanded="true" /> <element signature="e#108#125#0" expanded="true" />
</folding> </folding>
@ -66,11 +112,10 @@
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/EasySockets.h"> <entry file="file://$PROJECT_DIR$/EasySockets.h">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="742"> <state relative-caret-position="199">
<caret line="51" column="15" selection-start-line="51" selection-start-column="15" selection-end-line="51" selection-end-column="15" /> <caret line="51" selection-start-line="51" selection-end-line="51" />
<folding> <folding>
<element signature="e#110#128#0" expanded="true" /> <element signature="e#110#128#0" expanded="true" />
<element signature="e#368#885#0" />
</folding> </folding>
</state> </state>
</provider> </provider>
@ -78,19 +123,25 @@
</file> </file>
</leaf> </leaf>
</component> </component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory"> <component name="IdeDocumentHistory">
<option name="CHANGED_PATHS"> <option name="CHANGED_PATHS">
<list> <list>
<option value="$PROJECT_DIR$/EasySockets.h" /> <option value="$PROJECT_DIR$/EasySockets.h" />
<option value="$PROJECT_DIR$/LinkedList.h" /> <option value="$PROJECT_DIR$/LinkedList.h" />
<option value="$PROJECT_DIR$/Game.h" /> <option value="$PROJECT_DIR$/Game.h" />
<option value="$PROJECT_DIR$/CMakeLists.txt" />
<option value="$PROJECT_DIR$/Player.h" />
<option value="$PROJECT_DIR$/main.c" /> <option value="$PROJECT_DIR$/main.c" />
</list> </list>
</option> </option>
</component> </component>
<component name="ProjectFrameBounds" extendedState="4"> <component name="ProjectFrameBounds" extendedState="6">
<option name="width" value="960" /> <option name="y" value="32" />
<option name="height" value="1052" /> <option name="width" value="950" />
<option name="height" value="868" />
</component> </component>
<component name="ProjectView"> <component name="ProjectView">
<navigator proportions="" version="1"> <navigator proportions="" version="1">
@ -102,7 +153,7 @@
<expand> <expand>
<path> <path>
<item name="ProjektDSIK" type="b2602c69:ProjectViewProjectNode" /> <item name="ProjektDSIK" type="b2602c69:ProjectViewProjectNode" />
<item name="ProjektDSIK" type="462c0819:PsiDirectoryNode" /> <item name="DSIK_C" type="462c0819:PsiDirectoryNode" />
</path> </path>
</expand> </expand>
<select /> <select />
@ -146,36 +197,39 @@
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1572428270200</updated> <updated>1572428270200</updated>
<workItem from="1572428271418" duration="2763000" /> <workItem from="1572428271418" duration="2763000" />
<workItem from="1572532173908" duration="3927000" />
</task> </task>
<servers /> <servers />
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="2763000" /> <option name="totallyTimeSpent" value="6690000" />
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="0" y="0" width="960" height="1052" extended-state="4" /> <frame x="0" y="31" width="1600" height="869" extended-state="6" />
<editor active="true" /> <editor active="true" />
<layout> <layout>
<window_info id="Favorites" side_tool="true" /> <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.14890885" />
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.25" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" /> <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info anchor="bottom" id="Database Changes" /> <window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Version Control" /> <window_info anchor="bottom" id="Arduino Support" />
<window_info anchor="bottom" id="Messages" weight="0.32894737" /> <window_info anchor="bottom" id="Serial Monitor" />
<window_info anchor="bottom" id="Terminal" />
<window_info anchor="bottom" id="Event Log" side_tool="true" />
<window_info anchor="bottom" id="CMake" />
<window_info anchor="bottom" id="Message" order="0" /> <window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" /> <window_info anchor="bottom" id="Find" order="1" />
<window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32894737" /> <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32791328" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.3991228" /> <window_info anchor="bottom" id="Debug" order="3" weight="0.398374" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" /> <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" /> <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" /> <window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="right" id="Database" /> <window_info anchor="bottom" id="Database Changes" order="7" />
<window_info anchor="bottom" id="Messages" order="8" weight="0.32791328" />
<window_info anchor="bottom" id="Terminal" order="9" />
<window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
<window_info anchor="bottom" id="Version Control" order="11" />
<window_info anchor="bottom" id="CMake" order="12" weight="0.3292683" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" /> <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" /> <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" /> <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="right" id="Database" order="3" />
</layout> </layout>
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
@ -185,59 +239,72 @@
<breakpoint-manager> <breakpoint-manager>
<breakpoints> <breakpoints>
<line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType"> <line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType">
<url>file://$PROJECT_DIR$/EasySockets.h</url> <url>file://$PROJECT_DIR$/main.c</url>
<line>51</line> <line>74</line>
<option name="timeStamp" value="1" /> <option name="timeStamp" value="3" />
</line-breakpoint>
<line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType">
<url>file://$PROJECT_DIR$/EasySockets.h</url>
<line>50</line>
<option name="timeStamp" value="2" />
</line-breakpoint> </line-breakpoint>
<line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType"> <line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType">
<url>file://$PROJECT_DIR$/main.c</url> <url>file://$PROJECT_DIR$/main.c</url>
<line>25</line> <line>48</line>
<option name="timeStamp" value="3" /> <option name="timeStamp" value="4" />
</line-breakpoint>
<line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType">
<url>file://$PROJECT_DIR$/main.c</url>
<line>37</line>
<option name="timeStamp" value="5" />
</line-breakpoint> </line-breakpoint>
</breakpoints> </breakpoints>
</breakpoint-manager> </breakpoint-manager>
</component> </component>
<component name="editorHistoryManager"> <component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/CMakeLists.txt"> <entry file="file://$PROJECT_DIR$/Game.h">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/EasySockets.h">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="742"> <state relative-caret-position="195">
<caret line="51" column="15" selection-start-line="51" selection-start-column="15" selection-end-line="51" selection-end-column="15" /> <caret line="13" column="20" selection-start-line="13" selection-start-column="20" selection-end-line="13" selection-end-column="20" />
<folding>
<element signature="e#110#128#0" expanded="true" />
<element signature="e#368#885#0" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/LinkedList.h"> <entry file="file://$PROJECT_DIR$/LinkedList.h">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="252"> <state relative-caret-position="225">
<caret line="15" lean-forward="true" selection-start-line="15" selection-end-line="15" /> <caret line="15" selection-start-line="15" selection-end-line="15" />
<folding> <folding>
<element signature="e#108#125#0" expanded="true" /> <element signature="e#108#125#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/Game.h"> <entry file="file://$PROJECT_DIR$/CMakeLists.txt">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="273"> <state relative-caret-position="75">
<caret line="13" column="20" lean-forward="true" selection-start-line="13" selection-start-column="20" selection-end-line="13" selection-end-column="20" /> <caret line="5" column="60" lean-forward="true" selection-start-line="5" selection-start-column="60" selection-end-line="5" selection-end-column="60" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Player.h">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="18" column="23" selection-start-line="18" selection-start-column="23" selection-end-line="18" selection-end-column="23" />
<folding>
<element signature="e#99#118#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/EasySockets.h">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="199">
<caret line="51" selection-start-line="51" selection-end-line="51" />
<folding>
<element signature="e#110#128#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/main.c"> <entry file="file://$PROJECT_DIR$/main.c">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="462"> <state relative-caret-position="45">
<caret line="22" column="21" selection-start-line="22" selection-start-column="21" selection-end-line="22" selection-end-column="21" /> <caret line="32" column="4" selection-start-line="32" selection-start-column="4" selection-end-line="32" selection-end-column="4" />
<folding> <folding>
<element signature="e#0#18#0" expanded="true" /> <element signature="e#0#18#0" expanded="true" />
</folding> </folding>

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.14) cmake_minimum_required(VERSION 3.13.2)
project(ProjektDSIK C) project(ProjektDSIK C)
set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD 11)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
add_executable(ProjektDSIK main.c EasySockets.h Game.h LinkedList.h) add_executable(ProjektDSIK main.c EasySockets.h Game.h LinkedList.h Player.h)

75
Player.h Normal file
View File

@ -0,0 +1,75 @@
//
// Created by emile on 10/31/19.
//
#ifndef PROJEKTDSIK_PLAYER_H
#define PROJEKTDSIK_PLAYER_H
#include <memory.h>
#include <stdlib.h>
#include <time.h>
#include <stdbool.h>
struct Player{
char name[100];
int x;
int y;
int points;
int connectionId;
pthread_t threadId;
struct sockaddr_in incoming;
} typedef Player;
Player* players[200];
bool playerConnected[200];
void InitPlayers(){
for (int i=0; i<200; i++){
playerConnected[i] = false;
}
}
int GetPlayersCount(){
int count=0;
for (int i=0; i<200; i++){
if (playerConnected[i] == true){
count++;
}
}
return count;
}
int AddPlayerToList(Player* p){
for (int i=0; i<200; i++){
if (playerConnected[i] == false){
playerConnected[i]=true;
players[i] = p;
return i;
}
}
return -1;
}
int RemovePlayer(Player* p){
for (int i=0; i<200; i++){
if (players[i] == p){
playerConnected[i]=false;
players[i] = NULL;
free(p);
return i;
}
}
return -1;
}
Player *CreatePlayer(const char *name, int incomingConnectionId, struct sockaddr_in incoming) {
time_t t;
Player* p = malloc(sizeof(Player));
strcpy(p->name, name);
srand((unsigned) time(&t));
p->x = rand() % 50;
srand((unsigned) time(&t));
p->y = rand()%50;
p->points=0;
p->incoming=incoming;
p->connectionId=incomingConnectionId;
return p;
};
#endif //PROJEKTDSIK_PLAYER_H

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
set(CMAKE_C_COMPILER "/usr/bin/cc") set(CMAKE_C_COMPILER "/usr/bin/cc")
set(CMAKE_C_COMPILER_ARG1 "") set(CMAKE_C_COMPILER_ARG1 "")
set(CMAKE_C_COMPILER_ID "GNU") set(CMAKE_C_COMPILER_ID "GNU")
set(CMAKE_C_COMPILER_VERSION "7.4.0") set(CMAKE_C_COMPILER_VERSION "8.2.0")
set(CMAKE_C_COMPILER_VERSION_INTERNAL "") set(CMAKE_C_COMPILER_VERSION_INTERNAL "")
set(CMAKE_C_COMPILER_WRAPPER "") set(CMAKE_C_COMPILER_WRAPPER "")
set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11")
@ -17,11 +17,10 @@ set(CMAKE_C_SIMULATE_VERSION "")
set(CMAKE_AR "/usr/bin/ar") set(CMAKE_AR "/usr/bin/ar")
set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar-7") set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar-8")
set(CMAKE_RANLIB "/usr/bin/ranlib") set(CMAKE_RANLIB "/usr/bin/ranlib")
set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib-7") set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib-8")
set(CMAKE_LINKER "/usr/bin/ld") set(CMAKE_LINKER "/usr/bin/ld")
set(CMAKE_MT "")
set(CMAKE_COMPILER_IS_GNUCC 1) set(CMAKE_COMPILER_IS_GNUCC 1)
set(CMAKE_C_COMPILER_LOADED 1) set(CMAKE_C_COMPILER_LOADED 1)
set(CMAKE_C_COMPILER_WORKS TRUE) set(CMAKE_C_COMPILER_WORKS TRUE)
@ -69,7 +68,6 @@ endif()
set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/7/include;/usr/local/include;/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed;/usr/include/x86_64-linux-gnu;/usr/include")
set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s")
set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/7;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/8;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib")
set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")

View File

@ -1,13 +1,13 @@
set(CMAKE_HOST_SYSTEM "Linux-4.15.0-54-generic") set(CMAKE_HOST_SYSTEM "Linux-4.18.0-13-generic")
set(CMAKE_HOST_SYSTEM_NAME "Linux") set(CMAKE_HOST_SYSTEM_NAME "Linux")
set(CMAKE_HOST_SYSTEM_VERSION "4.15.0-54-generic") set(CMAKE_HOST_SYSTEM_VERSION "4.18.0-13-generic")
set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_SYSTEM "Linux-4.15.0-54-generic") set(CMAKE_SYSTEM "Linux-4.18.0-13-generic")
set(CMAKE_SYSTEM_NAME "Linux") set(CMAKE_SYSTEM_NAME "Linux")
set(CMAKE_SYSTEM_VERSION "4.15.0-54-generic") set(CMAKE_SYSTEM_VERSION "4.18.0-13-generic")
set(CMAKE_SYSTEM_PROCESSOR "x86_64") set(CMAKE_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_CROSSCOMPILING "FALSE") set(CMAKE_CROSSCOMPILING "FALSE")

View File

@ -172,15 +172,6 @@
#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
# define COMPILER_ID "Fujitsu" # define COMPILER_ID "Fujitsu"
#elif defined(__ghs__)
# define COMPILER_ID "GHS"
/* __GHS_VERSION_NUMBER = VVVVRP */
# ifdef __GHS_VERSION_NUMBER
# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
# endif
#elif defined(__TINYC__) #elif defined(__TINYC__)
# define COMPILER_ID "TinyCC" # define COMPILER_ID "TinyCC"
@ -190,21 +181,6 @@
#elif defined(__SCO_VERSION__) #elif defined(__SCO_VERSION__)
# define COMPILER_ID "SCO" # define COMPILER_ID "SCO"
#elif defined(__ARMCC_VERSION) && !defined(__clang__)
# define COMPILER_ID "ARMCC"
#if __ARMCC_VERSION >= 1000000
/* __ARMCC_VERSION = VRRPPPP */
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
#else
/* __ARMCC_VERSION = VRPPPP */
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
#endif
#elif defined(__clang__) && defined(__apple_build_version__) #elif defined(__clang__) && defined(__apple_build_version__)
# define COMPILER_ID "AppleClang" # define COMPILER_ID "AppleClang"
# if defined(_MSC_VER) # if defined(_MSC_VER)
@ -273,18 +249,28 @@
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
# define COMPILER_ID "IAR" # define COMPILER_ID "IAR"
# if defined(__VER__) && defined(__ICCARM__) # if defined(__VER__)
# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
# elif defined(__VER__) && defined(__ICCAVR__)
# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
# endif # endif
#elif defined(__ARMCC_VERSION)
# define COMPILER_ID "ARMCC"
#if __ARMCC_VERSION >= 1000000
/* __ARMCC_VERSION = VRRPPPP */
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
#else
/* __ARMCC_VERSION = VRPPPP */
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
#endif
#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC) #elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC)
# define COMPILER_ID "SDCC" # define COMPILER_ID "SDCC"
# if defined(__SDCC_VERSION_MAJOR) # if defined(__SDCC_VERSION_MAJOR)
@ -316,6 +302,9 @@
/* These compilers are either not known or too old to define an /* These compilers are either not known or too old to define an
identification macro. Try to identify the platform and guess that identification macro. Try to identify the platform and guess that
it is the native compiler. */ it is the native compiler. */
#elif defined(__sgi)
# define COMPILER_ID "MIPSpro"
#elif defined(__hpux) || defined(__hpua) #elif defined(__hpux) || defined(__hpua)
# define COMPILER_ID "HP" # define COMPILER_ID "HP"
@ -374,6 +363,9 @@ char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
# define PLATFORM_ID "AIX" # define PLATFORM_ID "AIX"
#elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
# define PLATFORM_ID "IRIX"
#elif defined(__hpux) || defined(__hpux__) #elif defined(__hpux) || defined(__hpux__)
# define PLATFORM_ID "HP-UX" # define PLATFORM_ID "HP-UX"
@ -433,14 +425,6 @@ char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
# define PLATFORM_ID # define PLATFORM_ID
# endif # endif
#elif defined(__INTEGRITY)
# if defined(INT_178B)
# define PLATFORM_ID "Integrity178"
# else /* regular Integrity */
# define PLATFORM_ID "Integrity"
# endif
#else /* unknown platform */ #else /* unknown platform */
# define PLATFORM_ID # define PLATFORM_ID
@ -501,26 +485,6 @@ char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
# elif defined(__ICCAVR__) # elif defined(__ICCAVR__)
# define ARCHITECTURE_ID "AVR" # define ARCHITECTURE_ID "AVR"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#elif defined(__ghs__)
# if defined(__PPC64__)
# define ARCHITECTURE_ID "PPC64"
# elif defined(__ppc__)
# define ARCHITECTURE_ID "PPC"
# elif defined(__ARM__)
# define ARCHITECTURE_ID "ARM"
# elif defined(__x86_64__)
# define ARCHITECTURE_ID "x64"
# elif defined(__i386__)
# define ARCHITECTURE_ID "X86"
# else /* unknown architecture */ # else /* unknown architecture */
# define ARCHITECTURE_ID "" # define ARCHITECTURE_ID ""
# endif # endif

Binary file not shown.

View File

@ -1,9 +1,9 @@
# CMAKE generated file: DO NOT EDIT! # CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14 # Generated by "Unix Makefiles" Generator, CMake Version 3.13
# Relative path conversion top directories. # Relative path conversion top directories.
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/students/s444440/CLionProjects/ProjektDSIK") set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/emile/DSIK_C")
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug") set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/emile/DSIK_C/cmake-build-debug")
# Force unix paths in dependencies. # Force unix paths in dependencies.
set(CMAKE_FORCE_UNIX_PATHS 1) set(CMAKE_FORCE_UNIX_PATHS 1)

View File

@ -0,0 +1,33 @@
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_ea9db/fast"
/usr/bin/make -f CMakeFiles/cmTC_ea9db.dir/build.make CMakeFiles/cmTC_ea9db.dir/build
make[1]: Entering directory '/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_ea9db.dir/CheckSymbolExists.c.o
/usr/bin/cc -std=gnu11 -o CMakeFiles/cmTC_ea9db.dir/CheckSymbolExists.c.o -c /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_ea9db
/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ea9db.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_ea9db.dir/CheckSymbolExists.c.o -o cmTC_ea9db
/usr/bin/ld: CMakeFiles/cmTC_ea9db.dir/CheckSymbolExists.c.o: in function `main':
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_ea9db.dir/build.make:87: cmTC_ea9db] Error 1
make[1]: Leaving directory '/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_ea9db/fast] Error 2
File /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}

View File

@ -1,4 +1,4 @@
The system is: Linux - 4.15.0-54-generic - x86_64 The system is: Linux - 4.18.0-13-generic - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc Compiler: /usr/bin/cc
Build flags: Build flags:
@ -10,167 +10,80 @@ The output was:
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"
The C compiler identification is GNU, found in "/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/3.14.3/CompilerIdC/a.out" The C compiler identification is GNU, found in "/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/3.13.2/CompilerIdC/a.out"
Determining if the C compiler works passed with the following output: Determining if the C compiler works passed with the following output:
Change Dir: /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp Change Dir: /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_7aea5/fast Run Build Command:"/usr/bin/make" "cmTC_b7017/fast"
/usr/bin/make -f CMakeFiles/cmTC_7aea5.dir/build.make CMakeFiles/cmTC_7aea5.dir/build /usr/bin/make -f CMakeFiles/cmTC_b7017.dir/build.make CMakeFiles/cmTC_b7017.dir/build
make[1]: Entering directory '/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp' make[1]: Entering directory '/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_7aea5.dir/testCCompiler.c.o Building C object CMakeFiles/cmTC_b7017.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_7aea5.dir/testCCompiler.c.o -c /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp/testCCompiler.c /usr/bin/cc -o CMakeFiles/cmTC_b7017.dir/testCCompiler.c.o -c /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_7aea5 Linking C executable cmTC_b7017
/opt/clion/2019.1.4/bin/cmake/linux/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7aea5.dir/link.txt --verbose=1 /home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b7017.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_7aea5.dir/testCCompiler.c.o -o cmTC_7aea5 /usr/bin/cc CMakeFiles/cmTC_b7017.dir/testCCompiler.c.o -o cmTC_b7017
make[1]: Leaving directory '/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp' make[1]: Leaving directory '/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp'
Detecting C compiler ABI info compiled with the following output: Detecting C compiler ABI info compiled with the following output:
Change Dir: /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp Change Dir: /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_b5873/fast Run Build Command:"/usr/bin/make" "cmTC_4633c/fast"
/usr/bin/make -f CMakeFiles/cmTC_b5873.dir/build.make CMakeFiles/cmTC_b5873.dir/build /usr/bin/make -f CMakeFiles/cmTC_4633c.dir/build.make CMakeFiles/cmTC_4633c.dir/build
make[1]: Entering directory '/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp' make[1]: Entering directory '/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o Building C object CMakeFiles/cmTC_4633c.dir/CMakeCCompilerABI.c.o
/usr/bin/cc -v -o CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o -c /opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/CMakeCCompilerABI.c /usr/bin/cc -o CMakeFiles/cmTC_4633c.dir/CMakeCCompilerABI.c.o -c /home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/CMakeCCompilerABI.c
Linking C executable cmTC_4633c
/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4633c.dir/link.txt --verbose=1
/usr/bin/cc -v CMakeFiles/cmTC_4633c.dir/CMakeCCompilerABI.c.o -o cmTC_4633c
Using built-in specs. Using built-in specs.
COLLECT_GCC=/usr/bin/cc COLLECT_GCC=/usr/bin/cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1 OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.4.0-1ubuntu1~18.04.1' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.2.0-7ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix Thread model: posix
gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1) gcc version 8.2.0 (Ubuntu 8.2.0-7ubuntu1)
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/
/usr/lib/gcc/x86_64-linux-gnu/7/cc1 -quiet -v -imultiarch x86_64-linux-gnu /opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o -version -fstack-protector-strong -Wformat -Wformat-security -o /tmp/cci6lT1n.s LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../:/lib/:/usr/lib/
GNU C11 (Ubuntu 7.4.0-1ubuntu1~18.04.1) version 7.4.0 (x86_64-linux-gnu) COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_4633c' '-mtune=generic' '-march=x86-64'
compiled by GNU C version 7.4.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.19-GMP /usr/lib/gcc/x86_64-linux-gnu/8/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/8/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper -plugin-opt=-fresolution=/tmp/ccqQWqMu.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro -o cmTC_4633c /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/8/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/8 -L/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/8/../../.. CMakeFiles/cmTC_4633c.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/8/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crtn.o
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_4633c' '-mtune=generic' '-march=x86-64'
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 make[1]: Leaving directory '/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp'
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/7/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-linux-gnu/7/include
/usr/local/include
/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
GNU C11 (Ubuntu 7.4.0-1ubuntu1~18.04.1) version 7.4.0 (x86_64-linux-gnu)
compiled by GNU C version 7.4.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.19-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: fa57db1fe2d756b22d454aa8428fd3bd
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'
as -v --64 -o CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o /tmp/cci6lT1n.s
GNU assembler version 2.30 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.30
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'
Linking C executable cmTC_b5873
/opt/clion/2019.1.4/bin/cmake/linux/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b5873.dir/link.txt --verbose=1
/usr/bin/cc -v CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o -o cmTC_b5873
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.4.0-1ubuntu1~18.04.1' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_b5873' '-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-linux-gnu/7/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/7/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper -plugin-opt=-fresolution=/tmp/ccCT1wtq.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro -o cmTC_b5873 /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/7/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/7/../../.. CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/7/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crtn.o
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_b5873' '-mtune=generic' '-march=x86-64'
make[1]: Leaving directory '/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp'
Parsed C implicit include dir info from above output: rv=done
found start of include info
found start of implicit include info
add: [/usr/lib/gcc/x86_64-linux-gnu/7/include]
add: [/usr/local/include]
add: [/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed]
add: [/usr/include/x86_64-linux-gnu]
add: [/usr/include]
end of search list found
collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/7/include] ==> [/usr/lib/gcc/x86_64-linux-gnu/7/include]
collapse include dir [/usr/local/include] ==> [/usr/local/include]
collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed] ==> [/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed]
collapse include dir [/usr/include/x86_64-linux-gnu] ==> [/usr/include/x86_64-linux-gnu]
collapse include dir [/usr/include] ==> [/usr/include]
implicit include dirs: [/usr/lib/gcc/x86_64-linux-gnu/7/include;/usr/local/include;/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed;/usr/include/x86_64-linux-gnu;/usr/include]
Parsed C implicit link information from above output: Parsed C implicit link information from above output:
link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
ignore line: [Change Dir: /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp] ignore line: [Change Dir: /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp]
ignore line: [] ignore line: []
ignore line: [Run Build Command(s):/usr/bin/make cmTC_b5873/fast ] ignore line: [Run Build Command:"/usr/bin/make" "cmTC_4633c/fast"]
ignore line: [/usr/bin/make -f CMakeFiles/cmTC_b5873.dir/build.make CMakeFiles/cmTC_b5873.dir/build] ignore line: [/usr/bin/make -f CMakeFiles/cmTC_4633c.dir/build.make CMakeFiles/cmTC_4633c.dir/build]
ignore line: [make[1]: Entering directory '/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp'] ignore line: [make[1]: Entering directory '/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp']
ignore line: [Building C object CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o] ignore line: [Building C object CMakeFiles/cmTC_4633c.dir/CMakeCCompilerABI.c.o]
ignore line: [/usr/bin/cc -v -o CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o -c /opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/CMakeCCompilerABI.c] ignore line: [/usr/bin/cc -o CMakeFiles/cmTC_4633c.dir/CMakeCCompilerABI.c.o -c /home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/CMakeCCompilerABI.c]
ignore line: [Linking C executable cmTC_4633c]
ignore line: [/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4633c.dir/link.txt --verbose=1]
ignore line: [/usr/bin/cc -v CMakeFiles/cmTC_4633c.dir/CMakeCCompilerABI.c.o -o cmTC_4633c ]
ignore line: [Using built-in specs.] ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/bin/cc] ignore line: [COLLECT_GCC=/usr/bin/cc]
ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper]
ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none] ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none]
ignore line: [OFFLOAD_TARGET_DEFAULT=1] ignore line: [OFFLOAD_TARGET_DEFAULT=1]
ignore line: [Target: x86_64-linux-gnu] ignore line: [Target: x86_64-linux-gnu]
ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.4.0-1ubuntu1~18.04.1' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu] ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.2.0-7ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu]
ignore line: [Thread model: posix] ignore line: [Thread model: posix]
ignore line: [gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1) ] ignore line: [gcc version 8.2.0 (Ubuntu 8.2.0-7ubuntu1) ]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'] ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/]
ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/7/cc1 -quiet -v -imultiarch x86_64-linux-gnu /opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o -version -fstack-protector-strong -Wformat -Wformat-security -o /tmp/cci6lT1n.s] ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../:/lib/:/usr/lib/]
ignore line: [GNU C11 (Ubuntu 7.4.0-1ubuntu1~18.04.1) version 7.4.0 (x86_64-linux-gnu)] ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_4633c' '-mtune=generic' '-march=x86-64']
ignore line: [ compiled by GNU C version 7.4.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.19-GMP] link line: [ /usr/lib/gcc/x86_64-linux-gnu/8/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/8/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper -plugin-opt=-fresolution=/tmp/ccqQWqMu.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro -o cmTC_4633c /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/8/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/8 -L/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/8/../../.. CMakeFiles/cmTC_4633c.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/8/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crtn.o]
ignore line: [] arg [/usr/lib/gcc/x86_64-linux-gnu/8/collect2] ==> ignore
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"]
ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/7/../../../../x86_64-linux-gnu/include"]
ignore line: [#include "..." search starts here:]
ignore line: [#include <...> search starts here:]
ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/7/include]
ignore line: [ /usr/local/include]
ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed]
ignore line: [ /usr/include/x86_64-linux-gnu]
ignore line: [ /usr/include]
ignore line: [End of search list.]
ignore line: [GNU C11 (Ubuntu 7.4.0-1ubuntu1~18.04.1) version 7.4.0 (x86_64-linux-gnu)]
ignore line: [ compiled by GNU C version 7.4.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.19-GMP]
ignore line: []
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [Compiler executable checksum: fa57db1fe2d756b22d454aa8428fd3bd]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64']
ignore line: [ as -v --64 -o CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o /tmp/cci6lT1n.s]
ignore line: [GNU assembler version 2.30 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.30]
ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/]
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../:/lib/:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64']
ignore line: [Linking C executable cmTC_b5873]
ignore line: [/opt/clion/2019.1.4/bin/cmake/linux/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b5873.dir/link.txt --verbose=1]
ignore line: [/usr/bin/cc -v CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o -o cmTC_b5873 ]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/bin/cc]
ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper]
ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none]
ignore line: [OFFLOAD_TARGET_DEFAULT=1]
ignore line: [Target: x86_64-linux-gnu]
ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.4.0-1ubuntu1~18.04.1' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu]
ignore line: [Thread model: posix]
ignore line: [gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1) ]
ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/]
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../:/lib/:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_b5873' '-mtune=generic' '-march=x86-64']
link line: [ /usr/lib/gcc/x86_64-linux-gnu/7/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/7/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper -plugin-opt=-fresolution=/tmp/ccCT1wtq.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro -o cmTC_b5873 /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/7/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/7/../../.. CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/7/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crtn.o]
arg [/usr/lib/gcc/x86_64-linux-gnu/7/collect2] ==> ignore
arg [-plugin] ==> ignore arg [-plugin] ==> ignore
arg [/usr/lib/gcc/x86_64-linux-gnu/7/liblto_plugin.so] ==> ignore arg [/usr/lib/gcc/x86_64-linux-gnu/8/liblto_plugin.so] ==> ignore
arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper] ==> ignore arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper] ==> ignore
arg [-plugin-opt=-fresolution=/tmp/ccCT1wtq.res] ==> ignore arg [-plugin-opt=-fresolution=/tmp/ccqQWqMu.res] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
arg [-plugin-opt=-pass-through=-lc] ==> ignore arg [-plugin-opt=-pass-through=-lc] ==> ignore
@ -189,19 +102,19 @@ Parsed C implicit link information from above output:
arg [-znow] ==> ignore arg [-znow] ==> ignore
arg [-zrelro] ==> ignore arg [-zrelro] ==> ignore
arg [-o] ==> ignore arg [-o] ==> ignore
arg [cmTC_b5873] ==> ignore arg [cmTC_4633c] ==> ignore
arg [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o] ==> ignore arg [/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/Scrt1.o] ==> ignore
arg [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o] ==> ignore arg [/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crti.o] ==> ignore
arg [/usr/lib/gcc/x86_64-linux-gnu/7/crtbeginS.o] ==> ignore arg [/usr/lib/gcc/x86_64-linux-gnu/8/crtbeginS.o] ==> ignore
arg [-L/usr/lib/gcc/x86_64-linux-gnu/7] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/7] arg [-L/usr/lib/gcc/x86_64-linux-gnu/8] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/8]
arg [-L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu] arg [-L/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu]
arg [-L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib] arg [-L/usr/lib/gcc/x86_64-linux-gnu/8/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/8/../../../../lib]
arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu] arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu]
arg [-L/lib/../lib] ==> dir [/lib/../lib] arg [-L/lib/../lib] ==> dir [/lib/../lib]
arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu]
arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
arg [-L/usr/lib/gcc/x86_64-linux-gnu/7/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/7/../../..] arg [-L/usr/lib/gcc/x86_64-linux-gnu/8/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/8/../../..]
arg [CMakeFiles/cmTC_b5873.dir/CMakeCCompilerABI.c.o] ==> ignore arg [CMakeFiles/cmTC_4633c.dir/CMakeCCompilerABI.c.o] ==> ignore
arg [-lgcc] ==> lib [gcc] arg [-lgcc] ==> lib [gcc]
arg [--push-state] ==> ignore arg [--push-state] ==> ignore
arg [--as-needed] ==> ignore arg [--as-needed] ==> ignore
@ -213,35 +126,35 @@ Parsed C implicit link information from above output:
arg [--as-needed] ==> ignore arg [--as-needed] ==> ignore
arg [-lgcc_s] ==> lib [gcc_s] arg [-lgcc_s] ==> lib [gcc_s]
arg [--pop-state] ==> ignore arg [--pop-state] ==> ignore
arg [/usr/lib/gcc/x86_64-linux-gnu/7/crtendS.o] ==> ignore arg [/usr/lib/gcc/x86_64-linux-gnu/8/crtendS.o] ==> ignore
arg [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crtn.o] ==> ignore arg [/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crtn.o] ==> ignore
collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/7] ==> [/usr/lib/gcc/x86_64-linux-gnu/7] collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/8] ==> [/usr/lib/gcc/x86_64-linux-gnu/8]
collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib] ==> [/usr/lib] collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/8/../../../../lib] ==> [/usr/lib]
collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu] collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu]
collapse library dir [/lib/../lib] ==> [/lib] collapse library dir [/lib/../lib] ==> [/lib]
collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
collapse library dir [/usr/lib/../lib] ==> [/usr/lib] collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/7/../../..] ==> [/usr/lib] collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/8/../../..] ==> [/usr/lib]
implicit libs: [gcc;gcc_s;c;gcc;gcc_s] implicit libs: [gcc;gcc_s;c;gcc;gcc_s]
implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/7;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib] implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/8;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib]
implicit fwks: [] implicit fwks: []
Detecting C [-std=c11] compiler features compiled with the following output: Detecting C [-std=c11] compiler features compiled with the following output:
Change Dir: /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp Change Dir: /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_a920d/fast Run Build Command:"/usr/bin/make" "cmTC_4731f/fast"
/usr/bin/make -f CMakeFiles/cmTC_a920d.dir/build.make CMakeFiles/cmTC_a920d.dir/build /usr/bin/make -f CMakeFiles/cmTC_4731f.dir/build.make CMakeFiles/cmTC_4731f.dir/build
make[1]: Entering directory '/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp' make[1]: Entering directory '/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a920d.dir/feature_tests.c.o Building C object CMakeFiles/cmTC_4731f.dir/feature_tests.c.o
/usr/bin/cc -std=c11 -o CMakeFiles/cmTC_a920d.dir/feature_tests.c.o -c /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/feature_tests.c /usr/bin/cc -std=c11 -o CMakeFiles/cmTC_4731f.dir/feature_tests.c.o -c /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/feature_tests.c
Linking C executable cmTC_a920d Linking C executable cmTC_4731f
/opt/clion/2019.1.4/bin/cmake/linux/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a920d.dir/link.txt --verbose=1 /home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4731f.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_a920d.dir/feature_tests.c.o -o cmTC_a920d /usr/bin/cc CMakeFiles/cmTC_4731f.dir/feature_tests.c.o -o cmTC_4731f
make[1]: Leaving directory '/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp' make[1]: Leaving directory '/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp'
Feature record: C_FEATURE:1c_function_prototypes Feature record: C_FEATURE:1c_function_prototypes
@ -251,17 +164,17 @@ make[1]: Leaving directory '/home/students/s444440/CLionProjects/ProjektDSIK/cma
Detecting C [-std=c99] compiler features compiled with the following output: Detecting C [-std=c99] compiler features compiled with the following output:
Change Dir: /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp Change Dir: /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_3b218/fast Run Build Command:"/usr/bin/make" "cmTC_8f389/fast"
/usr/bin/make -f CMakeFiles/cmTC_3b218.dir/build.make CMakeFiles/cmTC_3b218.dir/build /usr/bin/make -f CMakeFiles/cmTC_8f389.dir/build.make CMakeFiles/cmTC_8f389.dir/build
make[1]: Entering directory '/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp' make[1]: Entering directory '/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3b218.dir/feature_tests.c.o Building C object CMakeFiles/cmTC_8f389.dir/feature_tests.c.o
/usr/bin/cc -std=c99 -o CMakeFiles/cmTC_3b218.dir/feature_tests.c.o -c /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/feature_tests.c /usr/bin/cc -std=c99 -o CMakeFiles/cmTC_8f389.dir/feature_tests.c.o -c /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/feature_tests.c
Linking C executable cmTC_3b218 Linking C executable cmTC_8f389
/opt/clion/2019.1.4/bin/cmake/linux/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3b218.dir/link.txt --verbose=1 /home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8f389.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_3b218.dir/feature_tests.c.o -o cmTC_3b218 /usr/bin/cc CMakeFiles/cmTC_8f389.dir/feature_tests.c.o -o cmTC_8f389
make[1]: Leaving directory '/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp' make[1]: Leaving directory '/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp'
Feature record: C_FEATURE:1c_function_prototypes Feature record: C_FEATURE:1c_function_prototypes
@ -271,20 +184,34 @@ make[1]: Leaving directory '/home/students/s444440/CLionProjects/ProjektDSIK/cma
Detecting C [-std=c90] compiler features compiled with the following output: Detecting C [-std=c90] compiler features compiled with the following output:
Change Dir: /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp Change Dir: /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_5546f/fast Run Build Command:"/usr/bin/make" "cmTC_41d24/fast"
/usr/bin/make -f CMakeFiles/cmTC_5546f.dir/build.make CMakeFiles/cmTC_5546f.dir/build /usr/bin/make -f CMakeFiles/cmTC_41d24.dir/build.make CMakeFiles/cmTC_41d24.dir/build
make[1]: Entering directory '/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp' make[1]: Entering directory '/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_5546f.dir/feature_tests.c.o Building C object CMakeFiles/cmTC_41d24.dir/feature_tests.c.o
/usr/bin/cc -std=c90 -o CMakeFiles/cmTC_5546f.dir/feature_tests.c.o -c /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/feature_tests.c /usr/bin/cc -std=c90 -o CMakeFiles/cmTC_41d24.dir/feature_tests.c.o -c /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/feature_tests.c
Linking C executable cmTC_5546f Linking C executable cmTC_41d24
/opt/clion/2019.1.4/bin/cmake/linux/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5546f.dir/link.txt --verbose=1 /home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake -E cmake_link_script CMakeFiles/cmTC_41d24.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_5546f.dir/feature_tests.c.o -o cmTC_5546f /usr/bin/cc CMakeFiles/cmTC_41d24.dir/feature_tests.c.o -o cmTC_41d24
make[1]: Leaving directory '/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/CMakeTmp' make[1]: Leaving directory '/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp'
Feature record: C_FEATURE:1c_function_prototypes Feature record: C_FEATURE:1c_function_prototypes
Feature record: C_FEATURE:0c_restrict Feature record: C_FEATURE:0c_restrict
Feature record: C_FEATURE:0c_static_assert Feature record: C_FEATURE:0c_static_assert
Feature record: C_FEATURE:0c_variadic_macros Feature record: C_FEATURE:0c_variadic_macros
Determining if the include file pthread.h exists passed with the following output:
Change Dir: /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_a3fc9/fast"
/usr/bin/make -f CMakeFiles/cmTC_a3fc9.dir/build.make CMakeFiles/cmTC_a3fc9.dir/build
make[1]: Entering directory '/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a3fc9.dir/CheckIncludeFile.c.o
/usr/bin/cc -std=gnu11 -o CMakeFiles/cmTC_a3fc9.dir/CheckIncludeFile.c.o -c /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_a3fc9
/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a3fc9.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_a3fc9.dir/CheckIncludeFile.c.o -o cmTC_a3fc9
make[1]: Leaving directory '/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeTmp'

View File

@ -1,5 +1,5 @@
# CMAKE generated file: DO NOT EDIT! # CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14 # Generated by "Unix Makefiles" Generator, CMake Version 3.13
# The generator used is: # The generator used is:
set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles")
@ -8,27 +8,25 @@ set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles")
set(CMAKE_MAKEFILE_DEPENDS set(CMAKE_MAKEFILE_DEPENDS
"CMakeCache.txt" "CMakeCache.txt"
"../CMakeLists.txt" "../CMakeLists.txt"
"CMakeFiles/3.14.3/CMakeCCompiler.cmake" "CMakeFiles/3.13.2/CMakeCCompiler.cmake"
"CMakeFiles/3.14.3/CMakeSystem.cmake" "CMakeFiles/3.13.2/CMakeSystem.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/CMakeCInformation.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/CMakeCInformation.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/CMakeCommonLanguageInclude.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/CMakeCommonLanguageInclude.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/CMakeFindCodeBlocks.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/CMakeFindCodeBlocks.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/CMakeGenericSystem.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/CMakeGenericSystem.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/CMakeInitializeConfigs.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/CMakeInitializeConfigs.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/CMakeLanguageInformation.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/CMakeLanguageInformation.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/CMakeSystemSpecificInformation.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/CMakeSystemSpecificInformation.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/CMakeSystemSpecificInitialize.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/CMakeSystemSpecificInitialize.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/Compiler/CMakeCommonCompilerMacros.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/Compiler/GNU-C.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/Compiler/GNU-C.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/Compiler/GNU.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/Compiler/GNU.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/Platform/Linux-GNU-C.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/Internal/CMakeCheckCompilerFlag.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/Platform/Linux-GNU.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/Platform/Linux-GNU-C.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/Platform/Linux.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/Platform/Linux-GNU.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/Platform/UnixPaths.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/Platform/Linux.cmake" "/home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/share/cmake-3.13/Modules/ProcessorCount.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/Platform/UnixPaths.cmake"
"/opt/clion/2019.1.4/bin/cmake/linux/share/cmake-3.14/Modules/ProcessorCount.cmake"
) )
# The corresponding makefile is: # The corresponding makefile is:

View File

@ -1,5 +1,5 @@
# CMAKE generated file: DO NOT EDIT! # CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14 # Generated by "Unix Makefiles" Generator, CMake Version 3.13
# Default target executed when no arguments are given to make. # Default target executed when no arguments are given to make.
default_target: all default_target: all
@ -50,19 +50,19 @@ cmake_force:
SHELL = /bin/sh SHELL = /bin/sh
# The CMake executable. # The CMake executable.
CMAKE_COMMAND = /opt/clion/2019.1.4/bin/cmake/linux/bin/cmake CMAKE_COMMAND = /home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake
# The command to remove a file. # The command to remove a file.
RM = /opt/clion/2019.1.4/bin/cmake/linux/bin/cmake -E remove -f RM = /home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake -E remove -f
# Escaping for special characters. # Escaping for special characters.
EQUALS = = EQUALS = =
# The top-level source directory on which CMake was run. # The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/students/s444440/CLionProjects/ProjektDSIK CMAKE_SOURCE_DIR = /home/emile/DSIK_C
# The top-level build directory on which CMake was run. # The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug CMAKE_BINARY_DIR = /home/emile/DSIK_C/cmake-build-debug
#============================================================================= #=============================================================================
# Target rules for target CMakeFiles/ProjektDSIK.dir # Target rules for target CMakeFiles/ProjektDSIK.dir
@ -71,7 +71,7 @@ CMAKE_BINARY_DIR = /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-
CMakeFiles/ProjektDSIK.dir/all: CMakeFiles/ProjektDSIK.dir/all:
$(MAKE) -f CMakeFiles/ProjektDSIK.dir/build.make CMakeFiles/ProjektDSIK.dir/depend $(MAKE) -f CMakeFiles/ProjektDSIK.dir/build.make CMakeFiles/ProjektDSIK.dir/depend
$(MAKE) -f CMakeFiles/ProjektDSIK.dir/build.make CMakeFiles/ProjektDSIK.dir/build $(MAKE) -f CMakeFiles/ProjektDSIK.dir/build.make CMakeFiles/ProjektDSIK.dir/build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles --progress-num=1,2 "Built target ProjektDSIK" @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/emile/DSIK_C/cmake-build-debug/CMakeFiles --progress-num=1,2 "Built target ProjektDSIK"
.PHONY : CMakeFiles/ProjektDSIK.dir/all .PHONY : CMakeFiles/ProjektDSIK.dir/all
# Include target in all. # Include target in all.
@ -81,9 +81,9 @@ all: CMakeFiles/ProjektDSIK.dir/all
# Build rule for subdir invocation for target. # Build rule for subdir invocation for target.
CMakeFiles/ProjektDSIK.dir/rule: cmake_check_build_system CMakeFiles/ProjektDSIK.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles 2 $(CMAKE_COMMAND) -E cmake_progress_start /home/emile/DSIK_C/cmake-build-debug/CMakeFiles 2
$(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/ProjektDSIK.dir/all $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/ProjektDSIK.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles 0 $(CMAKE_COMMAND) -E cmake_progress_start /home/emile/DSIK_C/cmake-build-debug/CMakeFiles 0
.PHONY : CMakeFiles/ProjektDSIK.dir/rule .PHONY : CMakeFiles/ProjektDSIK.dir/rule
# Convenience name for target. # Convenience name for target.

View File

@ -6,7 +6,7 @@
#IncludeRegexTransform: #IncludeRegexTransform:
/home/students/s444440/CLionProjects/ProjektDSIK/EasySockets.h /home/emile/DSIK_C/EasySockets.h
stdio.h stdio.h
- -
stdlib.h stdlib.h
@ -26,17 +26,27 @@ arpa/inet.h
netdb.h netdb.h
- -
/home/students/s444440/CLionProjects/ProjektDSIK/Game.h /home/emile/DSIK_C/Game.h
LinkedList.h LinkedList.h
/home/students/s444440/CLionProjects/ProjektDSIK/LinkedList.h /home/emile/DSIK_C/LinkedList.h
/home/students/s444440/CLionProjects/ProjektDSIK/LinkedList.h /home/emile/DSIK_C/LinkedList.h
stdio.h stdio.h
- -
stdlib.h stdlib.h
- -
/home/students/s444440/CLionProjects/ProjektDSIK/main.c /home/emile/DSIK_C/Player.h
memory.h
-
stdlib.h
-
time.h
-
stdbool.h
-
/home/emile/DSIK_C/main.c
stdio.h stdio.h
- -
stdlib.h stdlib.h
@ -55,10 +65,14 @@ arpa/inet.h
- -
netdb.h netdb.h
- -
pthread.h
-
EasySockets.h EasySockets.h
/home/students/s444440/CLionProjects/ProjektDSIK/EasySockets.h /home/emile/DSIK_C/EasySockets.h
Game.h Game.h
/home/students/s444440/CLionProjects/ProjektDSIK/Game.h /home/emile/DSIK_C/Game.h
LinkedList.h LinkedList.h
/home/students/s444440/CLionProjects/ProjektDSIK/LinkedList.h /home/emile/DSIK_C/LinkedList.h
Player.h
/home/emile/DSIK_C/Player.h

View File

@ -4,7 +4,7 @@ set(CMAKE_DEPENDS_LANGUAGES
) )
# The set of files for implicit dependencies of each language: # The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_C set(CMAKE_DEPENDS_CHECK_C
"/home/students/s444440/CLionProjects/ProjektDSIK/main.c" "/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/main.c.o" "/home/emile/DSIK_C/main.c" "/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/main.c.o"
) )
set(CMAKE_C_COMPILER_ID "GNU") set(CMAKE_C_COMPILER_ID "GNU")

View File

@ -1,5 +1,5 @@
# CMAKE generated file: DO NOT EDIT! # CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14 # Generated by "Unix Makefiles" Generator, CMake Version 3.13
# Delete rule output on recipe failure. # Delete rule output on recipe failure.
.DELETE_ON_ERROR: .DELETE_ON_ERROR:
@ -34,19 +34,19 @@ cmake_force:
SHELL = /bin/sh SHELL = /bin/sh
# The CMake executable. # The CMake executable.
CMAKE_COMMAND = /opt/clion/2019.1.4/bin/cmake/linux/bin/cmake CMAKE_COMMAND = /home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake
# The command to remove a file. # The command to remove a file.
RM = /opt/clion/2019.1.4/bin/cmake/linux/bin/cmake -E remove -f RM = /home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake -E remove -f
# Escaping for special characters. # Escaping for special characters.
EQUALS = = EQUALS = =
# The top-level source directory on which CMake was run. # The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/students/s444440/CLionProjects/ProjektDSIK CMAKE_SOURCE_DIR = /home/emile/DSIK_C
# The top-level build directory on which CMake was run. # The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug CMAKE_BINARY_DIR = /home/emile/DSIK_C/cmake-build-debug
# Include any dependencies generated for this target. # Include any dependencies generated for this target.
include CMakeFiles/ProjektDSIK.dir/depend.make include CMakeFiles/ProjektDSIK.dir/depend.make
@ -59,16 +59,16 @@ include CMakeFiles/ProjektDSIK.dir/flags.make
CMakeFiles/ProjektDSIK.dir/main.c.o: CMakeFiles/ProjektDSIK.dir/flags.make CMakeFiles/ProjektDSIK.dir/main.c.o: CMakeFiles/ProjektDSIK.dir/flags.make
CMakeFiles/ProjektDSIK.dir/main.c.o: ../main.c CMakeFiles/ProjektDSIK.dir/main.c.o: ../main.c
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building C object CMakeFiles/ProjektDSIK.dir/main.c.o" @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/emile/DSIK_C/cmake-build-debug/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building C object CMakeFiles/ProjektDSIK.dir/main.c.o"
/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/ProjektDSIK.dir/main.c.o -c /home/students/s444440/CLionProjects/ProjektDSIK/main.c /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/ProjektDSIK.dir/main.c.o -c /home/emile/DSIK_C/main.c
CMakeFiles/ProjektDSIK.dir/main.c.i: cmake_force CMakeFiles/ProjektDSIK.dir/main.c.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/ProjektDSIK.dir/main.c.i" @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/ProjektDSIK.dir/main.c.i"
/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /home/students/s444440/CLionProjects/ProjektDSIK/main.c > CMakeFiles/ProjektDSIK.dir/main.c.i /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /home/emile/DSIK_C/main.c > CMakeFiles/ProjektDSIK.dir/main.c.i
CMakeFiles/ProjektDSIK.dir/main.c.s: cmake_force CMakeFiles/ProjektDSIK.dir/main.c.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/ProjektDSIK.dir/main.c.s" @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/ProjektDSIK.dir/main.c.s"
/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /home/students/s444440/CLionProjects/ProjektDSIK/main.c -o CMakeFiles/ProjektDSIK.dir/main.c.s /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /home/emile/DSIK_C/main.c -o CMakeFiles/ProjektDSIK.dir/main.c.s
# Object files for target ProjektDSIK # Object files for target ProjektDSIK
ProjektDSIK_OBJECTS = \ ProjektDSIK_OBJECTS = \
@ -80,7 +80,7 @@ ProjektDSIK_EXTERNAL_OBJECTS =
ProjektDSIK: CMakeFiles/ProjektDSIK.dir/main.c.o ProjektDSIK: CMakeFiles/ProjektDSIK.dir/main.c.o
ProjektDSIK: CMakeFiles/ProjektDSIK.dir/build.make ProjektDSIK: CMakeFiles/ProjektDSIK.dir/build.make
ProjektDSIK: CMakeFiles/ProjektDSIK.dir/link.txt ProjektDSIK: CMakeFiles/ProjektDSIK.dir/link.txt
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking C executable ProjektDSIK" @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/emile/DSIK_C/cmake-build-debug/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking C executable ProjektDSIK"
$(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/ProjektDSIK.dir/link.txt --verbose=$(VERBOSE) $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/ProjektDSIK.dir/link.txt --verbose=$(VERBOSE)
# Rule to build all files generated by this target. # Rule to build all files generated by this target.
@ -93,6 +93,6 @@ CMakeFiles/ProjektDSIK.dir/clean:
.PHONY : CMakeFiles/ProjektDSIK.dir/clean .PHONY : CMakeFiles/ProjektDSIK.dir/clean
CMakeFiles/ProjektDSIK.dir/depend: CMakeFiles/ProjektDSIK.dir/depend:
cd /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/students/s444440/CLionProjects/ProjektDSIK /home/students/s444440/CLionProjects/ProjektDSIK /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/DependInfo.cmake --color=$(COLOR) cd /home/emile/DSIK_C/cmake-build-debug && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/emile/DSIK_C /home/emile/DSIK_C /home/emile/DSIK_C/cmake-build-debug /home/emile/DSIK_C/cmake-build-debug /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/ProjektDSIK.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : CMakeFiles/ProjektDSIK.dir/depend .PHONY : CMakeFiles/ProjektDSIK.dir/depend

View File

@ -1,8 +1,9 @@
# CMAKE generated file: DO NOT EDIT! # CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14 # Generated by "Unix Makefiles" Generator, CMake Version 3.13
CMakeFiles/ProjektDSIK.dir/main.c.o CMakeFiles/ProjektDSIK.dir/main.c.o
/home/students/s444440/CLionProjects/ProjektDSIK/EasySockets.h /home/emile/DSIK_C/EasySockets.h
/home/students/s444440/CLionProjects/ProjektDSIK/Game.h /home/emile/DSIK_C/Game.h
/home/students/s444440/CLionProjects/ProjektDSIK/LinkedList.h /home/emile/DSIK_C/LinkedList.h
/home/students/s444440/CLionProjects/ProjektDSIK/main.c /home/emile/DSIK_C/Player.h
/home/emile/DSIK_C/main.c

View File

@ -1,8 +1,9 @@
# CMAKE generated file: DO NOT EDIT! # CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14 # Generated by "Unix Makefiles" Generator, CMake Version 3.13
CMakeFiles/ProjektDSIK.dir/main.c.o: ../EasySockets.h CMakeFiles/ProjektDSIK.dir/main.c.o: ../EasySockets.h
CMakeFiles/ProjektDSIK.dir/main.c.o: ../Game.h CMakeFiles/ProjektDSIK.dir/main.c.o: ../Game.h
CMakeFiles/ProjektDSIK.dir/main.c.o: ../LinkedList.h CMakeFiles/ProjektDSIK.dir/main.c.o: ../LinkedList.h
CMakeFiles/ProjektDSIK.dir/main.c.o: ../Player.h
CMakeFiles/ProjektDSIK.dir/main.c.o: ../main.c CMakeFiles/ProjektDSIK.dir/main.c.o: ../main.c

View File

@ -1,8 +1,8 @@
# CMAKE generated file: DO NOT EDIT! # CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14 # Generated by "Unix Makefiles" Generator, CMake Version 3.13
# compile C with /usr/bin/cc # compile C with /usr/bin/cc
C_FLAGS = -g -std=gnu11 C_FLAGS = -pthread -g -std=gnu11
C_DEFINES = C_DEFINES =

View File

@ -1 +1 @@
/usr/bin/cc -g CMakeFiles/ProjektDSIK.dir/main.c.o -o ProjektDSIK /usr/bin/cc -pthread -g CMakeFiles/ProjektDSIK.dir/main.c.o -o ProjektDSIK

View File

@ -1,3 +1,3 @@
/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/rebuild_cache.dir /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/rebuild_cache.dir
/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/ProjektDSIK.dir /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/ProjektDSIK.dir
/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/edit_cache.dir /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/edit_cache.dir

View File

@ -1,4 +1,9 @@
/opt/clion/2019.1.4/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /home/students/s444440/CLionProjects/ProjektDSIK /home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /home/emile/DSIK_C
-- Configuring done CMake Error at CMakeLists.txt:5 (target_link_libraries):
-- Generating done Cannot specify link libraries for target "pthread" which is not built by
-- Build files have been written to: /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug this project.
-- Configuring incomplete, errors occurred!
See also "/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "/home/emile/DSIK_C/cmake-build-debug/CMakeFiles/CMakeError.log".

View File

@ -1,5 +1,5 @@
# CMAKE generated file: DO NOT EDIT! # CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14 # Generated by "Unix Makefiles" Generator, CMake Version 3.13
# Default target executed when no arguments are given to make. # Default target executed when no arguments are given to make.
default_target: all default_target: all
@ -39,19 +39,19 @@ cmake_force:
SHELL = /bin/sh SHELL = /bin/sh
# The CMake executable. # The CMake executable.
CMAKE_COMMAND = /opt/clion/2019.1.4/bin/cmake/linux/bin/cmake CMAKE_COMMAND = /home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake
# The command to remove a file. # The command to remove a file.
RM = /opt/clion/2019.1.4/bin/cmake/linux/bin/cmake -E remove -f RM = /home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake -E remove -f
# Escaping for special characters. # Escaping for special characters.
EQUALS = = EQUALS = =
# The top-level source directory on which CMake was run. # The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/students/s444440/CLionProjects/ProjektDSIK CMAKE_SOURCE_DIR = /home/emile/DSIK_C
# The top-level build directory on which CMake was run. # The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug CMAKE_BINARY_DIR = /home/emile/DSIK_C/cmake-build-debug
#============================================================================= #=============================================================================
# Targets provided globally by CMake. # Targets provided globally by CMake.
@ -59,7 +59,7 @@ CMAKE_BINARY_DIR = /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-
# Special rule for the target rebuild_cache # Special rule for the target rebuild_cache
rebuild_cache: rebuild_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
/opt/clion/2019.1.4/bin/cmake/linux/bin/cmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) /home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache .PHONY : rebuild_cache
# Special rule for the target rebuild_cache # Special rule for the target rebuild_cache
@ -70,7 +70,7 @@ rebuild_cache/fast: rebuild_cache
# Special rule for the target edit_cache # Special rule for the target edit_cache
edit_cache: edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
/opt/clion/2019.1.4/bin/cmake/linux/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. /home/emile/Downloads/clion-2018.3.3/bin/cmake/linux/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
.PHONY : edit_cache .PHONY : edit_cache
# Special rule for the target edit_cache # Special rule for the target edit_cache
@ -80,9 +80,9 @@ edit_cache/fast: edit_cache
# The main all target # The main all target
all: cmake_check_build_system all: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles/progress.marks $(CMAKE_COMMAND) -E cmake_progress_start /home/emile/DSIK_C/cmake-build-debug/CMakeFiles /home/emile/DSIK_C/cmake-build-debug/CMakeFiles/progress.marks
$(MAKE) -f CMakeFiles/Makefile2 all $(MAKE) -f CMakeFiles/Makefile2 all
$(CMAKE_COMMAND) -E cmake_progress_start /home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/CMakeFiles 0 $(CMAKE_COMMAND) -E cmake_progress_start /home/emile/DSIK_C/cmake-build-debug/CMakeFiles 0
.PHONY : all .PHONY : all
# The main clean target # The main clean target

Binary file not shown.

View File

@ -8,89 +8,92 @@
<Option virtualFolders="CMake Files\;"/> <Option virtualFolders="CMake Files\;"/>
<Build> <Build>
<Target title="all"> <Target title="all">
<Option working_dir="/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug"/> <Option working_dir="/home/emile/DSIK_C/cmake-build-debug"/>
<Option type="4"/> <Option type="4"/>
<MakeCommands> <MakeCommands>
<Build command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 all"/> <Build command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 all"/>
<CompileFile command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 &quot;$file&quot;"/> <CompileFile command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 &quot;$file&quot;"/>
<Clean command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/> <Clean command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/>
<DistClean command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/> <DistClean command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/>
</MakeCommands> </MakeCommands>
</Target> </Target>
<Target title="rebuild_cache"> <Target title="rebuild_cache">
<Option working_dir="/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug"/> <Option working_dir="/home/emile/DSIK_C/cmake-build-debug"/>
<Option type="4"/> <Option type="4"/>
<MakeCommands> <MakeCommands>
<Build command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 rebuild_cache"/> <Build command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 rebuild_cache"/>
<CompileFile command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 &quot;$file&quot;"/> <CompileFile command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 &quot;$file&quot;"/>
<Clean command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/> <Clean command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/>
<DistClean command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/> <DistClean command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/>
</MakeCommands> </MakeCommands>
</Target> </Target>
<Target title="ProjektDSIK"> <Target title="ProjektDSIK">
<Option output="/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/ProjektDSIK" prefix_auto="0" extension_auto="0"/> <Option output="/home/emile/DSIK_C/cmake-build-debug/ProjektDSIK" prefix_auto="0" extension_auto="0"/>
<Option working_dir="/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug"/> <Option working_dir="/home/emile/DSIK_C/cmake-build-debug"/>
<Option object_output="./"/> <Option object_output="./"/>
<Option type="1"/> <Option type="1"/>
<Option compiler="gcc"/> <Option compiler="gcc"/>
<Compiler> <Compiler>
<Add directory="/usr/lib/gcc/x86_64-linux-gnu/7/include"/> <Add directory="/usr/lib/gcc/x86_64-linux-gnu/8/include"/>
<Add directory="/usr/local/include"/> <Add directory="/usr/local/include"/>
<Add directory="/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed"/> <Add directory="/usr/lib/gcc/x86_64-linux-gnu/8/include-fixed"/>
<Add directory="/usr/include/x86_64-linux-gnu"/> <Add directory="/usr/include/x86_64-linux-gnu"/>
<Add directory="/usr/include"/> <Add directory="/usr/include"/>
</Compiler> </Compiler>
<MakeCommands> <MakeCommands>
<Build command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 ProjektDSIK"/> <Build command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 ProjektDSIK"/>
<CompileFile command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 &quot;$file&quot;"/> <CompileFile command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 &quot;$file&quot;"/>
<Clean command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/> <Clean command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/>
<DistClean command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/> <DistClean command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/>
</MakeCommands> </MakeCommands>
</Target> </Target>
<Target title="ProjektDSIK/fast"> <Target title="ProjektDSIK/fast">
<Option output="/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/ProjektDSIK" prefix_auto="0" extension_auto="0"/> <Option output="/home/emile/DSIK_C/cmake-build-debug/ProjektDSIK" prefix_auto="0" extension_auto="0"/>
<Option working_dir="/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug"/> <Option working_dir="/home/emile/DSIK_C/cmake-build-debug"/>
<Option object_output="./"/> <Option object_output="./"/>
<Option type="1"/> <Option type="1"/>
<Option compiler="gcc"/> <Option compiler="gcc"/>
<Compiler> <Compiler>
<Add directory="/usr/lib/gcc/x86_64-linux-gnu/7/include"/> <Add directory="/usr/lib/gcc/x86_64-linux-gnu/8/include"/>
<Add directory="/usr/local/include"/> <Add directory="/usr/local/include"/>
<Add directory="/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed"/> <Add directory="/usr/lib/gcc/x86_64-linux-gnu/8/include-fixed"/>
<Add directory="/usr/include/x86_64-linux-gnu"/> <Add directory="/usr/include/x86_64-linux-gnu"/>
<Add directory="/usr/include"/> <Add directory="/usr/include"/>
</Compiler> </Compiler>
<MakeCommands> <MakeCommands>
<Build command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 ProjektDSIK/fast"/> <Build command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 ProjektDSIK/fast"/>
<CompileFile command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 &quot;$file&quot;"/> <CompileFile command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 &quot;$file&quot;"/>
<Clean command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/> <Clean command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/>
<DistClean command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/> <DistClean command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/>
</MakeCommands> </MakeCommands>
</Target> </Target>
<Target title="edit_cache"> <Target title="edit_cache">
<Option working_dir="/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug"/> <Option working_dir="/home/emile/DSIK_C/cmake-build-debug"/>
<Option type="4"/> <Option type="4"/>
<MakeCommands> <MakeCommands>
<Build command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 edit_cache"/> <Build command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 edit_cache"/>
<CompileFile command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 &quot;$file&quot;"/> <CompileFile command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 &quot;$file&quot;"/>
<Clean command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/> <Clean command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/>
<DistClean command="/usr/bin/make -j4 -f &quot;/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/> <DistClean command="/usr/bin/make -j4 -f &quot;/home/emile/DSIK_C/cmake-build-debug/Makefile&quot; VERBOSE=1 clean"/>
</MakeCommands> </MakeCommands>
</Target> </Target>
</Build> </Build>
<Unit filename="/home/students/s444440/CLionProjects/ProjektDSIK/EasySockets.h"> <Unit filename="/home/emile/DSIK_C/EasySockets.h">
<Option target="ProjektDSIK"/> <Option target="ProjektDSIK"/>
</Unit> </Unit>
<Unit filename="/home/students/s444440/CLionProjects/ProjektDSIK/Game.h"> <Unit filename="/home/emile/DSIK_C/Game.h">
<Option target="ProjektDSIK"/> <Option target="ProjektDSIK"/>
</Unit> </Unit>
<Unit filename="/home/students/s444440/CLionProjects/ProjektDSIK/LinkedList.h"> <Unit filename="/home/emile/DSIK_C/LinkedList.h">
<Option target="ProjektDSIK"/> <Option target="ProjektDSIK"/>
</Unit> </Unit>
<Unit filename="/home/students/s444440/CLionProjects/ProjektDSIK/main.c"> <Unit filename="/home/emile/DSIK_C/Player.h">
<Option target="ProjektDSIK"/> <Option target="ProjektDSIK"/>
</Unit> </Unit>
<Unit filename="/home/students/s444440/CLionProjects/ProjektDSIK/CMakeLists.txt"> <Unit filename="/home/emile/DSIK_C/main.c">
<Option target="ProjektDSIK"/>
</Unit>
<Unit filename="/home/emile/DSIK_C/CMakeLists.txt">
<Option virtualFolder="CMake Files\"/> <Option virtualFolder="CMake Files\"/>
</Unit> </Unit>
</Project> </Project>

View File

@ -1,4 +1,4 @@
# Install script for directory: /home/students/s444440/CLionProjects/ProjektDSIK # Install script for directory: /home/emile/DSIK_C
# Set the install prefix # Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX) if(NOT DEFINED CMAKE_INSTALL_PREFIX)
@ -45,5 +45,5 @@ endif()
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
"${CMAKE_INSTALL_MANIFEST_FILES}") "${CMAKE_INSTALL_MANIFEST_FILES}")
file(WRITE "/home/students/s444440/CLionProjects/ProjektDSIK/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}" file(WRITE "/home/emile/DSIK_C/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}"
"${CMAKE_INSTALL_MANIFEST_CONTENT}") "${CMAKE_INSTALL_MANIFEST_CONTENT}")

63
main.c
View File

@ -7,22 +7,71 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netdb.h> #include <netdb.h>
#include <pthread.h>
#include "EasySockets.h" #include "EasySockets.h"
#include "Game.h" #include "Game.h"
#include "LinkedList.h" #include "LinkedList.h"
#include "Player.h"
bool wait =false;
void* WaitForInput(){
if (wait) {char c = getchar();}
wait=false;
}
int socket_id;
struct sockaddr_in incoming;
void* JoiningThread(){
while (true) {
int a = AcceptClient(socket_id, &incoming);
Player* p = CreatePlayer("tttt", a, incoming);
AddPlayerToList(p);
printf("Players: %d/200", GetPlayersCount());
}
return 0;
}
void InterpretReceivedSignal(Player* p, const char* buffer, int len){
}
void* PlayerDataReaderThread(void* arg){
char buffer[1000];
Player* p = (Player*)arg;
printf("%d", p->points);
socklen_t size = sizeof(p->incoming);
recvfrom(socket_id, buffer, 1000, 0, (struct sockaddr*)&p->incoming, &size );
}
int BeginGame(){
//Due to security, we use recvfrom instead of regular recv
for (int i=0; i<200; i++) {
if (playerConnected[i]) {
Player* p = players[i];
printf("\n.");
pthread_create(&p->threadId, NULL, PlayerDataReaderThread, p);
}
}
}
int main() { int main() {
InitPlayers();
setvbuf(stdout, NULL, _IONBF,0); setvbuf(stdout, NULL, _IONBF,0);
int socket_id = CreateSocket(); socket_id = CreateSocket();
//Connect(socket_id, "0.0.0.0", 12345); //Connect(socket_id, "0.0.0.0", 12345);
int c = CreateServer(socket_id, 1234); int c = CreateServer(socket_id, 1234);
printf("%d",c); printf("%d",c);
struct sockaddr_in incoming;
int a = AcceptClient(socket_id, &incoming);
Game* g = CreateNewGame();
g->id=lastGameIndex;
g->name="sadasd";
printf("%d",a);
printf("Waiting for players to connect. \n Press any key to start...");
wait=true;
pthread_t thread_id;
pthread_create(&thread_id, NULL, JoiningThread, NULL);
getchar();
printf("...");
Player* p = CreatePlayer("test", 15, incoming);
AddPlayerToList(p);
pthread_cancel(thread_id);
printf("Press any key to close the server");
BeginGame();
getchar();
return 0; return 0;
} }