Thread g++ != C++ Standard ? (16 answers)
Opened by J-jayz-Z at 2006-01-09 11:20

J-jayz-Z
 2006-01-11 10:29
#11325 #11325
User since
2005-04-13
625 Artikel
BenutzerIn
[Homepage] [default_avatar]
Also bei mir geht es nicht:
Code: (dl )
1
2
3
4
ingo dev # g++ -o foo foo.cpp
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:98: undefined reference to `main'
collect2: ld returned 1 exit status

Und was die Version angeht:
Code: (dl )
1
2
3
4
5
ingo dev # g++ --version
g++ (GCC) 3.3.5 (Debian 1:3.3.5-13)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
perl -Mstrict -Mwarnings -e 'package blub; sub new { bless {} } sub bar {my $self=shift; $self->{bla}="5065726c2d436f6d6d756e697479"; return $self->{bla};} my $foo=blub->new();print "Hallo ";print pack("H*",$foo->bar()); print "\n"'

http://perl-tutor.de

View full thread g++ != C++ Standard ?