Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
matteodev8 opened this issue Dec 4, 2021 · 2 comments
Open

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

matteodev8 opened this issue Dec 4, 2021 · 2 comments

Comments

@matteodev8
Copy link

Got an

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

After compiling on Linux.

@a-andreyev
Copy link

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
Copy link

Pythone commented Jan 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants