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

Comment out the errors #10

Closed
wants to merge 1 commit into from
Closed

Conversation

expeon07
Copy link

@expeon07 expeon07 commented Jan 26, 2022

Comment out the lines the give out errors. Not sure whether they are necessary.
// #define LOVE \n❀ π–€π–“π–ˆπ–”π–“π–‰π–Žπ–™π–Žπ–”π–“π–†π–‘ π•·π–”π–›π–Š ❀
// #pragma message( STR(INFORMATION) )

// #define LOVE \n❀ π–€π–“π–ˆπ–”π–“π–‰π–Žπ–™π–Žπ–”π–“π–†π–‘ π•·π–”π–›π–Š ❀
// #pragma message( STR(INFORMATION) )
@GiorgosXou
Copy link
Owner

They are kind of unnecessary (they are mostly reminders*), but it makes no sense why those two lines would produce any kind of errors (maybe encoding ones?)... could you please comment where and how do you compile it? what version of gcc or g++ or Arduino do you use and what the error messages tell you?

*those macros are mainly being used as reminds, to let users know whether or not they are able to use specific features of the library based on the user's defined function & property preferences. Could you try just removing LOVE from #define INFORMATION and let me know if it compiles, like so:

// #define LOVE \nheart π–€π–“π–ˆπ–”π–“π–‰π–Žπ–™π–Žπ–”π–“π–†π–‘ π•·π–”π–›π–Š heart
...
#define INFORMATION MSG0 MSG1 MSG2 ... \\ <--- LOVE IS REMOVED
#pragma message( STR(INFORMATION) )

@GiorgosXou GiorgosXou mentioned this pull request Jan 27, 2022
@expeon07
Copy link
Author

Hi, I'm using the Arduino IDE to upload the code on an Arduino Uno.
image
I get this error after following your suggestion

@GiorgosXou
Copy link
Owner

GiorgosXou commented Jan 27, 2022

This doesn't look as an error, what you are looking at is an indication\note\reminder that the macro #prgma message( STR(INFORMATION) ) was executed and the output of it was [Ζ’x] |β€£ Sigmoid |β€£ Tanh |βŒ₯| which means that you used\defined Sigmoid & Tanh functions inside your sketch

@GiorgosXou
Copy link
Owner

could you please copy & paste the whole console output?

@expeon07
Copy link
Author

Hi, here is the whole output

In file included from Arduino/libraries/NeuralNetwork/examples/Any_Activation_Function_Per_Layer/Any_Activation_Function_Per_Layer.ino:8:0:
Arduino/libraries/NeuralNetwork/src/NeuralNetwork.h:304:35: note: #pragma message: 
[Ζ’x] |β€£ Sigmoid |β€£ Tanh |βŒ₯|
 #pragma message( STR(INFORMATION) )
                                   ^
Sketch uses 8484 bytes (26%) of program storage space. Maximum is 32256 bytes.
Global variables use 398 bytes (19%) of dynamic memory, leaving 1650 bytes for local variables. Maximum is 2048 bytes.

@GiorgosXou
Copy link
Owner

This is not an error, this is a note\message\reminder that your sketch\code uses Sigmoid and Tanh, it literally says /NeuralNetwork.h:304:35: note: #pragma message

And It compiles Successfully:

Sketch uses 8484 bytes (26%) of program storage space. Maximum is 32256 bytes.
Global variables use 398 bytes (19%) of dynamic memory, leaving 1650 bytes for local variables. Maximum is 2048 bytes.

@GiorgosXou GiorgosXou closed this Jan 27, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants