<div dir="ltr">Salut,<div><br></div><div>In mpi.h exista</div><div><br></div><div>extern DECLSPEC struct mpi_comm *mpi_comm_world</div><div>#define MPI_COMM_WORLD (mpi_comm_world)</div><div><br></div><div>Din cate am vazut prin diferite tutoriale, daca definesc mpi_comm_world intr-una din surse, ar trebui sa mearga si in celelalte care includ mpi.h, dar cand folosesc MPI_COMM_WORLD intr-un program de test, da urmatoarea eroare:</div>
<div><div>test.c:(.text+0x31): undefined reference to `mpi_comm_world'<br></div><div><br></div><div style>Ce ar trebui sa fac sa pot folosi MPI_COMM_WORLD definit in header?</div><div style><br></div><div style>Multumesc</div>
<div><br></div>-- <br>Alexandru-Dan Tomescu
</div></div>