Results 1 to 4 of 4
Hi.
This is my first post in thz forum... nd im new to linux.........i want to compile and execute a cpp program... which takes two files as the command line ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-21-2006 #1Just Joined!
- Join Date
- Apr 2006
- Posts
- 2
compiling a cpp program that takes two files as inputs in command line
Hi.
This is my first post in thz forum... nd im new to linux.........i want to compile and execute a cpp program... which takes two files as the command line arguments...
one source file called..... source.avi.. and the other reference file called reference.avi...
the name of the program is pevq.cpp...
can u please tell me the command to compile and run the above program.............
Schum_007
- 04-21-2006 #2
Well, did you try with g++?
And to run, simply type:
./executable_name argument1 argument2
Best regards
- 04-21-2006 #3Linux User
- Join Date
- Aug 2005
- Location
- Italy
- Posts
- 401
g++ -o <output-program> *.cpp
Originally Posted by schum_007 When using Windows, have you ever told "Ehi... do your business?"
Linux user #396597 (http://counter.li.org)
- 04-27-2006 #4Just Joined!
- Join Date
- Apr 2006
- Posts
- 1
that's right,and then ./<output-program> to run
Originally Posted by burnit


Reply With Quote
