|
[Sponsors] |
April 26, 2005, 18:54 |
makefile
|
#1 |
Guest
Posts: n/a
|
Hi everybody,
Has anyone worked with MPICH on Windows stations? I am not used to Makefile on Windows and I do not understand where I can put the lines (as required in MPICH documentation): -I C:/Program Files/MPICH/SDK.gcc/include -L C:/Program Files/MPICH/SDK.gcc/lib -lmpich Make reports error when using those lines. Thanks in advance, Jojo |
|
April 27, 2005, 10:04 |
Re: makefile
|
#2 |
Guest
Posts: n/a
|
I can give you a few pointers. First, C:/Program Files/MPICH... is not a valid directory under windows because windows uses a \ as the directory separator, not the / that is used in Linux and Unix. Second, do those directories exist? You don't list the error you're receiving. Third, do you have MPICH set up on the windows machine to use gcc as the C-compiler?
|
|
April 27, 2005, 10:27 |
Re: makefile
|
#3 |
Guest
Posts: n/a
|
Dear ag,
Thanks a lot for your quick answer. The error is the same, whatever \ or / is used: "missing separator" I have followed each step of the documentation but there is not much information in it. Best Regards, jojo |
|
April 27, 2005, 10:48 |
Re: makefile
|
#4 |
Guest
Posts: n/a
|
In writing makefiles, the "TAB" and "end of line" are essential. These change if you save the file in PC (or WINDOWS) format or if you do it in UNIX format. You can check that by typing:
cat -evt myfile.something If you see some "^M$", the file is in WINDOWS format. If not, you have it in UNIX. May be that's the problem. |
|
April 28, 2005, 10:25 |
Re: makefile
|
#5 |
Guest
Posts: n/a
|
Dear Scicomex,
Thanks a lot for your message. I should not have any problem of that type since I have written the makefile on the PC (using Notepad). I think my real problem is related to the position in the makefile I have to put the lines related to MPICH: -I .../MPICH/.../include and -L .../MPICH/.../lib (i.e. the full path to the include and lib directories). When compiling in a "normal" way, the makefile works fine. Thanks again, jojo |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Netgen] Installation of Netgen in SuSE Linux 92 | edvardsenpriv | OpenFOAM Meshing & Mesh Conversion | 23 | January 16, 2009 07:12 |
Makefile for f90 under unix | Jinwon | Main CFD Forum | 1 | September 22, 2007 06:10 |
Making a solver a fully independant object | dauptain | OpenFOAM Installation | 4 | March 7, 2007 12:17 |
Need Makefile for GCC in windows to compile UDFs | Filipe Madureira | FLUENT | 2 | December 28, 2005 17:08 |
about making makefile | JunseokKim | Main CFD Forum | 1 | May 16, 2001 22:39 |