CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum


Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   April 26, 2005, 17:54
Default makefile
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,

  Reply With Quote

Old   April 27, 2005, 09:04
Default Re: makefile
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?
  Reply With Quote

Old   April 27, 2005, 09:27
Default Re: makefile
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,

  Reply With Quote

Old   April 27, 2005, 09:48
Default Re: makefile
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.
  Reply With Quote

Old   April 28, 2005, 09:25
Default Re: makefile
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,

  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation of Netgen in SuSE Linux 92 edvardsenpriv Open Source Meshers: Gmsh, Netgen, CGNS, ... 23 January 16, 2009 07:12
Makefile for f90 under unix Jinwon Main CFD Forum 1 September 22, 2007 05: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 21:39

All times are GMT -4. The time now is 07:39.