From c340adcf7957267f8df55a08fbec34d6c7da9755 Mon Sep 17 00:00:00 2001 From: Anya Vostinar Date: Wed, 19 Jan 2022 07:38:19 -0600 Subject: [PATCH] Update 0001-01-01-lesson01.md Fixing path to native.cpp and adding note about -lstdc++fs --- tutorials/_posts/0001-01-01-lesson01.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tutorials/_posts/0001-01-01-lesson01.md b/tutorials/_posts/0001-01-01-lesson01.md index 0ca9706a..f2456e4e 100644 --- a/tutorials/_posts/0001-01-01-lesson01.md +++ b/tutorials/_posts/0001-01-01-lesson01.md @@ -580,7 +580,7 @@ We sometimes call this a "command-line driver." Empirical's config tools have built-in support to facilitate constructing a proper command-line interface that can process arguments, print help, etc. But in our case we basically just want to slap a call to `evolve()` in `main()`. -Open up `source/native/evo-algo.cpp` and modify it to read something like +Open up `source/native.cpp` and modify it to read something like ```cpp // This file is part of My First Evolutionary Algorithm // Copyright (C) Matthew Andres Moreno, 2020. @@ -621,6 +621,10 @@ C++ compilers have notoriously unhelpful, long error messages. You can view the top of a really long error message with `make | less` (press `q` when you're done looking). Google and Stack Overflow are useful companions for debugging compiler-ese. +If you are getting an error that mentions `-lstdc++fs`, open up `Makefile`, find where `-lstdc++fs` is used, and delete `-lstdc++fs`. +It's only needed on some machines and causes problems on others unfortunately! +Try making the project again. + If your executable compiles but crashes or doesn't work properly while running, you'll want to try compiling in debug mode and then running again. Compiling in debug mode will activate otherwise dormant Empirical debugging facilities. This should hopefully yield a (more) helpful runtime error message.