문제

I have a problem with Linux embedded OpenWRT. I must compile a software for arch MIPS. The software is composed of 2 file.c and 4 /include/file.h ... I have compiled a toolchain for Openwrt with the "new" gcc (for mips) I have compiled one by one the 2 file.c getting 2 file.o as output. How can I create a unique binary file to execute the software?

Second question: it is correct to compile the file one by one?

Thanks, I hope that my question is clear.

도움이 되었습니까?

해결책

You can create an OpenWrt package. See this tutorial. You can point OpenWrt to the folder, where your files are and let compile the project there instead of pulling it from a VCS repo.

See this SO answer about compiling multiple files with GCC.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top