[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] openMPI and MPICH2 in windows with miniGW and gfortran

Title: cordialement.txt
Le 04/01/2012 11:54, David MZ a écrit :
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"

The problem may be the windows style of the path for your MPI lib "C:/openmpi/lib/libmpi_f77.lib". If you would use cygwin, you could use cygwin style of path e.g. /cygdrive/c/openmpi/lib/libmpi_f77.lib.



--
Cordialement,

Michel DEVEL