Abdellazizhammami / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

Don't compile library when files are in sketch directory #782

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Have a .h and .cpp in the sketch directory with those 2 files having the 
same name as an Arduino library in ~/sketchbook/libraries/...
2. Include the .h from the sketch directory in the sketch with "", not <>.

What is the expected output?

Program compiled correctly as the library is not used.

What do you see instead?

IDE also compiles and links the library, which doesn't work.

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?

IDE 0.23 and 1.0, Linux 64bit, IDE downloaded from arduino.cc.

Original issue reported on code.google.com by gooc...@top.geek.nz on 8 Jan 2012 at 4:03

GoogleCodeExporter commented 8 years ago
Just a small bit of clarification. The sketch includes both libraries the one 
in the sketch directory, and the one in the system/user directory. Then 
complains about duplicate definitions, and things being defined twice. So the 
distinction between system wide libraries and sketch libraries is not 
maintained.

Original comment by rick.rickanderson on 20 Jun 2012 at 9:40