It's UWAweek 42 (2nd semester, week 12)

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying selected article
Showing 1 of 738 articles.
Currently 85 other people reading this forum.


 UWA week 38 (2nd semester, week 8) ↓
SVG not supported

Login to reply

👍?
helpful
7:26am Fri 20th Sep, Joshua N.

"Prem Patel" <23*7*2*1@s*u*e*t*u*a*e*u*a*> wrote:
> I’ve put the same thing which I was using to compile manually so like cc -o final translated_code.c translated_code1.c
Firstly, remember that you need to submit 1 c source file. So, you need to merge these files together. The error you are getting usually mean you are trying to compile an object file. In other words a file with the ".o" extension. Object files are used when compiling multiple files together. If you want to compile two files together you need to "include" the other file in the main file. Usually the easiest way is to define a header file and then use a make file. However, you can't submit a header file or the second file or a make file so you need to merge the files together. This will fix the issue. I would describe how to compile two separate files, but I don't want people doing that since it goes against the requirement of the project. Just write one file to the other and compile a single file.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy