简体   繁体   中英

COSMIC C - How to add assembler file to C code

I am getting this error when using atomthreads in cosmic c for stm8L151c6 micro controller.

clnk - symbol _archFirstThreadRestore not defined (Debug\atomkernel.o)

Ifound out that _archFirstThreadRestore is defined inside a assembler file named atomports_asm_cosmic.s linker cannot find those routines in the assembler file. How can I make linker to add the assembler file to the c code where those functions are used.

Yes got it. I got it worked. The problem was I have to add assembler files to the project source files. Which I didn't do.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM