How can i call (execute) a file (with ".c" extention) from the particular path without including it into main file ? Now the file which we have to call from particular path is containing only a function (without "main()").....

Recommended Answers

All 3 Replies

.c files do not get called in the shell to be interpreted, they need to be compiled, and then linked as part of a program.

.c files do not get called in the shell to be interpreted, they need to be compiled, and then linked as part of a program.

ya....ok so how to compile or that file from perticular place...

Add it to the compile command.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.