Monkey stumbles upon warpdrive while coding

"I thought it would take 1000 monkeys 1000 years" says ape.

My Photo
Name:
Location: Sydney, New South Wales, Australia

Back from the US, and loving the beaches. Lucky enough to be working in science still.

Friday, February 25, 2005

Solved mpi libraries problem

Ok, so I fixed this.
Problem was linking to mpi libs, ie:
gcc blahblah -L/.../mpich/lib -lmpich
This was all I thought it needed. It came up with the ld problem:
fatal: Symbol referencing error
Undefined first referenced symbol in file
The symbol was sched_yield.

This error generally means that I've created a method for something a .h file, but haven't created a definition for it in a .c file.

Turns out that on the suns sched_yield needs a flag in the gcc command line: -lrt (sometimes this is -lposix4 or something). Sooo, I included this in the library flags so the gcc line looks like this:
gcc blahblah -L/.../mpich/lib -lmpich -lrt
And hey presto. Got past the tests.
Bombed in 'StGermain/Base/src'

0 Comments:

Post a Comment

<< Home