cmagagna / CC3000Patch

An Arduino sketch to upgrade a TI CC3000 WiFi module to the latest firmware
18 stars 2 forks source link

getting "multiple defines" when trying to compile sketch...had deleted adafruit's library #2

Open BitKnitting opened 11 years ago

BitKnitting commented 11 years ago

I THOUGHT i followed directions: deleted adafruit's library. But receiving multiple define conflicts, e.g. (just copy/pasted a few...there are many):

CC3000Patch/Adafruit_CC3000_4Patching.cpp.o: In function Adafruit_CC3000': /Users/margaret/Documents/Arduino/libraries/CC3000Patch/Adafruit_CC3000_4Patching.cpp:181: multiple definition ofAdafruit_CC3000::Adafruit_CC3000(unsigned char, unsigned char, unsigned char, unsigned char)' Adafruit_CC3000_4Patching.cpp.o:Adafruit_CC3000_4Patching.cpp:181: first defined here CC3000Patch/Adafruit_CC3000_4Patching.cpp.o:(.bss.g_csPin+0x0): multiple definition of g_csPin' Adafruit_CC3000_4Patching.cpp.o:(.bss.g_csPin+0x0): first defined here CC3000Patch/Adafruit_CC3000_4Patching.cpp.o:(.bss.g_irqPin+0x0): multiple definition ofg_irqPin' Adafruit_CC3000_4Patching.cpp.o:(.bss.g_irqPin+0x0): first defined here CC3000Patch/Adafruit_CC3000_4Patching.cpp.o:(.bss.g_vbatPin+0x0): multiple definition of g_vbatPin' Adafruit_CC3000_4Patching.cpp.o:(.bss.g_vbatPin+0x0): first defined here CC3000Patch/Adafruit_CC3000_4Patching.cpp.o:(.bss.g_IRQnum+0x0): multiple definition ofg_IRQnum' Adafruit_CC3000_4Patching.cpp.o:(.bss.g_IRQnum+0x0): first defined here CC3000Patch/Adafruit_CC3000_4Patching.cpp.o:(.bss.g_SPIspeed+0x0): multiple definition of g_SPIspeed' Adafruit_CC3000_4Patching.cpp.o:(.bss.g_SPIspeed+0x0): first defined here CC3000Patch/Adafruit_CC3000_4Patching.cpp.o:(.bss.ulCC3000DHCP+0x0): multiple definition ofulCC3000

cmagagna commented 11 years ago

It looks like you're copying the patched Adafruit library to your Libraries folder? Don't do that. Just put all the files, the Arduino CC3000Patch.ino file, the Adafruit library files etc. in a single folder called "CC3000Patch" in your regular documents or Arduino programs folder, and run it from there.