Geting KDevelop to compile.
Rene M�rten
delta_x at gmx.net
Tue Jan 4 22:26:10 GMT 2000
On Tue, 04 Jan 2000, you wrote:
> I open a little c++ file named my_first_program.cpp it
> go's like this.
>
> #include <iostream.h>
>
> main()
>
> {
> cout << "Hello There.";
> return 0;
> }
>
> When I run I get this.c++ -O0 -g3 -pg -Wall -o
> p_one it.o main.o
> main.o: In function `main':
> /home/digit/p_one/p_one/main.cpp:26: multiple
> definition of `main'
> it.o:/home/digit/p_one/p_one/it.cpp:20: first defined
> here
> /usr/bin/ld: Warning: size of symbol `main' changed
> >from 34 to 50 in main.o
> collect2: ld returned 1 exit status
> gmake: *** [p_one] Error 1
> *** failed ***
>
> What is the problem ware is it geting
> it.o:/home/digit/p_one/p_one/it.cpp:20: first defined
> here
>
> Pleas help.. All I want to do is the lessions out of
> my c++ book one at a time???
>
int main(int argc, char* argv[]) {
cout << "Hello There.";
return 0;
}
--
Kind Regards
Rene Maerten
E-Mail: Delta_X at LinuxCoding.de
Home: http://www.LinuxCoding.de
Telephone: +49-3328-305200
Don't buy Windows Beta 2000, just try Linux !
More information about the KDevelop
mailing list