What am I doing wrong? Sketch not recognising library...

Hi all.

I'm sorry if this is an annoying question, but it's got me stumped.

The arduino won't recognise the ethershield library. It doesn't have a problem with any other library, but this one doesn't want to work.

I've restarted the IDE/whole computer. Checked the spelling (for both file/folder, arduino sketch), it's in the libraries folder, in it's own folder. There is a .h file with the same name in the ethershield folder. I downloaded the whole zip file from github, so it shouldn't be missing any files.

I've attached some screenshots so hopefully I'm just doing something stupid.



I'm on win7 if it makes any difference.

Thanks in advance.

The arduino won't recognise the ethershield library.

How do you know?

It keeps on bring up errors on a downloaded sketch. It's saying different commands aren't recognised. I thought they'd be inside the library that it isn't recognising. The examples inside the ethershield library part aren't compiling either, keeps on popping up errors with them.

Thanks in advance for the help.

Did you restart the IDE after downloading the library?

What errors? Our psychic's start date is the 12th of never. If you need help before then, I'm sure something will occur to you.

PaulS:
Did you restart the IDE after downloading the library?

He said he did in the first post. Even stated he tried to restart the computer.

@Colomnmn
You need to post ALL of the error codes. Highlight the errors at the bottom of the IDE, copy them, click the # in the post reply editor and paste your the error between the code tags.

Sorry, I didn't mean to be vague with the error codes. I thought it was an error with the lirbraies not being recognised, and that I was missing a simple step with that.

It's popping up errors in all the examples within the ethershield sketches that came with the file, I would have thought they'd complile properly since they were included.

EtherShield_readpachube.pde: In function 'void loop()':
EtherShield_readpachube:140: error: invalid conversion from 'void (*)(uint8_t, uint16_t)' to 'void (*)(uint8_t, uint16_t, uint16_t)'
EtherShield_readpachube:140: error: initializing argument 4 of 'void EtherShield::ES_client_browse_url(prog_char*, char*, prog_char*, void (*)(uint8_t, uint16_t, uint16_t))'

From another sketch:

cosm.ino: In function 'void setup()':
cosm:111: error: 'acquireIPAddress' was not declared in this scope
cosm:113: error: 'printNetworkParameters' was not declared in this scope
cosm:124: error: 'resolveHost' was not declared in this scope
cosm:128: error: 'printIP' was not declared in this scope
cosm.ino: In function 'void loop()':
cosm:147: error: 'sensor_feed_post_callback' was not declared in this scope

Although, I'm noticing with some of the others, when the ethershield library is included with a " ", instead of < >, it compliles properly.

I hate asking for help with this stuff, I'd far rather figure it out myself and learn what I was doing wrong. But when I spend several hours getting nowhere, googling things that don't seem to match up to my problems (I looked through every library tutorial I could find, and nothing popped up as me doing wrong, googled the error codes, googled the library to see if other people were having the problem), and just staring at code that's just not working, it gets frustrating.

I'm surprised nobody has come up with some sort of arduino wizard/editor. "Which pins is the device in?" "What is it?" "What do you want it to do?" "What variables?" = Good, now here is your sketch, we've highlighted the variables you might want to change for different results.

I got all the examples except for the ones with "NanodeMAC" in them.

Although, I'm noticing with some of the others, when the ethershield library is included with a " ", instead of < >, it compliles properly.

The examples have quotes and it complies on my machine..

First thing I would do, take the Arduino program out of your downloads folder. One day when you go and clean your computer of temporary files, that will be one of folders that gets deleted. Move it to somewhere like C:\Programs Files\ (this is here most of your programs are kept anyway (if you're on a Windows PC)).
Second, right click in the address bar where you have installed the library and click "copy as text." Paste it here. This is mine: F:\Applications\Arduino\arduino-1.0.4\libraries\EtherShield

If that doesn't solve anything (which it probably won't), post your entire code in code tags.

for future reference, a very simple and healthy first step when yo uahve an issue like this is to try and use one of the examples with the offending library. change nothing, if it won't compile, its the library or IDE, if it will, it's your sketch. saved my butt a few times.

Thanks in advance for your help. I do appreciate it.

I moved the files around, and downloaded the latest IDE, hoping that might fix it. But no love there.

But I got it working!

I cut and copied the sketch I was trying to use from a website, I did a search for the original, downloaded the zip from github, and it had another part attached to the file. I'm quite happy now.

Thanks again for the help. :smiley: