CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

makefile

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2005, 18:54
Default makefile
  #1
jojo
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
  Reply With Quote

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

Old   April 27, 2005, 10:27
Default Re: makefile
  #3
jojo
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
  Reply With Quote

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

Old   April 28, 2005, 10:25
Default Re: makefile
  #5
jojo
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
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 16:48.