Hopefully this is an easy one :)

For the first time ever in my app, I have a need to use just plain-old MPI
send/receive!  I have everything working except for the send and receive
call.  When I switched to the libMesh wrapper functions I get a link error.
 It appears to be something wrong with picking the right templated
overloaded function from parallel.h.

I went into examples/introduction_ex1.C deleted the entire body and put in
a single send call and it won't link:

// Body of main
  LibMeshInit init (argc, argv);

  int slave_processor_id;
  Parallel::send(0, slave_processor_id);

  return 0;

// Link error:
  CXX      example_dbg-introduction_ex1.o
  CXXLD    example-dbg
Undefined symbols for architecture x86_64:
  "void libMesh::Parallel::Communicator::send<int>(unsigned int, int&,
libMesh::Parallel::MessageTag const&) const", referenced from:
      void libMesh::Parallel::send<int>(unsigned int, int&,
libMesh::Parallel::MessageTag const&, libMesh::Parallel::Communicator
const&) in example_dbg-introduction_ex1.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [example-dbg] Error 1

Any ideas?
Cody
------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to