7 segment library compilation Error

hello Guys
ive included the Dean reading's 7 segment library & when i try to compile its examples it gives me error

'class sevseg' has no member named 'begin'
any idea plz ?

Post a link to where you got the library from. Please use the chain links icon on the toolbar to make it clickable. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.

[

here is the link
im using Arduino 1.8.5 &](SevSeg/README.md at master · DeanIsMe/SevSeg · GitHub)

When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Program Files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\Arduino\hardware -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Users\janos\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10805 -build-path C:\Users\janos\AppData\Local\Temp\arduino_build_759340 -warnings=none -build-cache C:\Users\janos\AppData\Local\Temp\arduino_cache_157650 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\Arduino\hardware\tools\avr -verbose C:\Users\janos\Downloads\SevSeg-master (1)\SevSeg-master\examples\testWholeDisplay\testWholeDisplay.ino
C:\Program Files\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program C:\Users\janos\Downloads\SevSeg-master (1)\SevSeg-master\examples\testWholeDisplay\testWholeDisplay.ino
Using board 'uno' from platform in folder: C:\Program Files\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\janos\AppData\Local\Temp\arduino_build_759340\sketch\testWholeDisplay.ino.cpp" -o "nul"
"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\janos\Documents\Arduino\libraries\SevSeg-master\src" "C:\Users\janos\AppData\Local\Temp\arduino_build_759340\sketch\testWholeDisplay.ino.cpp" -o "nul"
"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\janos\Documents\Arduino\libraries\SevSeg-master\src" "C:\Users\janos\Documents\Arduino\libraries\SevSeg-master\src\SevSeg.cpp" -o "nul"
Generating function prototypes...
"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\janos\Documents\Arduino\libraries\SevSeg-master\src" "C:\Users\janos\AppData\Local\Temp\arduino_build_759340\sketch\testWholeDisplay.ino.cpp" -o "C:\Users\janos\AppData\Local\Temp\arduino_build_759340\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\janos\AppData\Local\Temp\arduino_build_759340\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\janos\Documents\Arduino\libraries\SevSeg-master\src" "C:\Users\janos\AppData\Local\Temp\arduino_build_759340\sketch\testWholeDisplay.ino.cpp" -o "C:\Users\janos\AppData\Local\Temp\arduino_build_759340\sketch\testWholeDisplay.ino.cpp.o"
C:\Users\janos\Downloads\SevSeg-master (1)\SevSeg-master\examples\testWholeDisplay\testWholeDisplay.ino: In function 'void setup()':

testWholeDisplay:44: error: 'class SevSeg' has no member named 'begin'

   sevseg.begin(COMMON_CATHODE, numDigits, digitPins, segmentPins);

          ^

testWholeDisplay:45: error: 'class SevSeg' has no member named 'setBrightness'

   sevseg.setBrightness(10); //Note: 100 brightness simply corresponds to a delay of 2000us after lighting each segment. A brightness of 0 

          ^

C:\Users\janos\Downloads\SevSeg-master (1)\SevSeg-master\examples\testWholeDisplay\testWholeDisplay.ino: In function 'void loop()':

testWholeDisplay:57: error: 'class SevSeg' has no member named 'setNumber'

   sevseg.setNumber(8888,decPlace);

          ^

testWholeDisplay:61: error: 'class SevSeg' has no member named 'refreshDisplay'

   sevseg.refreshDisplay(); // Must run repeatedly; don't use blocking code (ex: delay()) in the loop() function or this won't work right

          ^

Multiple libraries were found for "SevSeg.h"
 Used: C:\Users\janos\Documents\Arduino\libraries\SevSeg-master
 Not used: C:\Users\janos\Documents\Arduino\libraries\SevSeg-3.3.0
Using library SevSeg-master at version 1.0.2 in folder: C:\Users\janos\Documents\Arduino\libraries\SevSeg-master 
exit status 1
'class SevSeg' has no member named 'begin'

 Error downloading http://downloads.arduino.cc/libraries/library_index.json
java.lang.RuntimeException: java.lang.Exception: Error downloading http://downloads.arduino.cc/libraries/library_index.json
 at cc.arduino.contributions.libraries.ui.LibraryManagerUI.lambda$onUpdatePressed$0(LibraryManagerUI.java:212)
 at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Exception: Error downloading http://downloads.arduino.cc/libraries/library_index.json
 at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:131)
 at cc.arduino.contributions.JsonDownloader.download(JsonDownloader.java:49)
 at cc.arduino.contributions.GZippedJsonDownloader.download(GZippedJsonDownloader.java:63)
 at cc.arduino.contributions.libraries.LibraryInstaller.updateIndex(LibraryInstaller.java:66)
 at cc.arduino.contributions.libraries.ui.LibraryManagerUI.lambda$onUpdatePressed$0(LibraryManagerUI.java:209)
 ... 1 more
Caused by: java.net.UnknownHostException: downloads.arduino.cc
 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
 at java.net.Socket.connect(Socket.java:589)
 at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
 at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
 at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
 at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
 at sun.net.www.http.HttpClient.New(HttpClient.java:339)
 at sun.net.www.http.HttpClient.New(HttpClient.java:357)
 at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202)
 at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1181)
 at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
 at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966)
 at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
 at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
 at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:129)
 ... 5 more

ive removed some lines because the message exceeds the size

Here's the clue to the problem:

janosandi:

Multiple libraries were found for "SevSeg.h"

Used: C:\Users\janos\Documents\Arduino\libraries\SevSeg-master
Not used: C:\Users\janos\Documents\Arduino\libraries\SevSeg-3.3.0
Using library SevSeg-master at version 1.0.2 in folder: C:\Users\janos\Documents\Arduino\libraries\SevSeg-master

You have two libraries named SevSeg installed. The sketch you're attempting to compile is written for this library:

but the Arduino IDE chose to use a completely different library located at C:\Users\janos\Documents\Arduino\libraries\SevSeg-master.

There are two possible solutions to the problem:

  • Remove the C:\Users\janos\Documents\Arduino\libraries\SevSeg-master folder, which will cause the other library to be used.
  • Use code that's written for the library at C:\Users\janos\Documents\Arduino\libraries\SevSeg-master. You will likely find example sketches for that library at C:\Users\janos\Documents\Arduino\libraries\SevSeg-master\examples.

Note that you actually have another version of the SevSeg library on your computer at C:\Users\janos\Downloads\SevSeg-master (1)\SevSeg-master. Since that library is not located in the libraries folder, it will not be used by the Arduino IDE, but it has potential to make the situation even more confusing.

thx pert its ok now i can compile it

You're welcome. I'm glad to hear it's working now. Enjoy!
Per

thank eror is fix