Pages: [1]   Go Down
Author Topic: Error in arduino library  (Read 143 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am modifying a library that I downloaded. However, I am at work, writing arduino code when I should be counting beans. Shhh... Therefore, I don't have access to my arduino IDE.

My question is, what will happen if there is an error in a library? Like a syntax error that prevents the code from compiling? Will I see it when I try to import it? Or when I try to compile the sketch that includes the library? How will I know if any given error is in my library or in my sketch? I'm not talking about logic errors. I will be able to spot them. I am talking about compiling errors. Does it make a difference if I edit the library in place in the library folder itself? Do I need to restart the arduino ide each time I make a change to the library code?

I suppose I will figure this all out for myself when I get home, but just in case there is anything weird about this, I thought I'd ask here first.
Logged

California
Offline Offline
Faraday Member
**
Karma: 82
Posts: 3123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Will I see it when I try to import it?
No
Quote
Or when I try to compile the sketch that includes the library?
Yes
Quote
How will I know if any given error is in my library or in my sketch?
It tells you the filename and line number for the error.
Quote
Does it make a difference if I edit the library in place in the library folder itself?
Make a difference compared to what? If you edit the library within the library folder, it alters the library for any sketch that uses it. You can make a copy of it and put it in a specific sketch's folder if you only want to make it differ in a single sketch.
Quote
Do I need to restart the arduino ide each time I make a change to the library code?
Not if its just within the file. If you start copying/moving/renaming files and directories, you'll need to restart.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

+1 thanks!
Logged

Pages: [1]   Go Up
Jump to: