I am facing a problem where being that I am having troubles with accessing the libraries that I have installed for the creation of my Arduino project.
However, rather than accessing this, it decides to access my general drive instead.
I wish to change this so that it will go to the library that I have downloaded.
How can I change this factor?
It's not clear to me what your problem is.
Do you have libraries in your sketch folder and want to use those instead of the built-in or installed libraries? If so, try using '#include "library.h"' instead of '#include <library.h>'.
If that is not the problem, let us know where on your disk the library is that you want to use and what problem are you encountering when you try to use that library. A small example sketch and library would be helpful.
Arduino: 1.8.10 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328P (3.3V, 8 MHz)"
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:43: undefined reference to `setup'
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "SSD1306Ascii.h"
Used: C:\Users\OneDrive\Documents\Arduino\libraries\SSD1306Ascii
Multiple libraries were found for "SoftwareSerial.h"
Used: C:\Program
Multiple libraries were found for "MCP41_Simple.h"
Used: C:\Users\OneDrive\Documents\Arduino\libraries\MCP41_Simple
Multiple libraries were found for "SPI.h"
Used: C:\Program
Not used: C:\Program
Multiple libraries were found for "EEPROM.h"
Used: C:\Program
Not used: C:\Program
Multiple libraries were found for "Wire.h"
Used: C:\Program
Not used: C:\Program
Not used: C:\Users\OneDrive\Documents\Arduino\libraries\Wire-master
exit status 1
Error compiling for board Arduino Pro or Pro Mini.
Invalid library found in C:\Program Files (x86)\Arduino\libraries\SoftwareSerial-master: no headers files (.h) found in C:\Program Files (x86)\Arduino\libraries\SoftwareSerial-master
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
This is what I get when an attempt to compile my code.
What do I do? I do install the necessary libraries but this still happens.
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:43: undefined reference to `setup'
Start by putting a setup() function in your program and by posting the complete program here using code tags when you do.