Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


[C + + development environment to discuss environmental issues ]UNIX

I just started learning C + + is a person who read a book on that, in UNIX systems, using C VI as editor procedures for the preparation, and then use the order cc or gcc compiler, and then running their own procedures. . .
I tried, I can attest to the work, I redhat Linux 9, as with vi editor, wrote his name extension. C procedures (for example, Myprogram.c) and then use the cc compiler order to generate a.out paper operations, and normal operations can be found operating. . .

So I wrote a C + + procedures by finding compiler. . . Very depressed, would like to neighborhoods :
C + + Programming in the UNIX system for the development and translation?

[C + + development environment to discuss environmental issues ]UNIX

Using Linux compiler

[C + + development environment to discuss environmental issues ]UNIX

Programming in C + + compiler I have used the procedures can be tried.
Gcc can also be seen that, it is necessary parameters did not look.
You can look at the help, man gcc.
When you do not know what the wrong message. Bar above could be the reason

[C + + development environment to discuss environmental issues ]UNIX

Albanian translation being given the stickers put up. I use the cc compiler also visit Argentina

[C + + development environment to discuss environmental issues ]UNIX

[root@Linux-Host Program]# more hello.c
Include "iostream>;
Int main ()
{
Std : : cout<< "Panorama, new world! \n";
}
[root@Linux-Host Program]# cc hello.c
Hello.c:1 : parse error before ' "' token

[root@Linux-Host Program]# Linux hello.c
Hello.c:1 : `iostream 'was not declared in this scope
Hello.c:2 : syntax error before `int '
[root@Linux-Host Program]# C + + hello.c
Hello.c:1 : `iostream 'was not declared in this scope
Hello.c:2 : syntax error before `int '
[root@Linux-Host Program]#

Brother just started learning C + +, see examples of a book, and then wants to try, as a result, in any case, fail!

Thank you for the. . .

Postscript :
I translated to the following questions :
1. Source document to save. C.. Cpp form;
2. C + + Compiler procedures, general orders to use C + + or Linux;
3.include to add front-IIE

[C + + development environment to discuss environmental issues ]UNIX

Indeed, that is exactly go up in smoke.

[C + + development environment to discuss environmental issues ]UNIX

Programming -o outputName sourceName.c

[C + + development environment to discuss environmental issues ]UNIX

Gcc -otest test.cpp -lstdc++
Equivalent to
Programming -otest test.cpp

[C + + development environment to discuss environmental issues ]UNIX

Everybody, thanks

[C + + development environment to discuss environmental issues ]UNIX

Gcc only C + + compiler, not connected, so if you need to connect to the gcc parameter that can be a C + + database.

Linux is a translation of a get together.

[C + + development environment to discuss environmental issues ]UNIX

CC and not to use cc compiler bars



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com