Hey,
I need to compile and link two C files together...what should i do to the files in order to be able to compile them as the following:
gcc file1.c main.c
and then run using ./a.out...
Can anyone tell me the steps please...thank you..
Hey,
I need to compile and link two C files together...what should i do to the files in order to be able to compile them as the following:
gcc file1.c main.c
and then run using ./a.out...
Can anyone tell me the steps please...thank you..
um... you pretty much just described the two steps.
$ gcc file1.c main.c
$ ./a.out
what more do you want to do?
thanks mate!!
how to compile 50 *.c files
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.