Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPI program fails to link on my desktop #13

Open
jfavre opened this issue May 22, 2015 · 0 comments
Open

MPI program fails to link on my desktop #13

jfavre opened this issue May 22, 2015 · 0 comments

Comments

@jfavre
Copy link

jfavre commented May 22, 2015

mpic++ .o main.cpp -o main
main.cpp: In function ‘void write_binary(std::string, data::Field&, data::SubDomain&, data::Discretization&)’:
main.cpp:60:95: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
result = MPI_File_set_view(filehandle, disp, MPI_DOUBLE, filetype, "native", MPI_INFO_NULL);
^
data.o: In function data::SubDomain::print()': data.cpp:(.text+0x3f6): undefined reference toomp_get_wtime'
data.cpp:(.text+0x409): undefined reference to omp_get_wtime' /tmp/ccjgrECG.o: In functionmain':
main.cpp:(.text+0xad5): undefined reference to omp_get_wtime' main.cpp:(.text+0xd04): undefined reference toomp_get_wtime'
collect2: error: ld returned 1 exit status
make: *** [main] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant