CastleCops, Internet Crime Fighters
Need help? Click here to register for free! Absolutely zero advertisements on this site!

Donation/Premium
spacer
block bottom
Security Central
spacer
· Home
· PIRT/Fried Phish
· MIRT
· SIRT
· Deutsch
· Wiki
· Newsletter
· O16/ActiveX
· CLSID List
· Contest2007
· Downloads
· Feedback (send)
· Forums
· HijackThis
· Hijacktrend
· LSPs
· My Downloads
· O18
· O20
· O21
· O22
· O23
· O9
· Premium
· Private Messages
· Proxomitron
· Reviews
· Search
· StartupList
· Stories Archive
· Submit News
· WsIRT
· Your Account
· Acceptable Use Policy
block bottom
spacer spacer

Dec-C++

 
Post new topic   Reply to topic       All -> FavForums -> Software [del.icio.us!] [digg it!] [reddit!]
View previous topic :: View next topic  
Author Message
Half-Life

Guest
IP: 75.86.*.*






PostPosted: Thu Feb 07, 2008 11:09 pm    Post subject: Dec-C++
Reply with quote

i have just recently downloaded this C++ compiler and i have noticed that when i start a command prompt application it wont compile. So can someone send me some code that should work, so that way i can find out if something is wrong with the compiler.

this is my code:

#include <iostream>
#include <stdlib.h>

using namespace std;

int main(int argc, char *argv[])
{
cout<<"Hello World"<<endl;

system("PAUSE");
return 0;
}




and this is the error:

// -*- C++ -*- forwarding header.

// Copyright (C) 1997, 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2, or (at your option)
// any later version.

// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License along
// with this library; see the file COPYING. If not, write to the Free
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.

// As a special exception, you may use this file as part of a free software
// library without restriction. Specifically, if other files instantiate
// templates or use macros or inline functions from this file, or you compile
// this file and link it with other files to produce an executable, this
// file does not by itself cause the resulting executable to be covered by
// the GNU General Public License. This exception does not however
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.

//
// ISO C++ 14882: 18.1 Types
//

/** @file cstddef
* This is a Standard C++ Library file. You should @c #include this file
* in your programs, rather than any of the "*.h" implementation files.
*
* This is the C++ version of the Standard C Library header @c stddef.h,
* and its contents are (mostly) the same as that header, but are all
* contained in the namespace @c std.
*/

#ifndef _CPP_CSTDDEF
#define _CPP_CSTDDEF 1

#pragma GCC system_header

#include <stddef.h>

namespace std
{
using ::ptrdiff_t;
using ::size_t;
}

#endif

Back to top
Mister2

SRT Team Lead
SRT Team Lead
Premium Member

Joined: Oct 28, 2004
Posts: 7330

Moderators MVP Premium SRT Team F@H

PostPosted: Fri Feb 08, 2008 5:47 am    Post subject:
Reply with quote

Moved to a more appropriate forum.


_________________
Never stop learning
Back to top
View users profile Send private message
Half-Life

Guest
IP: 75.86.*.*






PostPosted: Fri Feb 08, 2008 9:38 pm    Post subject: where
Reply with quote

where did u move it to

Back to top
Mister2

SRT Team Lead
SRT Team Lead
Premium Member

Joined: Oct 28, 2004
Posts: 7330

Moderators MVP Premium SRT Team F@H

PostPosted: Sat Feb 09, 2008 6:35 am    Post subject:
Reply with quote

Here. Smile

The forum software automatically redirects from the old place to the new place.

Unfortunately I cannot answer your query, but this Software forum is the best place to catch someone who could answer it.


_________________
Never stop learning
Back to top
View users profile Send private message
pwillener

SRT Trainee
SRT Trainee
Premium Member

Joined: Apr 17, 2006
Posts: 1840
Location: Japan
Premium

PostPosted: Sat Feb 09, 2008 7:56 am    Post subject:
Reply with quote

I don't see any error anywhere in your post.

Back to top
View users profile Send private message Visit posters website
Display posts from previous:   
Post new topic   Reply to topic       All -> FavForums -> Software All times are GMT
Page 1 of 1

 
Quick Reply:
Username: 

Quote the last message
Attach signature (signatures can be changed in profile)
 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001 phpBB Group
spacer spacer