<div>Dear Luiz and Lykle, </div>
<div> </div>
<div> Lykle: I'm afraid that turbo pascal 7 is quite older now. I'm using the Lazarus (which is the Visual of the Free Pascal Compiler - like Delphi), I usually works with FPC and Delphi also.</div>
<div> </div>
<div> The program is developed for both Linux and Windows (once compiled on each SO). I agree with you when you say that the trick is to call the mpi-routines, written in C, from Pascal. I tried to do this, but the headers have links to the LIB files and I can't read from the Pascal.
</div>
<div> </div>
<div> Luiz: I don't know pretty much Fortran, specially I don't know the OpenWatcom. As far as I know the MPICH2 has some Fortran files that you should link on your compiler. The problem is that not all the compiler can make the compile on the right way.
</div>
<div> </div>
<div> I do believe that you are right the problem concerns the suffix and prefix of the calling functions, maybe you should think about to create some files from other fortran compile that is used on the MPICH2 files... but I don't know which is because I don't know pretty much about fortran languages...
</div>
<div> </div>
<div>Hugs</div>
<div> </div>
<div>Lourival<br><br>Are you developing for Windows or Linux? Which Pacal <br> </div>
<div><span class="gmail_quote">2007/10/21, Luiz Carlos da Costa Junior <<a href="mailto:lcjunior@ufrj.br">lcjunior@ufrj.br</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Lykle and Lourival,<br><br>Let me introduce myself and participate in this discussion (actually add another question). My name is Luiz and I have a problem like Lourival. I would like to use MPICH2 with my fortran program (developed for Windows and compiled with OpenWatcom
1.3) but I had problems during the linking process.<br><br>I have a little experience in using C libraries in my fortran programs and I use to recompile the libraries header (generating *.lib file that I can use in OW1.3 linking process) but in case of MPI I didn't have success because of functions name (my liker doesn't not recognize MPI functions). Maybe because of naming convention, prefix/sufix additions. How is the best way to deal with it?
<br><br>Another problem I had is due to the type "long long", used in MPICH2. Unfortunately, OpenWatcom 1.3 doesn't seen to support it (I can be wrong), do you known how to deal with this problem?<br><br>Thanks in advance!
<br><span class="sg">Luiz</span>
<div><span class="e" id="q_115c46fc3ea4b497_2"><br><br>
<div><span class="gmail_quote">On 10/21/07, <b class="gmail_sendername">Lykle Voort</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:lyklevoort@gmail.com" target="_blank"> lyklevoort@gmail.com
</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">My experience with Pascal goes back to turbo pascal version 7, I am afraid, but I have quite a bit of experience with calling c routines from fortran on windows and linux.
<br><br>The trick is to call a the mpi-routines, written in C, from Pascal. The difficulty is usually to get the arguments and the function names right; the linker takes care of the rest. <br><br>Are you developing for Windows or Linux? Which Pacal compiler do you use?
<br><br>Lykle Voort
<div><span><br><br>
<div><span class="gmail_quote">On 10/21/07, <b class="gmail_sendername">Lourival Mendes</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mendes.lourival@gmail.com" target="_blank"> mendes.lourival@gmail.com
</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div> Hy everybody, as probably you saw before, I'm trying to use the MPICH2 on the Pascal environment. I try to find something on the net but with almost no success. </div>
<div> </div>
<div> Does anybody has an advice from where I should start?? Should I convert the headers and lib files from the standard installation or should I use the source code?? What is the best way?? How it works for the fortran code??
</div>
<div> </div>
<div>Thanks in advance..<br clear="all"><br>-- <br>Lourival J. Mendes Neto </div></blockquote></div><br><br clear="all"><br></span></div><span>-- <br>Lykle Voort<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:lyklevoort@gmail.com" target="_blank">
lyklevoort@gmail.com </a></span></blockquote></div><br></span></div></blockquote></div><br><br clear="all"><br>-- <br>Lourival J. Mendes Neto