Compile program in linux using c code -


i'm trying write program compiles program in given directory, , i'm having couple of questions.

i'm using command execv (and tried other of exec family).
when use command path run code directory+path or path <> example : program in desktop : exe.c . when use command execv "./users" path go "desktop/users"?

the second question

how compile program through c code?

thank you!

you can use exec function compiling that.

 execl("/usr/bin/gcc or cc","cc","path name or filename",null); 

using 1 can compile program easily. if file name given taken current directory. or else taken given path.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -