how to run object file(*.o)using c/c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to run object file(*.o)using c/c++

I want to create an file in asm and than run it on other computers, so i would like to just let it object file and than run it using program writen in c

12th May 2019, 7:03 AM
nicolas turek
nicolas turek - avatar
1 Answer
0
You can't, you need to link .o files before running. Try to use ld (the GNU linker): ld [options] file1.o file2.o ...
13th May 2019, 6:51 AM
daniel
daniel - avatar