🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #12401

Trasteando kdevelop

#12401
From: Daniel Camps Mur
Date: Mon, 30 Jul 2001 14:47
51 lines
1883 bytes
Estoy trasteando kdevelop prov� de compilar un programa sencillo y me da un
error.
El programa es:

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

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

class punto{
 int x,y;
public:
	punto(int,int);
	int X()const;
	int Y()const;
};

punto::punto(int _x,int _y){
	x=_x;
	y=_y;
}

int punto::X()const{
return x;
}
int punto::Y() const{
return y;
}

void main(){
	punto p(2,3);
	printf("\n%d %d\n",p.X(),p.Y());
}

Hay algo que est� mal?
El error que me da cuando quiero ejecutar es:

..
C++ -DHAVE_CONFIG_H-I.-I.-I--   -O0 -g3 -Wall -c main.cpp
main.cpp:46:return type for 'main' changed to 'int'
gmake[1]:***[main.o] Error 1
gmake[1]: Leaving directory '/home/dcamps/Documentos/Programas/proba1/proba1'
gmake:***[all-recursive] Error 1
***no conseguido***



	
Technical Details
Message-ID: <996504951.1914219505@news.antakira.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!news.antakira.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,9c24c4dda0445979,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-07-30 08:06:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!news.antakira.com!not-for-mail
From: Daniel Camps Mur <dcamps@eresmas.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Trasteando kdevelop
Followup-To: es.comp.os.linux.programacion
Date: Mon, 30 Jul 2001 16:47:41 +0200
Organization: -
Lines: 51
Message-ID: <996504951.1914219505@news.antakira.com>
NNTP-Posting-Host: 212.25.147.135
Mime-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: news.wanadoo.es 996504998 7757 212.25.147.135 (30 Jul 2001 14:56:38 GMT)
X-Complaints-To: usenet@wanadoo.es
NNTP-Posting-Date: Mon, 30 Jul 2001 14:56:38 +0000 (UTC)
X-Newsreader: KRN http://ultra7.unl.edu.ar