spin2cpp of my slave0 spin program
Rsadeika
Posts: 3,837
I just ran my slave0.spin program with spin2cpp --ccode, and tried to compile with SimpleIDE, I got the following error:
Ray
Hopefully Eric can figure out what the problem is.Project Directory: E:/PropGCC_SimpleIDE/PropGCC/slave0/slave0/
propeller-elf-gcc.exe -o a.out -Os -mcmm -I . -fno-exceptions Float32.c Float32.h FloatMath.c FloatMath.h FloatString.c FloatString.h FullDuplexSerial.c FullDuplexSerial.h Sensirion.c Sensirion.h tools.c tools.h XBee_Driver.c XBee_Driver.h slave0.c
c:/propgcc/bin/../lib/gcc/propeller-elf/4.6.1/cmm/_crtbegin.o: In function `argc_cnt':
(.init+0x22): undefined reference to `_main'
collect2: ld returned 1 exit status
Done. Build Failed!
Check source for bad function call or global variable name `_main'
Ray
Comments
Eric
Ray
Sorry, I noticed we cross-posted at exactly the same time saying essentially the same thing, and I removed my post.
Ray
Ray
Yes, it's been resolved in the spin2cpp source code for a while. I just put up a binary release of spin2cpp 1.00 in case you don't want to build from source yourself.
Eric