Re: [OMPI users] Problem with linking on OS X

2009-08-19 Thread Jody Klymak
Hi Tomek, Did you try mpicc --showme? I get: gcc -D_REENTRANT -I/Network/Xgrid/openmpi/include -L/Network/Xgrid/ openmpi/lib -lmpi -lopen-rte -lopen-pal -lutil If your -L isn't correct in there, then I would guess your configuration found the wrong library somehow when you compiled mpicc

Re: [OMPI users] Problem with linking on OS X

2009-08-19 Thread tomek
OK - I have fixed it by including -L/opt/openmpi/lib at the very beginning of mpicc ... -L/opt/openmpi/lib -o app.exe the rest ... But something is wrong with dyld anyhow. On 19 Aug 2009, at 21:04, Jody Klymak wrote: Hi Tomek, I'm using 10.5.7, and just went through a painful process that w

Re: [OMPI users] Problem with linking on OS X

2009-08-19 Thread tomek
Hi Jody What is the result of "which mpicc" (or whatever you are using for your compiling/linking? I'm pretty sure that's where the library paths get set, and if you are calling /usr/bin/mpicc you will get the wrong library paths in the executable. Here you are: $ which mpicc /opt/ope

Re: [OMPI users] Problem with linking on OS X

2009-08-19 Thread Jody Klymak
Hi Tomek, I'm using 10.5.7, and just went through a painful process that we thought was library related (but it wasn't), so I'll give my less-than- learned response, and if you sill have difficulties hopefully others will chime in: What is the result of "which mpicc" (or whatever you are u

[OMPI users] Problem with linking on OS X

2009-08-19 Thread tomek
Hi I spent some time today trying to install OpenMPI 1.3.3 on OS X 10.5.8. I need to used threading and asynchronous progress, hence the pre-installed OpenMPI is not sufficient. Anyhow - whatever I did (and I tried many things) - my applications is getting linked against the default /usr/