| khawar85 (4) | |
|
HI I got an error. Please if someone can help me for this. I will be really thankful to you. Can anyone give me its solution. Compilation errors found: In file included from zosa.h:27, from zosa.cpp:24: slave.h:27:17: error: mpi.h: No such file or directory In file included from parsecmd.h:30, from slave.h:31, from zosa.h:27, from zosa.cpp:24: comm_def.h: In static member function 'static void commroot::perror(std::string)': comm_def.h:56: error: 'MPI_COMM_WORLD' was not declared in this scope comm_def.h:56: error: 'MPI_Abort' was not declared in this scope comm_def.h: In static member function 'static void commroot::error(std::string)': comm_def.h:62: error: 'MPI_COMM_WORLD' was not declared in this scope comm_def.h:62: error: 'MPI_Abort' was not declared in this scope comm_def.h: In static member function 'static void commroot::text(std::string, uint)': comm_def.h:73: error: 'MPI_COMM_WORLD' was not declared in this scope comm_def.h:73: error: 'MPI_Comm_rank' was not declared in this scope In file included from zosa.h:27, from zosa.cpp:24: slave.h: At global scope: slave.h:46: error: 'MPI_Status' does not name a type Failed checking during preprocessing. while executing | |
|
|
|
| Darkmaster (494) | |
| and where is the code that produces these errors? | |
|
|
|
| Peter87 (3912) | ||
Start with the first error
It can't find the mpi.h header. | ||
|
|
||
| khawar85 (4) | |
|
HI thanks for help but same code @ some other place is giving this error In file included from fileio.h:31, from suio.h:28, from dataio.h:27, from funcs.h:28, from search.h:28, from search.cpp:24: fio_structs.h:85: error: 'uint' is used as a type, but is not defined as a type. In file included from funcs.h:28, from search.h:28, from search.cpp:24: dataio.h: In member function `void ApertureTracesCRS::append(ApertureTracesCRS*)': dataio.h:67: error: `uint' undeclared (first use this function) dataio.h:67: error: (Each undeclared identifier is reported only once for each function it appears in.) dataio.h:67: error: syntax error before `;' token dataio.h:67: error: `i' undeclared (first use this function) dataio.h:78: error: syntax error before `;' token dataio.h: In member function `ApertureTracesCRS& ApertureTracesCRS::operator=(const ApertureTraces&)': dataio.h:102: error: syntax error before `;' token In file included from search.h:28, from search.cpp:24: funcs.h: At global scope: funcs.h:33: error: ISO C++ forbids declaration of `uint' with no typefuncs.h:33: error: syntax error before `(' token funcs.h:36: error: ISO C++ forbids declaration of `uint' with no type funcs.h:36: error: declaration of `int Function::uint' funcs.h:33: error: conflicts with previous declaration `int Function::uint' funcs.h:36: error: syntax error before `(' token funcs.h:39: error: ISO C++ forbids declaration of `uint' with no type funcs.h:39: error: declaration of `int Function::uint' funcs.h:33: error: conflicts with previous declaration `int Function::uint' funcs.h:39: error: syntax error before `(' tokenfuncs.h:42: error: ISO C++ forbids declaration of `uint' with no type funcs.h:42: error: declaration of `int Function::uint' funcs.h:33: error: conflicts with previous declaration `int Function::uint' funcs.h:42: error: syntax error before `(' token funcs.h:46: error: ISO C++ forbids declaration of `uint' with no type funcs.h:46: error: declaration of `int Function::uint' funcs.h:33: error: conflicts with previous declaration `int Function::uint' funcs.h:46: error: syntax error before `(' token funcs.h:52: error: ISO C++ forbids declaration of `uint' with no type funcs.h:52: error: declaration of `int Function::uint' funcs.h:33: error: conflicts with previous declaration `int Function::uint' funcs.h:52: error: syntax error before `(' token In file included from search.cpp:24: search.h:104: error: 'uint' is used as a type, but is not defined as a type. search.cpp: In member function `void Search::clearRestraces()': search.cpp:110: error: syntax error before `=' token search.cpp: In member function `void Search::setGuides(Traces*)': search.cpp:211: error: syntax error before `=' token search.cpp: In member function `void Search::setTraces(ApertureTracesCRS*)': search.cpp:234: error: syntax error before `=' token search.cpp:268: error: syntax error before `=' token search.cpp: In member function `double Search::semblance_original()': search.cpp:317: error: syntax error before `=' token search.cpp:317: error: `useTraceSize' undeclared (first use this function) search.cpp: In member function `double Search::normsum()': search.cpp:472: error: syntax error before `=' token search.cpp: In member function `double Search::stack()': search.cpp:502: error: syntax error before `=' token make: *** [123.exe] Error 1 ======== Build of target 'build_exe' complete ======== I dont know .. it should compile. the upper communication problem, OPEN MPI is install, even then its lot locating mpi.h. I am afraid because, i have tried to build in CENTOS. why it is so. | |
|
|
|