<p>I've been getting this undefined symbol building with this command line:</p>

<pre><code>$ gcc test.cpp
Undefined symbols:
  "___gxx_personality_v0", referenced from:
  etc...
</code></pre>

<p>test.cpp is simple and should build fine.  What is the deal?</p>

Use
```
```
g++ test.cpp
```
```
instead, since this is c++ code.
Or, if you
really
want to use
```
gcc
```
, add
```
-lstdc++
```
to the command line, like so:
```
```
gcc test.cpp -lstdc++
```
```
Running
```
md5
```
against the
```
a.out
```
produced under each scenario shows that it's the same output.
But, yeah,
```
g++
```
probably makes your world a simpler place.