LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   source and binaries extensions (https://www.linuxquestions.org/questions/programming-9/source-and-binaries-extensions-103636/)

costasm 10-13-2003 10:21 PM

source and binaries extensions
 
I would appreciate it if someone could list out the equivalent extensions of source/object/executable/make of filenames

E.g. in Windows

.EXE Executable
.OBJ Compiled Object module
.MAK Make file
.C or CPP is C or C++
.H headers

Or any other important file names.

Thank you.

vanquisher 10-13-2003 10:33 PM

.c/.cc - C/C++ source
.h - header files
Makefile - Makefile for GNU's `make' utility
.tex/.latex - TeX/LaTeX source
.sh - shell script
.pl/.perl - PERL source file

executables have no extensions(.exe) but on a terminal, you can see them in green colour.

linuXBOX 10-13-2003 10:35 PM

Hmmm....well many versions of linux have adopted the rpm method of installing programs. I suppose you can compare it to an exe. Linux also uses c++, so there is no comparison there. But keep in mind windows is not linux, and linux is not windows. Linux doesn't use exe. (Unless you use wine or another win emulator) It is also common to run across tar's, which were the standard before rpm came along.
rpm=red hat package manager
tar=linux tape archive
Usually a makefile is called 'makefile' and doesn't include an extension.

costasm 10-13-2003 10:41 PM

Thanks. But I have also seen .o and .so

What are these?

vanquisher 10-13-2003 10:43 PM

.o - object
.so - shared object...mostly, plugins have .so extensions.

megaspaz 10-13-2003 11:01 PM

if you use windows visual studios (VC++) they use .o files too.

i wonder if it's correct to say that .so files are equivalent to windows .DLL files (?).

costasm 10-14-2003 06:03 AM

If the .so is a DLL, then how does it get loaded? DLLs have a standard way of being called and executed.

mr_segfault 10-14-2003 09:19 AM

.so are close to DLLs, and they are loaded at runtime..

I'm not 100% sure, but I think you'll find that .so files have a standard way of being called and executed also... I can't remember the theory :) .


All times are GMT -5. The time now is 10:58 AM.