From 5b24dcb2bd5e2018c049b2760bfa0444c62c1b96 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 8 Jan 2015 21:17:48 -0600 Subject: [PATCH] Bugfix: reverse order of library links It seems I got the order backwards. I was using -lc and all the lowest level libraries on the left of the libraries that depend on it. This caused unobvious linkage errors down the road. Reversing the order prevented the problem and allowed for static libraries to link. It is possible the order issue is with ar and not with gcc. --- level_1/fl_colors/data/build/settings | 2 +- level_1/fl_console/data/build/settings | 2 +- level_1/fl_directory/data/build/settings | 2 +- level_1/fl_file/data/build/settings | 2 +- level_1/fl_fss/data/build/settings | 2 +- level_1/fl_serialized/data/build/settings | 2 +- level_1/fl_strings/data/build/settings | 2 +- level_2/fll_colors/data/build/settings | 2 +- level_2/fll_execute/data/build/settings | 2 +- level_2/fll_fss/data/build/settings | 2 +- level_3/firewall/data/build/settings | 2 +- level_3/fss_basic_list_read/data/build/settings | 2 +- level_3/fss_basic_list_write/data/build/settings | 2 +- level_3/fss_basic_read/data/build/settings | 2 +- level_3/fss_basic_write/data/build/settings | 2 +- level_3/fss_extended_read/data/build/settings | 2 +- level_3/fss_extended_write/data/build/settings | 2 +- level_3/fss_return_code/data/build/settings | 2 +- level_3/return_code/data/build/settings | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/level_1/fl_colors/data/build/settings b/level_1/fl_colors/data/build/settings index 9593b42..892ca95 100644 --- a/level_1/fl_colors/data/build/settings +++ b/level_1/fl_colors/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_file -lf_memory +build_libraries -lf_memory -lf_file -lc build_sources_library colors.c build_sources_program build_sources_headers colors.h diff --git a/level_1/fl_console/data/build/settings b/level_1/fl_console/data/build/settings index b4e5413..dd13071 100644 --- a/level_1/fl_console/data/build/settings +++ b/level_1/fl_console/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_console -lf_memory +build_libraries -lf_memory -lf_console -lc build_sources_library console.c build_sources_program build_sources_headers console.h diff --git a/level_1/fl_directory/data/build/settings b/level_1/fl_directory/data/build/settings index acbe9d1..c95be94 100644 --- a/level_1/fl_directory/data/build/settings +++ b/level_1/fl_directory/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory +build_libraries -lf_memory -lc build_sources_library directory.c build_sources_program build_sources_headers directory.h diff --git a/level_1/fl_file/data/build/settings b/level_1/fl_file/data/build/settings index 6d3f91c..3035c95 100644 --- a/level_1/fl_file/data/build/settings +++ b/level_1/fl_file/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_file -lf_memory +build_libraries -lf_memory -lf_file -lc build_sources_library file.c build_sources_program build_sources_headers file.h diff --git a/level_1/fl_fss/data/build/settings b/level_1/fl_fss/data/build/settings index cdf0039..c42cb1f 100644 --- a/level_1/fl_fss/data/build/settings +++ b/level_1/fl_fss/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_file -lf_conversion +build_libraries -lf_conversion -lf_file -lf_memory -lc build_sources_library fss.c fss_basic.c fss_basic_list.c fss_extended.c build_sources_program build_sources_headers fss.h fss_basic.h fss_basic_list.h fss_errors.h fss_extended.h fss_macro.h diff --git a/level_1/fl_serialized/data/build/settings b/level_1/fl_serialized/data/build/settings index b0a08bd..84b1b34 100644 --- a/level_1/fl_serialized/data/build/settings +++ b/level_1/fl_serialized/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory +build_libraries -lf_memory -lc build_sources_library serialized.c build_sources_program build_sources_headers serialized.h diff --git a/level_1/fl_strings/data/build/settings b/level_1/fl_strings/data/build/settings index e8b6991..f1c1d00 100644 --- a/level_1/fl_strings/data/build/settings +++ b/level_1/fl_strings/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory +build_libraries -lf_memory -lc build_sources_library strings.c build_sources_program build_sources_headers strings.h diff --git a/level_2/fll_colors/data/build/settings b/level_2/fll_colors/data/build/settings index 46e16ee..c07a80c 100644 --- a/level_2/fll_colors/data/build/settings +++ b/level_2/fll_colors/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lfl_colors +build_libraries -lfl_colors -lf_memory -lc build_sources_library colors.c build_sources_program build_sources_headers colors.h diff --git a/level_2/fll_execute/data/build/settings b/level_2/fll_execute/data/build/settings index 450bfd3..29a7ec8 100644 --- a/level_2/fll_execute/data/build/settings +++ b/level_2/fll_execute/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory +build_libraries -lf_memory -lc build_sources_library execute.c build_sources_program build_sources_headers execute.h diff --git a/level_2/fll_fss/data/build/settings b/level_2/fll_fss/data/build/settings index 854f8b3..8a18c3b 100644 --- a/level_2/fll_fss/data/build/settings +++ b/level_2/fll_fss/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_file -lf_conversion -lfl_fss -lfl_errors +build_libraries -lfl_errors -lfl_fss -lf_conversion -lf_file -lf_memory -lc build_sources_library fss_basic.c fss_basic_list.c fss_extended.c fss_errors.c build_sources_program build_sources_headers fss_basic.h fss_basic_list.h fss_extended.h fss_errors.h diff --git a/level_3/firewall/data/build/settings b/level_3/firewall/data/build/settings index 60fabdb..661e8cf 100644 --- a/level_3/firewall/data/build/settings +++ b/level_3/firewall/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_print -lf_file -lf_pipe -lfl_fss -lfl_console -lfl_file -lfl_strings -lfl_colors -lfl_directory -lfll_execute -lfll_fss -lfll_colors +build_libraries -lfll_colors -lfll_fss -lfll_execute -lfl_directory -lfl_colors -lfl_strings -lfl_file -lfl_console -lfl_fss -lf_pipe -lf_file -lf_print -lf_conversion -lf_console -lf_memory -lc build_sources_library firewall.c private-firewall.c build_sources_program main.c build_sources_headers firewall.h diff --git a/level_3/fss_basic_list_read/data/build/settings b/level_3/fss_basic_list_read/data/build/settings index f1ec90a..f12ba9b 100644 --- a/level_3/fss_basic_list_read/data/build/settings +++ b/level_3/fss_basic_list_read/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_print -lf_file -lf_pipe -lfl_fss -lfl_console -lfl_file -lfl_strings -lfl_colors -lfl_directory -lfll_execute -lfll_fss -lfll_colors +build_libraries -lfll_colors -lfll_fss -lfll_execute -lfl_directory -lfl_colors -lfl_strings -lfl_file -lfl_console -lfl_fss -lf_pipe -lf_file -lf_print -lf_conversion -lf_console -lf_memory -lc build_sources_library fss_basic_list_read.c build_sources_program main.c build_sources_headers fss_basic_list_read.h diff --git a/level_3/fss_basic_list_write/data/build/settings b/level_3/fss_basic_list_write/data/build/settings index 7869e02..4a1d422 100644 --- a/level_3/fss_basic_list_write/data/build/settings +++ b/level_3/fss_basic_list_write/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_pipe -lf_print -lf_file -lfl_console -lfl_colors -lfl_errors -lfl_file -lfl_fss -lfll_fss -lfll_colors +build_libraries -lfll_colors -lfll_fss -lfl_fss -lfl_file -lfl_errors -lfl_colors -lfl_console -lf_file -lf_print -lf_pipe -lf_conversion -lf_console -lf_memory -lc build_sources_library fss_basic_list_write.c build_sources_program main.c build_sources_headers fss_basic_list_write.h diff --git a/level_3/fss_basic_read/data/build/settings b/level_3/fss_basic_read/data/build/settings index 92f5f80..d5a374f 100644 --- a/level_3/fss_basic_read/data/build/settings +++ b/level_3/fss_basic_read/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_pipe -lf_file -lf_print -lfl_fss -lfl_console -lfl_file -lfl_strings -lfl_colors -lfl_directory -lfll_execute -lfll_fss -lfll_colors +build_libraries -lfll_colors -lfll_fss -lfll_execute -lfl_directory -lfl_colors -lfl_strings -lfl_file -lfl_console -lfl_fss -lf_print -lf_file -lf_pipe -lf_conversion -lf_console -lf_memory -lc build_sources_library fss_basic_read.c build_sources_program main.c build_sources_headers fss_basic_read.h diff --git a/level_3/fss_basic_write/data/build/settings b/level_3/fss_basic_write/data/build/settings index 5dc9de7..1b87dcb 100644 --- a/level_3/fss_basic_write/data/build/settings +++ b/level_3/fss_basic_write/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_pipe -lf_print -lf_file -lfl_console -lfl_colors -lfl_errors -lfl_file -lfl_fss -lfll_fss -lfll_colors +build_libraries -lfll_colors -lfll_fss -lfl_fss -lfl_file -lfl_errors -lfl_colors -lfl_console -lf_file -lf_print -lf_pipe -lf_conversion -lf_console -lf_memory -lc build_sources_library fss_basic_write.c build_sources_program main.c build_sources_headers fss_basic_write.h diff --git a/level_3/fss_extended_read/data/build/settings b/level_3/fss_extended_read/data/build/settings index 8e8095a..c4a7805 100644 --- a/level_3/fss_extended_read/data/build/settings +++ b/level_3/fss_extended_read/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_print -lf_file -lf_pipe -lfl_fss -lfl_console -lfl_file -lfl_strings -lfl_colors -lfl_directory -lfll_execute -lfll_fss -lfll_colors +build_libraries -lfll_colors -lfll_fss -lfll_execute -lfl_directory -lfl_colors -lfl_strings -lfl_file -lfl_console -lfl_fss -lf_pipe -lf_file -lf_print -lf_conversion -lf_console -lf_memory -lc build_sources_library fss_extended_read.c build_sources_program main.c build_sources_headers fss_extended_read.h diff --git a/level_3/fss_extended_write/data/build/settings b/level_3/fss_extended_write/data/build/settings index 3d9753a..283ad37 100644 --- a/level_3/fss_extended_write/data/build/settings +++ b/level_3/fss_extended_write/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_pipe -lf_print -lf_file -lfl_console -lfl_colors -lfl_errors -lfl_file -lfl_fss -lfll_fss -lfll_colors +build_libraries -lfll_colors -lfll_fss -lfl_fss -lfl_file -lfl_errors -lfl_colors -lfl_console -lf_file -lf_print -lf_pipe -lf_conversion -lf_console -lf_memory -lc build_sources_library fss_extended_write.c build_sources_program main.c build_sources_headers fss_extended_write.h diff --git a/level_3/fss_return_code/data/build/settings b/level_3/fss_return_code/data/build/settings index 9e8596f..57697e2 100644 --- a/level_3/fss_return_code/data/build/settings +++ b/level_3/fss_return_code/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_pipe -lf_print -lfl_console -lfl_colors -lfl_errors -lfl_fss -lfll_fss -lfll_colors +build_libraries -lfll_colors -lfll_fss -lfl_fss -lfl_errors -lfl_colors -lfl_console -lf_print -lf_pipe -lf_conversion -lf_console -lf_memory -lc build_sources_library fss_return_code.c build_sources_program main.c build_sources_headers fss_return_code.h diff --git a/level_3/return_code/data/build/settings b/level_3/return_code/data/build/settings index 33df211..35bfce1 100644 --- a/level_3/return_code/data/build/settings +++ b/level_3/return_code/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_pipe -lf_print -lfl_console -lfl_colors -lfl_errors -lfll_colors +build_libraries -lfll_colors -lfl_errors -lfl_colors -lfl_console -lf_print -lf_pipe -lf_conversion -lf_console -lf_memory -lc build_sources_library return_code.c build_sources_program main.c build_sources_headers return_code.h -- 1.8.3.1