Re: [OMPI users] OSX undefined symbols when compiling hello world in cpp but not in c

2008-04-03 Thread Brian Barrett
Since HFS+ is not case sensitive, mpicc and mpiCC are the same file. So on OS X, you need to use mpic++ to compile C++ code. But it's worse than that, because the GNU compiler is smart enough to use the C+ + parser / compiler instead of the C one, so you don't see the error until link time

[OMPI users] OSX undefined symbols when compiling hello world in cpp but not in c

2008-04-03 Thread Jason Fleischer
On MacOS 10.5.2 standard installation with Open MPI 1.2.3 the following hello world program in normal C compiles just fine and runs correctly. But if I rename the file to mpihello.cpp and I get many undefined symbols at link time! This error cropped up while I was working with a much more