Hi, thanks for creating this git. I have learned a lot from reading through here. I don't usually use Linux so learning makefile and compiling/linking is difficult. I am using vs to write the files and ubuntu with gcc under windows to follow along and compile. I am having trouble understanding how you are linking the input27b.c and the relation. The input27a.c should be the source file right, that gets turned into out.s which is the assembly(gas) of our source, then how is input27b.c and printint.c connected?? you never went into how this works.
I am using source.txt as input27a.c. and renamed input27b.c to params.c. I am getting all kinds of errors in the terminal that says not referenced. Basically linking problem. I know that comp1 is our program and its reading the source. I had no problem with my makefile until this tutorial. it would link the printint.c in the earlier tutorials and hasnt caused any problems until I tried linking the input27b.c(params.c) file.
Hi, thanks for creating this git. I have learned a lot from reading through here. I don't usually use Linux so learning makefile and compiling/linking is difficult. I am using vs to write the files and ubuntu with gcc under windows to follow along and compile. I am having trouble understanding how you are linking the input27b.c and the relation. The input27a.c should be the source file right, that gets turned into out.s which is the assembly(gas) of our source, then how is input27b.c and printint.c connected?? you never went into how this works.
I am using source.txt as input27a.c. and renamed input27b.c to params.c. I am getting all kinds of errors in the terminal that says not referenced. Basically linking problem. I know that comp1 is our program and its reading the source. I had no problem with my makefile until this tutorial. it would link the printint.c in the earlier tutorials and hasnt caused any problems until I tried linking the input27b.c(params.c) file.
Any help would be appreciated!!!