I was able to fix the above error but I still get this error
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lC:/openmpi/lib/libmpi_f77.lib
here is the output
make all
'Building target: SampleMD'
'Invoking: GNU Fortran Linker'
gfortran -fopenmp -cpp -o "SampleMD" ./XML/xpath/flib_xpath.o ./XML/xpath/m_path.o ./XML/wxml/flib_wxml.o ./XML/wxml/m_wxml_buffer.o ./XML/wxml/m_wxml_core.o ./XML/wxml/m_wxml_dictionary.o ./XML/wxml/m_wxml_elstack.o ./XML/wxml/m_wxml_text.o ./XML/strings/m_strings.o ./XML/sax/flib_sax.o ./XML/sax/m_buffer.o ./XML/sax/m_charset.o ./XML/sax/m_converters.o ./XML/sax/m_debug.o ./XML/sax/m_dictionary.o ./XML/sax/m_elstack.o ./XML/sax/m_entities.o ./XML/sax/m_fsm.o ./XML/sax/m_io.o ./XML/sax/m_reader.o ./XML/sax/m_xml_error.o ./XML/sax/m_xml_parser.o ./XML/dom/flib_dom.o ./XML/dom/m_dom_attribute.o ./XML/dom/m_dom_debug.o ./XML/dom/m_dom_document.o ./XML/dom/m_dom_element.o ./XML/dom/m_dom_error.o ./XML/dom/m_dom_namednodemap.o ./XML/dom/m_dom_node.o ./XML/dom/m_dom_nodelist.o ./XML/dom/m_dom_parse.o ./XML/dom/m_dom_types.o ./XML/dom/m_dom_utils.o ./XML/cml/flib_cml.o ./XML/cml/m_cmlw.o ./XML/cml/m_stmw.o ./Particles/class_Particle.o ./Integration/VerletIntegration.o ./ErrorHandling/class_ErrorHandler.o ./Configurations/class_ConfigurationManager.o ./Cells/class_LinkedCell.o ./SampleMD.o -l"C:/openmpi/lib/libmpi_f77.lib"
On Wed, Jan 4, 2012 at 12:29 PM, David MZ
<david.mazvovsky@xxxxxxxxx> wrote:
I have added the relevant paths
What do I need to write in the code if I want to use MPI commands
If I just write an MPI command I get this :
wtime = MPI_WTIME()
1
Error: Function 'mpi_wtime' at (1) has no IMPLICIT type
In my source file what do I need to add or configure for this to work.
Le 03/01/2012 19:19, David MZ a écrit :
I mean using the
"use mpi"
in my code and having the compiler not throw an error saying this
module doesn't exist.
I was not able to find those binaries or I don't completely understand
how to install them to work inside phortran
Can you maybe be more specific with the details.
You can download the source and the binaries from e.g.
http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=downloads
or
http://www.open-mpi.org/software/ompi/v1.5/ms-windows.php
Once you do have your dlls and include file somewhere, you can add
them to your project by going into the properties of your project
(right-click on his name in the project explorer view), then choose
"Paths and symbols" and add the appropriate directories in the
include and libraries tab.
(+ do not forget what I told you about how to have gfortran 4.5.3 in
cygwin)
--
Sincerely yours,
Michel DEVEL