mleonidos wrote on Sunday, December 28, 2008:
HI. I very need your help )
I want to use c++ with FreeRTOS. I read that I can build FreeRTOS with g++ and use c++. So I downloaded FreeRTOS demo (CORTEX_LM3Sxxxx_Eclipse), and change "arm-none-eabi-gcc" to "arm-none-eabi-g++"…
There was many errors, so I have to add some typecasts and to remove data hiding…
And than he told me this:
…
ALIGN_STRUCT_END=__attribute\(\(aligned\(4\)\)\) -D sprintf=usprintf -D snprintf=usnprintf -D printf=uipprintf -I …/…/Common/ethernet/uIP/uip-1.0/uip -I ./webserver -ffunction-sections -fdata-sections -I …/…/Common/drivers/LuminaryMicro main.o timertest.o ./ParTest/ParTest.o rit128x96x4.o osram128x64x4.o formike128x128x16.o …/…/Common/drivers/LuminaryMicro/ustdlib.o …/…/Common/Minimal/BlockQ.o …/…/Common/Minimal/blocktim.o …/…/Common/Minimal/death.o …/…/Common/Minimal/integer.o …/…/Common/Minimal/PollQ.o …/…/Common/Minimal/semtest.o …/…/Common/Minimal/GenQTest.o …/…/Common/Minimal/QPeek.o …/…/Common/Minimal/recmutex.o …/…/Common/Minimal/IntQueue.o ./IntQueueTimer.o ./webserver/uIP_Task.o ./webserver/emac.o ./webserver/httpd.o ./webserver/httpd-cgi.o ./webserver/httpd-fs.o ./webserver/http-strings.o …/…/Common/ethernet/uIP/uip-1.0/uip/uip_arp.o …/…/Common/ethernet/uIP/uip-1.0/uip/psock.o …/…/Common/ethernet/uIP/uip-1.0/uip/timer.o …/…/Common/ethernet/uIP/uip-1.0/uip/uip.o …/…/…/Source/list.o …/…/…/Source/queue.o …/…/…/Source/tasks.o …/…/…/Source/portable/GCC/ARM_CM3/port.o …/…/…/Source/portable/MemMang/heap_2.o startup.o …/…/Common/drivers/LuminaryMicro/arm-none-eabi-gcc/libdriver.a …/…/Common/drivers/LuminaryMicro/arm-none-eabi-gcc/libgr.a -nostartfiles -Xlinker -oRTOSDemo.axf -Xlinker -M -Xlinker -Map=rtosdemo.map -Xlinker --no-gc-sections
d:/arm/bin/…/lib/gcc/arm-none-eabi/4.2.3/…/…/…/…/arm-none-eabi/bin/ld.exe: section .ARM.exidx.text._Z29vApplicationStackOverflowHookPP19tskTaskControlBlockPa [00016184 -> 0001618b] overlaps section .data [00016184 -> 000167d7]
d:/arm/bin/…/lib/gcc/arm-none-eabi/4.2.3/…/…/…/…/arm-none-eabi/bin/ld.exe: section .bss [000167d8 -> 000209c3] overlaps section .ARM.exidx.text._Z10clock_initv [000167d4 -> 000167db]
d:/arm/bin/…/lib/gcc/arm-none-eabi/4.2.3/…/…/…/…/arm-none-eabi/bin/ld.exe: section .ARM.extab.text._Z28vApplicationProcessFormInputPcl [000167dc -> 000167e7] overlaps section .bss [000167d8 -> 000209c3]
main.o: In function `vOLEDTask’:
C:\Documents and Settings\Leonidos\Desktop\FreeRTOS\Demo\CORTEX_LM3Sxxxx_Eclipse\RTOSDemo/main.c:432: undefined reference to `usprintf’
./webserver/httpd.o: In function `handle_input’:
C:\Documents and Settings\Leonidos\Desktop\FreeRTOS\Demo\CORTEX_LM3Sxxxx_Eclipse\RTOSDemo/webserver/httpd.c:256: undefined reference to `http_get’
C:\Documents and Settings\Leonidos\Desktop\FreeRTOS\Demo\CORTEX_LM3Sxxxx_Eclipse\RTOSDemo/webserver/httpd.c:256: undefined reference to `http_get’
C:\Documents and Settings\Leonidos\Desktop\FreeRTOS\Demo\CORTEX_LM3Sxxxx_Eclipse\RTOSDemo/webserver/httpd.c:266: undefined reference to `http_index_html’
C:\Documents and Settings\Leonidos\Desktop\FreeRTOS\Demo\CORTEX_LM3Sxxxx_Eclipse\RTOSDemo/webserver/httpd.c:266: undefined reference to `http_index_html’
C:\Documents and Settings\Leonidos\Desktop\FreeRTOS\Demo\CORTEX_LM3Sxxxx_Eclipse\RTOSDemo/webserver/httpd.c:287: undefined reference to `http_referer’
C:\Documents and Settings\Leonidos\Desktop\FreeRTOS\Demo\CORTEX_LM3Sxxxx_Eclipse\RTOSDemo/webserver/httpd.c:287: undefined reference to `http_referer’
./webserver/httpd.o: In function `send_headers’:
C:\Documents and Settings\Leonidos\Desktop\FreeRTOS\Demo\CORTEX_LM3Sxxxx_Eclipse\RTOSDemo/webserver/httpd.c:198: undefined reference to `http_content_type_binary’
C:\Documents and Settings\Leonidos\Desktop\FreeRTOS\Demo\CORTEX_LM3Sxxxx_Eclipse\RTOSDemo/webserver/httpd.c:198: undefined reference to `http_content_type_binary’
C:\Documents and Settings\Leonidos\Desktop\FreeRTOS\Demo\CORTEX_LM3Sxxxx_Eclipse\RTOSDemo/webserver/httpd.c:198: undefined reference to `http_content_type_binary’
C:\Documents and Settings\Leonidos\Desktop\FreeRTOS\Demo\CORTEX_LM3Sxxxx_Eclipse\RTOSDemo/webserver/httpd.c:198: undefined reference to `http_content_type_binary’
C:\Documents and Settings\Leonidos\Desktop\FreeRTOS\Demo\CORTEX_LM3Sxxxx_Eclipse\RTOSDemo/webserver/httpd.c:199: undefined reference to `http_html’
C:\Documents and Settings\Leonidos\Desktop\FreeRTOS\Demo\CORTEX_LM3Sxxxx_Eclipse\RTOSDemo/webserver/httpd.c:199: undefined reference to `http_html’
C:\Documents and Settings\Leonidos\Desktop\FreeRTOS\Demo\CORTEX_LM3Sxxxx_Eclipse\RTOSDemo/webserver/httpd.c:199: undefined reference to `http_shtml’
…
Please give me some advice to undestang what is going on there. )
Thanks.