From de52b1ae4a5d7fcbc2d718aa27a43cd44bd182e0 Mon Sep 17 00:00:00 2001 From: Khoi Hoang <57012152+khoih-prog@users.noreply.github.com> Date: Thu, 30 Dec 2021 16:44:36 -0500 Subject: [PATCH] v1.5.0 to fix multiple-definitions linker error ### Releases v1.5.0 1. Fix `multiple-definitions` linker error and weird bug related to `src_cpp`. Check [Different behaviour using the src_cpp or src_h lib #80](https://github.com/khoih-prog/ESPAsync_WiFiManager/discussions/80) 2. Optimize library code by using `reference-passing` instead of `value-passing` 3. Update all examples --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d29198c..15aefc2 100644 --- a/README.md +++ b/README.md @@ -259,14 +259,14 @@ The current library implementation, using `xyz-Impl.h` instead of standard `xyz. You can use ``` -#include //https://github.com/khoih-prog/AsyncHTTPRequest_Generic +#include //https://github.com/khoih-prog/AsyncHTTPRequest_Generic ``` in many files. But be sure to use the following `#include ` **in just 1 `.h`, `.cpp` or `.ino` file**, which must **not be included in any other file**, to avoid `Multiple Definitions` Linker Error ``` // To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error -#include // https://github.com/khoih-prog/AsyncHTTPRequest_Generic +#include // https://github.com/khoih-prog/AsyncHTTPRequest_Generic ``` Have a look at the discussion in [Different behaviour using the src_cpp or src_h lib #80](https://github.com/khoih-prog/ESPAsync_WiFiManager/discussions/80)