CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   makefile (https://www.cfd-online.com/Forums/main/9076-makefile.html)

jojo April 26, 2005 17:54

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

ag April 27, 2005 09:04

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?

jojo April 27, 2005 09:27

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

scicomex April 27, 2005 09:48

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.

jojo April 28, 2005 09:25

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.