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'
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