Created Tue, 03 Dec 2013 04:04:29 +0000 by ajax0117
Tue, 03 Dec 2013 04:04:29 +0000
Getting the following errors when compiling the HTTP Webserver sample code located here [url]http://www.digilentinc.com/Data/Documents/Demonstration%20Project/HTTPSrv.zip[/url]
I am able to compile and use all other example WiFi sketches with no issues
Currently using version 20130715 of Mpide and am using an UNO32 with WiFi Shield
Any help is appreciated Thanks
WebServer1\Helper.cpp.o: In function SetLED(SLED::STATE)': C:/Users/art/Documents/mpide/libraries/WebServer1/Helper.cpp:55: multiple definition of
SetLED(SLED::STATE)'
Helper.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/Helper.cpp:55: first defined here
WebServer1\Helper.cpp.o: In function GetLEDState()': C:/Users/art/Documents/mpide/libraries/WebServer1/Helper.cpp:95: multiple definition of
GetLEDState()'
Helper.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/Helper.cpp:95: first defined here
WebServer1\Helper.cpp.o: In function GetNumb(unsigned char*, int, char, char*)': C:/Users/art/Documents/mpide/libraries/WebServer1/Helper.cpp:165: multiple definition of
GetNumb(unsigned char*, int, char, char*)'
Helper.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/Helper.cpp:165: first defined here
WebServer1\Helper.cpp.o: In function GetMAC(MAC&, char*)': C:/Users/art/Documents/mpide/libraries/WebServer1/Helper.cpp:139: multiple definition of
GetMAC(MAC&, char*)'
Helper.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/Helper.cpp:139: first defined here
WebServer1\Helper.cpp.o: In function GetIP(IPv4&, char*)': C:/Users/art/Documents/mpide/libraries/WebServer1/Helper.cpp:115: multiple definition of
GetIP(IPv4&, char*)'
Helper.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/Helper.cpp:115: first defined here
WebServer1\Helper.cpp.o: In function GetDayAndTime(unsigned int, char*)': C:/Users/art/Documents/mpide/libraries/WebServer1/Helper.cpp:230: multiple definition of
GetDayAndTime(unsigned int, char*)'
Helper.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/Helper.cpp:230: first defined here
WebServer1\Helper.cpp.o: In function SDRead(File&, unsigned char*, unsigned long)': C:/Users/art/Documents/mpide/libraries/WebServer1/Helper.cpp:369: multiple definition of
SDRead(File&, unsigned char*, unsigned long)'
Helper.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/Helper.cpp:369: first defined here
WebServer1\HTMLReboot.cpp.o: In function ComposeHTMLRebootPage(CLIENTINFO_T*)': C:/Users/art/Documents/mpide/libraries/WebServer1/HTMLReboot.cpp:74: multiple definition of
ComposeHTMLRebootPage(CLIENTINFO_T*)'
HTMLReboot.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/HTMLReboot.cpp:74: first defined here
WebServer1\HTMLRestart.cpp.o: In function ComposeHTMLRestartPage(CLIENTINFO_T*)': C:/Users/art/Documents/mpide/libraries/WebServer1/HTMLRestart.cpp:74: multiple definition of
ComposeHTMLRestartPage(CLIENTINFO_T*)'
HTMLRestart.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/HTMLRestart.cpp:74: first defined here
WebServer1\HTMLSample.cpp.o: In function ComposeHTMLSamplePage(CLIENTINFO_T*)': C:/Users/art/Documents/mpide/libraries/WebServer1/HTMLSample.cpp:111: multiple definition of
ComposeHTMLSamplePage(CLIENTINFO_T*)'
HTMLSample.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/HTMLSample.cpp:111: first defined here
WebServer1\HTMLSDPage.cpp.o: In function __static_initialization_and_destruction_0': C:/Users/art/Documents/mpide/libraries/WebServer1/HTMLSDPage.cpp:320: multiple definition of
fileSD'
HTMLSDPage.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/HTMLSDPage.cpp:320: first defined here
WebServer1\HTMLSDPage.cpp.o: In function SDSetup()': C:/Users/art/Documents/mpide/libraries/WebServer1/HTMLSDPage.cpp:87: multiple definition of
SDSetup()'
HTMLSDPage.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/HTMLSDPage.cpp:87: first defined here
WebServer1\HTMLSDPage.cpp.o: In function __static_initialization_and_destruction_0': C:/Users/art/Documents/mpide/libraries/WebServer1/HTMLSDPage.cpp:320: multiple definition of
sdLockCur'
HTMLSDPage.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/HTMLSDPage.cpp:320: first defined here
WebServer1\HTMLSDPage.cpp.o:(.sdata.sdLock+0x0): multiple definition of sdLock' HTMLSDPage.cpp.o:(.sdata.sdLock+0x0): first defined here WebServer1\HTMLSDPage.cpp.o: In function
__static_initialization_and_destruction_0':
C:/Users/art/Documents/mpide/libraries/WebServer1/HTMLSDPage.cpp:320: multiple definition of fSDfs' HTMLSDPage.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/HTMLSDPage.cpp:320: first defined here WebServer1\HTMLSDPage.cpp.o: In function
ComposeHTMLSDPage(CLIENTINFO_T*)':
C:/Users/art/Documents/mpide/libraries/WebServer1/HTMLSDPage.cpp:150: multiple definition of ComposeHTMLSDPage(CLIENTINFO_T*)' HTMLSDPage.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/HTMLSDPage.cpp:150: first defined here WebServer1\HTMLTerminate.cpp.o: In function
ComposeHTMLTerminatePage(CLIENTINFO_T*)':
C:/Users/art/Documents/mpide/libraries/WebServer1/HTMLTerminate.cpp:74: multiple definition of ComposeHTMLTerminatePage(CLIENTINFO_T*)' HTMLTerminate.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/HTMLTerminate.cpp:74: first defined here WebServer1\HTTPHelpers.cpp.o: In function
ComposeHTTP404Error(CLIENTINFO_T*)':
C:/Users/art/Documents/mpide/libraries/WebServer1/HTTPHelpers.cpp:76: multiple definition of ComposeHTTP404Error(CLIENTINFO_T*)' HTTPHelpers.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/HTTPHelpers.cpp:76: first defined here WebServer1\HTTPHelpers.cpp.o: In function
GetContentTypeFromExt(char const*)':
C:/Users/art/Documents/mpide/libraries/WebServer1/HTTPHelpers.cpp:129: multiple definition of GetContentTypeFromExt(char const*)' HTTPHelpers.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/HTTPHelpers.cpp:129: first defined here WebServer1\HTTPHelpers.cpp.o: In function
BuildHTTPOKStr(bool, unsigned long, char const*, char*, unsigned long)':
C:/Users/art/Documents/mpide/libraries/WebServer1/HTTPHelpers.cpp:183: multiple definition of BuildHTTPOKStr(bool, unsigned long, char const*, char*, unsigned long)' HTTPHelpers.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/HTTPHelpers.cpp:183: first defined here WebServer1\ProcessClient.cpp.o: In function
ProcessClient(CLIENTINFO_T*)':
C:/Users/art/Documents/mpide/libraries/WebServer1/ProcessClient.cpp:91: multiple definition of ProcessClient(CLIENTINFO_T*)' ProcessClient.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/ProcessClient.cpp:91: first defined here WebServer1\ProcessClient.cpp.o: In function
AddHTMLPage(char const*, GCMD::ACTION ()(CLIENTINFO_T))':
C:/Users/art/Documents/mpide/libraries/WebServer1/ProcessClient.cpp:465: multiple definition of AddHTMLPage(char const*, GCMD::ACTION (*)(CLIENTINFO_T*))' ProcessClient.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/ProcessClient.cpp:465: first defined here WebServer1\ProcessClient.cpp.o: In function
SetDefaultHTMLPage(GCMD::ACTION ()(CLIENTINFO_T))':
C:/Users/art/Documents/mpide/libraries/WebServer1/ProcessClient.cpp:498: multiple definition of SetDefaultHTMLPage(GCMD::ACTION (*)(CLIENTINFO_T*))' ProcessClient.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/ProcessClient.cpp:498: first defined here WebServer1\ProcessClient.cpp.o: In function
JumpToComposeHTMLPage(CLIENTINFO_T*, GCMD::ACTION ()(CLIENTINFO_T))':
C:/Users/art/Documents/mpide/libraries/WebServer1/ProcessClient.cpp:520: multiple definition of JumpToComposeHTMLPage(CLIENTINFO_T*, GCMD::ACTION (*)(CLIENTINFO_T*))' ProcessClient.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/ProcessClient.cpp:520: first defined here WebServer1\ProcessServer.cpp.o: In function
__static_initialization_and_destruction_0':
C:/Users/art/Documents/mpide/libraries/WebServer1/ProcessServer.cpp:946: multiple definition of tcpServer' ProcessServer.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/ProcessServer.cpp:946: first defined here WebServer1\ProcessServer.cpp.o: In function
ServerSetup()':
C:/Users/art/Documents/mpide/libraries/WebServer1/ProcessServer.cpp:144: multiple definition of ServerSetup()' ProcessServer.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/ProcessServer.cpp:144: first defined here WebServer1\ProcessServer.cpp.o:(.sdata.state+0x0): multiple definition of
state'
ProcessServer.cpp.o:(.sdata.state+0x0): first defined here
WebServer1\ProcessServer.cpp.o:(.sdata.stateNext+0x0): multiple definition of stateNext' ProcessServer.cpp.o:(.sdata.stateNext+0x0): first defined here WebServer1\ProcessServer.cpp.o:(.sdata.stateTimeOut+0x0): multiple definition of
stateTimeOut'
ProcessServer.cpp.o:(.sdata.stateTimeOut+0x0): first defined here
WebServer1\ProcessServer.cpp.o: In function ProcessServer()': C:/Users/art/Documents/mpide/libraries/WebServer1/ProcessServer.cpp:216: multiple definition of
ProcessServer()'
ProcessServer.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/ProcessServer.cpp:216: first defined here
WebServer1\ProcessServer.cpp.o: In function __static_initialization_and_destruction_0': C:/Users/art/Documents/mpide/libraries/WebServer1/ProcessServer.cpp:946: multiple definition of
status'
ProcessServer.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/ProcessServer.cpp:946: first defined here
WebServer1\ProcessServer.cpp.o: In function __static_initialization_and_destruction_0': C:/Users/art/Documents/mpide/libraries/WebServer1/ProcessServer.cpp:946: multiple definition of
iNetwork'
ProcessServer.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/ProcessServer.cpp:946: first defined here
WebServer1\ProcessServer.cpp.o: In function __static_initialization_and_destruction_0': C:/Users/art/Documents/mpide/libraries/WebServer1/ProcessServer.cpp:946: multiple definition of
cNetworks'
ProcessServer.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/ProcessServer.cpp:946: first defined here
WebServer1\ProcessServer.cpp.o: In function __static_initialization_and_destruction_0': C:/Users/art/Documents/mpide/libraries/WebServer1/ProcessServer.cpp:946: multiple definition of
conID'
ProcessServer.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/ProcessServer.cpp:946: first defined here
WebServer1\ProcessServer.cpp.o: In function __static_initialization_and_destruction_0': C:/Users/art/Documents/mpide/libraries/WebServer1/ProcessServer.cpp:946: multiple definition of
secInfo'
ProcessServer.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/ProcessServer.cpp:946: first defined here
WebServer1\ProcessServer.cpp.o:(.sdata.szSsid+0x0): multiple definition of szSsid' ProcessServer.cpp.o:(.sdata.szSsid+0x0): first defined here WebServer1\ProcessServer.cpp.o:(.sdata.key+0x0): multiple definition of
key'
ProcessServer.cpp.o:(.sdata.key+0x0): first defined here
WebServer1\ProcessServer.cpp.o: In function __static_initialization_and_destruction_0': C:/Users/art/Documents/mpide/libraries/WebServer1/ProcessServer.cpp:946: multiple definition of
epochTime'
ProcessServer.cpp.o:C:/Users/art/AppData/Local/Temp/build1294032601589727252.tmp/ProcessServer.cpp:946: first defined here
C:/MPIDE/mpide-0023-windows-20130715/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: address 0xa00046c8 of WebServer1.cpp.elf section .stack' is not within region
kseg1_data_mem'
C:/MPIDE/mpide-0023-windows-20130715/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: address 0xa0004800 of WebServer1.cpp.elf section .ramfunc' is not within region
kseg1_data_mem'
C:/MPIDE/mpide-0023-windows-20130715/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: WebServer1.cpp.elf section .mdebug.abi32' will not fit in region
kseg1_data_mem'
C:/MPIDE/mpide-0023-windows-20130715/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: Not enough space to allocate both stack and heap. Reduce heap and/or stack size.
C:/MPIDE/mpide-0023-windows-20130715/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: address 0xa00046c8 of WebServer1.cpp.elf section .stack' is not within region
kseg1_data_mem'
C:/MPIDE/mpide-0023-windows-20130715/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: address 0xa0004800 of WebServer1.cpp.elf section .ramfunc' is not within region
kseg1_data_mem'
C:/MPIDE/mpide-0023-windows-20130715/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: Not enough space to allocate both stack and heap. Reduce heap and/or stack size.
C:/MPIDE/mpide-0023-windows-20130715/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: region `kseg1_data_mem' overflowed by 2048 bytes
collect2: ld returned 1 exit status
Tue, 03 Dec 2013 18:08:50 +0000
I think you are compiling in a library that you do not want to compile in. I see in the error list under libraries WebServer1... this is NOT part of the project. My guess is that you are compiling in 2 copies of the LED name space which is defined in helper.cpp
I see...
/Users/art/Documents/mpide/libraries/WebServer1/Helper.cpp:55:
This should not be compiled as part of the project.