Re: [Anjuta-list] a help
- From: Biswapesh Chattopadhyay <biswapesh_chatterjee tcscal co in>
- To: anjuta-list lists sourceforge net
- Subject: Re: [Anjuta-list] a help
- Date: Fri May 23 22:01:03 2003
Try this:
#include <iostream>
int main(int argc, char **argv)
{
cout << "Test in Linux\n";
return 0;
}
Specifically:
1) include <iostream> instead of <iostream.h>
2) main() returns an integer.
3) Either declare main with no parameters (void) or with two parameters
as above.
I also suggest you start with 'Thinking in C++' by Bruce Eckel:
http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html
Hope this helps.
Rgds,
Biswa.
> Sir,
> Iam unable to run or compile the following prog.As
> i am new to linux,i don't know what next to do.I am
> getting the below mentioned error for the following
> program.please try to help me as early as possible.
>
>
>
> #include<iostream.h>
> void main()
> {
> cout<<"Test in linux";
> }
>
>
>
> error:
>
> In file included from
> /usr/include/c++/3.2/backward/iostream.h:31,
> from test.cc:1:
> /usr/include/c++/3.2/backward/backward_warning.h:32:2:
> warning: #warning This file includes at least one
> deprecated or antiquated header. Please consider using
> one of the 32 headers found in section 17.4.1.2 of the
> C++ standard. Examples include substituting the <X>
> header for the <X.h> header for C++ includes, or
> <sstream> instead of the deprecated header
> <strstream.h>. To disable this warning use
> -Wno-deprecated.
>
>
> yours sincerely,
> sasidhar
>
> ________________________________________________________________________
> Missed your favourite TV serial last night? Try the new, Yahoo! TV.
> visit http://in.tv.yahoo.com
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ObjectStore.
> If flattening out C++ or Java code to make your application fit in a
> relational database is painful, don't do it! Check out ObjectStore.
> Now part of Progress Software. http://www.objectstore.net/sourceforge
> _______________________________________________
> Anjuta-list mailing list
> Anjuta-list lists sourceforge net
> https://lists.sourceforge.net/lists/listinfo/anjuta-list
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]