PolyMarsDev / Terri-Fried

A multi-platform C++ game made for Ludum Dare 46
200 stars 55 forks source link

[Arch Linux] segmentation fault (core dumped) #24

Open matteodev8 opened 2 years ago

matteodev8 commented 2 years ago

Got an

[1]    3206 segmentation fault (core dumped)  ./Terri-fried

After compiling on Linux.

a-andreyev commented 1 year ago

try to remove $(RES_FILES) from the list of the files for the compiler:

diff --git a/linux/Makefile b/linux/Makefile
index 85345d7..400bdea 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -28,7 +28,7 @@ $(OUT_DIR):

 $(NAME): $(OBJS)
-   $(CXX) $(FLAGS) -o $(OUT_DIR)/$(NAME) $(OBJS) $(RES_FILES) $(LIBS)
+   $(CXX) $(FLAGS) -o $(OUT_DIR)/$(NAME) $(OBJS) $(LIBS)

 $(OBJ_DIR)/%.o: %.cpp
    $(CXX) $(FLAGS) -c $< -o $@
Pythone commented 5 months ago

try to remove $(RES_FILES) from the list of the files for the compiler:

diff --git a/linux/Makefile b/linux/Makefile
index 85345d7..400bdea 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -28,7 +28,7 @@ $(OUT_DIR):

 $(NAME): $(OBJS)
- $(CXX) $(FLAGS) -o $(OUT_DIR)/$(NAME) $(OBJS) $(RES_FILES) $(LIBS)
+ $(CXX) $(FLAGS) -o $(OUT_DIR)/$(NAME) $(OBJS) $(LIBS)

 $(OBJ_DIR)/%.o: %.cpp
  $(CXX) $(FLAGS) -c $< -o $@

I created a pull request with this already incorporated