|< 1 2 >| | 17 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
#include <vector>
using namespace std;
struct foo {
int bar;
int blubb;
};
vector<foo> lala(2);
1
2
3
4
5
6
7
8
#include <iostream>
int x = 4;
int main(void) {
int x = 3;
std::cout << ::x << x << std::endl;
}
1
2
3
$ gcc --version
powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5247)
[...]
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
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.
|< 1 2 >| | 17 Einträge, 2 Seiten |