Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22235

How can I use gcc to compile C program whose name does not end with ".c"?

$
0
0

Compiling C program using gcc is very simple. Just such a command:

gcc code.c -o executable

However, if the code file name does not end with ".c", gcc will treat it as a linker script. How can I use gcc to compile C program whose name does not end with ".c"?


Viewing all articles
Browse latest Browse all 22235

Trending Articles