[so] [Tema2][Linux] extern struct
Alex Tomescu
alex.dan.tomescu at gmail.com
Wed Apr 3 17:17:34 EEST 2013
Salut,
In mpi.h exista
extern DECLSPEC struct mpi_comm *mpi_comm_world
#define MPI_COMM_WORLD (mpi_comm_world)
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:
test.c:(.text+0x31): undefined reference to `mpi_comm_world'
Ce ar trebui sa fac sa pot folosi MPI_COMM_WORLD definit in header?
Multumesc
--
Alexandru-Dan Tomescu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20130403/29fc77a1/attachment.html>
More information about the so
mailing list