PDA

View Full Version : [SOLVED] compile



smss
February 3rd, 2011, 09:52 AM
HI.
how to compile the cpp file by make?
make -w file -> does not work!
make -f file -> does not work!

ronnielsen1
February 3rd, 2011, 10:23 AM
What are you trying to compile?

smss
February 3rd, 2011, 11:35 AM
What are you trying to compile?
Im trying to compile for run it.

ronnielsen1
February 3rd, 2011, 12:08 PM
I take it you are trying to install a package. What package are you trying to install?

3Miro
February 3rd, 2011, 01:44 PM
If you wrote the C++ file yourself, then you need to either use

g++ filename.cpp -o programname
or if you downloaded a program, this depends on the program. Do you get any error messages when you try to compile.