makefile
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 |
Re: makefile
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?
|
Re: makefile
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 |
Re: makefile
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. |
Re: makefile
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 |
All times are GMT -4. The time now is 08:58. |