LinuxAnswers DiscussionThis forum is to discuss articles posted to LinuxAnswers.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
for c:
in shell :
step 1:type vi <your_program_name>.c
step 2: type gcc <your_program_name>.c -o <your_program_name>.out
or
type gcc <your_program_name>.c -o a.out
step 3:type ./<your_program_name>.out
or
./a.out
for c++:
in shell :
step 1:type vi <your_program_name>.cpp
step 2: type g++ <your_program_name>.cpp -o <your_program_name>.out
or
type g++ <your_program_name>.cpp -o a.out
step 3:type ./<your_program_name>.out
or
./a.out
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609
Rep:
Quote:
Originally Posted by partha6794
There is a easy method to bulid "C" & "C ++ " programming:
There are three methods to bulid "C" & "C++" programming in RHL 9.0 & FC .by using GNOME desktop & another in KDE .
There are mainly two editor in GNOME , viz. vi- editor & another is emacs editor.I will discuss both here.
using VI-editor:
1. open terminal .
2. type for C programming
vi <filename>.c
for C++
vi <filename>.cpp
e.g:
vi hello.c { for C}
vi hello. cpp { for C++}
3. then type " i" ( i= insert)
4. then write source code . for details www.howstuffworks.com how to works "C" programming?
5. then press
esc : wq
it is save now.
6. now for comile the programme type,
cc <filename>
7. then for execute type
(dot)/a.out ( dot = . )
8. then it will see your screen.
USING EMACS EDITOR:
1.type emacs<file name> on terminal.
3. then type " i" ( i= insert)
4. then write source code . for details www.howstuffworks.com how to works "C" programming?
5. then press
esc : wq
it is save now.
6. now for comile the programme type,
cc <filename>
7. then for execute type
(dot)/a.out ( dot = . )
8. then it will see your screen.
USING KWRITE IN ( GNOME OR KDE DESKTOP)
1. Open terminal & type kwrite
2. then write source code
3. then click file .
4. then clck save as
5. save the file wtth extension .c/.cpp
now for comile the programme type,
cc <filename>
7. then for execute type
(dot)/a.out ( dot = . )
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609
Rep:
Quote:
Originally Posted by ciuiu
I have a C++ program called estsert.cpp, that estimates the parameters of an AR(p), MA(q) or ARMA(p,q) time series.
[...]
My question is if I can make an Windows executable program from a C++ program on LINUX, without accesing a computer with Windows.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.