Please post the invocation parameters for gcc/g++ for your addin. Also, is this the PrizmSDK, libfxcg, etc.?
It's PrizmSDK + libfxcg. Here's what I saw for linking. Compiling went fine.

Code:

> sh3eb-elf-gcc bullets.o posnmath.o starvak2.o xpo.o -mb -m4a-nofpu -mhitachi -nostdlib -TC:/Users/Kook/Desktop/TISTUFF/PrizmSDK-0.3/common/prizm.ld -Wl,-static -Wl,-gc-sections -LC:/Users/Kook/Desktop/TISTUFF/PrizmSDK-0.3/lib -lfxcg -lgcc -o C:/Users/Kook/Desktop/TISTUFF/PrizmSDK-0.3/projects/starvak2/starvak2.bin

(Whew!)
This is on Windows, by the way.
Maybe I accidentally didn't drop in one or more of the .a files in the /lib folder?
I tried deleting the -nostdlib flag from common/prizm_rules, and saw a bunch of linker errors at _stack_k, _end_k, _main_k, and _exit_k. Apparently, the full error report is really long, and standard library support isn't really finished.
Hey blue_bear94 I'm having the same problem, did you manage to solve it?
You need -lc as a link flag (probably between -lfxcg and -lgcc, otherwise before -lfxcg). You can't remove -nostdlib because that adds other stuff besides -lc which cannot be there.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 4 of 4
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement