locked
linking ms mpi to ms fortran 90 gives 'Internal error during Pass1' RRS feed

  • Question

  • Hi,

    Platform is:Intel i3 PC x64, Windows 7 x64, Microsoft HPC Pack 2012, Microsoft HPC Pack 2012 SDK, HpcClient_x64, C++ x64, MS Fortran PowerStation 4.0 (32-bit).

    The Fortran 90 program includes the following call statments as a test:

    CALL MPI_INIT( IERR )
    CALL MPI_COMM_SIZE(MPI_COMM_WORLD, NUMTASKS, IERR)
    CALL MPI_COMM_RANK(MPI_COMM_WORLD, TASKID, IERR)
    CALL MPI_FINALIZE( IERR )

    Linking the fortran in DLL to the x86 version of msmpi.lib and msmpifms.lib gives the following warnings and errors:

    msmpifms.lib(mpif.obj) : warning LNK4044: unrecognized option       "FAILIFMISMATCH:_MSC_VER=1600"; ignored
    msmpifms.lib(mpif.obj) : warning LNK4044: unrecognized option "FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0"; ignored

    LINK : error : Internal error during Pass1
    link.exe terminated at user request.

    Please advise what to do.

    Best regards.

    Prof. Dr. Said El Noshokaty

    Wednesday, January 30, 2013 9:27 PM

All replies

  • Hi,

    The error you are getting is from the Linker not recognizing the linker directives inserted by the version of the compiler suite we use.

    What version of the linker are you using?

    Jeff

    Wednesday, January 30, 2013 10:24 PM
  • Hi,

    No specific Linker version is declared. It is anyhow the Linker of MS Fortran PowerStation 4.0.

    When Linker directive " /nodefaultlib" is added, the following warnings and errors are given:

    msmpifms.lib(mpif.obj) : warning LNK4044: unrecognized option "FAILIFMISMATCH:_MSC_VER=1600"; ignored
    msmpifms.lib(mpif.obj) : warning LNK4044: unrecognized option "FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0"; ignored
    c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msmpi.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x50c2ab53
    Error executing link.exe.

    Best regards.

    Prof. Dr. Said El Noshokaty

    Thursday, January 31, 2013 3:28 PM
  • Hi,

    Could you try an older version MPI and see if you can link successfully? You can download it from http://www.microsoft.com/en-us/download/details.aspx?id=14737

    Thanks,

    Jeff

    Thursday, January 31, 2013 6:14 PM
  • Hi,

    I tried the x86 version of Microsoft HPC 2008 R2 as you proposed. It does not work because Windows 7 is x64. I tried it on x86 Windows XP on a 32-bit PC. The following error is given:

    LINK : error : Internal error during Pass1
    link.exe terminated at user request.

    Best regards.

    Prof. Dr. Said El Noshokaty

    Friday, February 1, 2013 10:14 AM
  • Can you post the full build log and your make file, sources file (not the source code), etc?

    Thanks,

    Jeff

    Friday, February 1, 2013 6:17 PM
  • Hi,

    I fail submitting you in here the Linker progress report and the mak file. May I email them to you? Upon examining the report, I discover that msvcprt.lib and uuid.lib are missing. I added them to HPC pack 2012 library and then I let the linker link them. Still I have the following error message in the progress report, in both x64 and x86 platforms: 

    c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msmpi.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x50c2ab53
    Error executing link.exe.

    Best regards.

    Prof. Dr. Said El Noshokaty

    Saturday, February 2, 2013 11:22 AM
  • Please send the make file and log files to jiy@microsoft.com.

    Thanks,

    Jeff

    Monday, February 4, 2013 6:40 PM
  • Hi,

    The following is the Linker progress report, using Microsoft HPC Pack 2012:

    Linking...

    Start Pass1
    Processed /DEFAULTLIB:console.lib
    Processed /DEFAULTLIB:libfmt.lib
    Processed /DEFAULTLIB:libcmt.lib
    Processed /DEFAULTLIB:portlib.lib

    Searching Libraries
        Searching C:\MSDEV\LIB\kernel32.lib:
        Searching c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msmpi.lib:
        Searching c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msmpifms.lib:
          Found   MPI Finalize@4
            Referenced in sosvoyagerprogllah.obj
            Loaded msmpifms.lib(mpif_aliases.obj)
          Found   mpi send @28
            Referenced in msmpifms.lib(mpif_aliases.obj)
            Referenced in msmpifms.lib(mpif_aliases.obj)
            Referenced in msmpifms.lib(mpif_aliases.obj)
            Referenced in msmpifms.lib(mpif_aliases.obj)
            Referenced in msmpifms.lib(mpif_aliases.obj)
            Referenced in msmpifms.lib(mpif_aliases.obj)
            Referenced in msmpifms.lib(mpif_aliases.obj)
            Loaded msmpifms.lib(mpif.obj)
    Processed /DEFAULTLIB:uuid.lib
    msmpifms.lib(mpif.obj) : warning LNK4044: unrecognized option "FAILIFMISMATCH:_MSC_VER=1600"; ignored
    msmpifms.lib(mpif.obj) : warning LNK4044: unrecognized option "FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0"; ignored
    Processed /DEFAULTLIB:msvcprt
          Found _mpipriv1
            Referenced in msmpifms.lib(mpif_aliases.obj)
            Referenced in msmpifms.lib(mpif_aliases.obj)
            Referenced in msmpifms.lib(mpif_aliases.obj)
            Loaded msmpifms.lib(setbotf.obj)
        Searching c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\uuid.lib:
        Searching c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcprt.lib:
        Searching c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcprtd.lib:
        Searching c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcmrt.lib:
        Searching c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcmrtd.lib:
        Searching C:\MSDEV\LIB\console.lib:
        Searching C:\MSDEV\LIB\libfmt.lib:
          Found _write_r
            Referenced in sosvoyagerprogllah.obj
            Referenced in sosvoyagerprogllah.obj
            Referenced in sosvoyagerprogllah.obj
            Loaded libfmt.lib(cformat.obj)
          Found _f90_endwrite
            Referenced in sosvoyagerprogllah.obj
            Referenced in sosvoyagerprogllah.obj
            Referenced in sosvoyagerprogllah.obj
            Referenced in sosvoyagerprogllah.obj
            Loaded libfmt.lib(cwrite.obj)
        Searching C:\MSDEV\LIB\libcmt.lib:
          Found __ftol
            Referenced in sosvoyagerprogllah.obj
            Loaded libcmt.lib(ftol.obj)
          Found __fltused
            Referenced in libfmt.lib(fltinf.obj)
            Referenced in libfmt.lib(matherr.obj)
            Referenced in libfmt.lib(irand.obj)
            Referenced in libfmt.lib(decflt.obj)
            Referenced in libfmt.lib(encflt.obj)
            Referenced in sosvoyagerprogllah.obj
            Referenced in msmpifms.lib(mpif.obj)
            Referenced in libfmt.lib(cformat.obj)
            Referenced in libfmt.lib(intrin.obj)
            Loaded libcmt.lib(fpinit.obj)
          Found   DllMainCRTStartup@12
            Loaded libcmt.lib(dllcrt0.obj)
          Found __OP_SQRTjmptab
            Referenced in libcmt.lib(87csqrt.obj)
            Loaded libcmt.lib(87sqrt.obj)
          Found __OP_ASINjmptab
            Referenced in libcmt.lib(87ctriga.obj)
            Loaded libcmt.lib(87triga.obj)
          Found __OP_POWjmptab
            Referenced in libcmt.lib(87ctran.obj)
            Loaded libcmt.lib(87tran.obj)
          Found __OP_SINHjmptab
            Referenced in libcmt.lib(87ctrigh.obj)
            Loaded libcmt.lib(87trigh.obj)
          Found __rtindfpop
            Referenced in libcmt.lib(87fmod.obj)
            Referenced in libcmt.lib(87triga.obj)
            Referenced in libcmt.lib(87tran.obj)
            Loaded libcmt.lib(87disp.obj)
          Found __adj_fprem
            Referenced in libcmt.lib(87fmod.obj)
            Loaded libcmt.lib(adj_fdiv.obj)
          Found ___lc_handle
            Referenced in libcmt.lib(toupper.obj)
            Referenced in libcmt.lib(stricmp.obj)
            Referenced in libcmt.lib(tolower.obj)
            Loaded libcmt.lib(nlsdata2.obj)
          Found ___crtLCMapStringA
            Referenced in libcmt.lib(toupper.obj)
            Referenced in libcmt.lib(tolower.obj)
            Loaded libcmt.lib(aw_map.obj)
          Found ___crtGetStringTypeA
            Referenced in libcmt.lib(isctype.obj)
            Loaded libcmt.lib(aw_str.obj)
          Found __XcptActTab
            Referenced in libcmt.lib(winsig.obj)
            Referenced in libcmt.lib(tidtable.obj)
            Loaded libcmt.lib(winxfltr.obj)
          Found ___xc_a
            Referenced in libcmt.lib(crt0dat.obj)
            Loaded libcmt.lib(crt0init.obj)
    Processed /DEFAULTLIB:kernel32.lib
     Processed /DISALLOWLIB:libc.lib
     Processed /DISALLOWLIB:libcd.lib
     Processed /DISALLOWLIB:libcmtd.lib
     Processed /DISALLOWLIB:msvcrt.lib
     Processed /DISALLOWLIB:msvcrtd.lib
          Found  rt probe read4@4
            Referenced in libcmt.lib(longjmp.obj)
            Loaded libcmt.lib(sehsupp.obj)
        Searching C:\MSDEV\LIB\kernel32.lib:
          Found   GetCommandLine@0
            Referenced in libfmt.lib(fortstr.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found    imp EnterCriticalSection@4
            Referenced in libcmt.lib(osfinfo.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found   imp LeaveCriticalSection@4
            Referenced in libfmt.lib(ufdiro.obj)
            Referenced in libcmt.lib(osfinfo.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found  imp GetCurrentThreadId@0
            Referenced in libfmt.lib(mt.obj)
            Referenced in libcmt.lib(tidtable.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found   imp GetExitCodeThread@8
            Referenced in libfmt.lib(mt.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found  imp DuplicateHandle@28
            Referenced in libfmt.lib(mt.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found   imp GetCurrentThread@0
            Referenced in libfmt.lib(mt.obj)
            Referenced in libcmt.lib(tidtable.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found   imp GetCurrentProcess@0
            Referenced in libfmt.lib(mt.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found  imp DeleteCriticalSection@4
            Referenced in libfmt.lib(core.obj)
            Referenced in libcmt.lib(ioinit.obj)
            Referenced in libcmt.lib(mlock.obj)
            Referenced in libcmt.lib(closeall.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found  imp GetACP@0
            Referenced in libfmt.lib(core.obj)
            Referenced in libcmt.lib(mbctype.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found   imp InitializeCriticalSection@4
            Referenced in libfmt.lib(core.obj)
            Referenced in libfmt.lib(irand.obj)
            Referenced in libcmt.lib(osfinfo.obj)
            Referenced in libcmt.lib(mlock.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found  imp GetVersion@0
            Referenced in libfmt.lib(core.obj)
            Referenced in libcmt.lib(dllcrt0.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found   imp SetHandleCount@4
            Referenced in libfmt.lib(core.obj)
            Referenced in libcmt.lib(ioinit.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found  imp GetFileInformationByHandle@8
            Referenced in libfmt.lib(core.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found  imp CloseHandle@4
            Referenced in libfmt.lib(core.obj)
            Referenced in libcmt.lib(open.obj)
            Referenced in libcmt.lib(close.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found  imp CreatFileA@28
            Referenced in libfmt.lib(core.obj)
            Referenced in libcmt.lib(open.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found   imp GetProcAddress@8
            Referenced in libcmt.lib(dllcrt0.obj)
            Referenced in libcmt.lib(testfdiv.obj)
            Referenced in libcmt.lib(crtmbox.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found  imp GetModuleHandleA@4
            Referenced in libcmt.lib(dllcrt0.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found  imp GetLocalTime@4
            Referenced in libcmt.lib(ftime.obj)
            Referenced in libcmt.lib(time.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found   imp HeapAlloc@12
            Referenced in libcmt.lib(malloc.obj)
            Referenced in libcmt.lib(calloc.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found  imp HeapFree@12
            Referenced in libcmt.lib(free.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found   imp HeapReAlloc@16
            Referenced in libcmt.lib(realloc.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found   imp GetLastError@0
            Referenced in libcmt.lib(chsize.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found   imp SetConsoleCtrlHandler@8
            Referenced in libcmt.lib(winsig.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found   imp ExitProcess@4
            Referenced in libcmt.lib(crt0dat.obj)
            Referenced in libcmt.lib(mlock.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found   imp GetFileType@4
            Referenced in libcmt.lib(open.obj)
            Referenced in libcmt.lib(osfinfo.obj)
            Referenced in libcmt.lib(ioinit.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found  imp CompareStringW@24
            Referenced in libcmt.lib(aw_cmp.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found  imp SetEnvironmentVariableA@8
            Referenced in libcmt.lib(setenv.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found  SystemTimeToFileTime@8
            Referenced in portlib.lib(time.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found  GetSystemTime@4
            Referenced in portlib.lib(time.obj)
            Loaded kernel32.lib(KERNEL32.dll)
          Found __IMPORT_DESCRIPTOR_KERNEL32
            Referenced in kernel32.lib(KERNEL32.dll)
            Loaded kernel32.lib(KERNEL32.dll)
          Found __NULL_IMPORT_DESCRIPTOR
            Referenced in kernel32.lib(KERNEL32.dll)
            Loaded kernel32.lib(KERNEL32.dll)
          Found KERNEL32_NULL_THUNK_DATA
            Referenced in kernel32.lib(KERNEL32.dll)
            Loaded kernel32.lib(KERNEL32.dll)
        Searching c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msmpi.lib:
          Found  MPI Send@24
            Referenced in msmpifms.lib(mpif.obj)
            Loaded msmpi.lib(msmpi.dll)
    c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msmpi.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x50c2ab53
    Error executing link.exe.

    ==========================End of Linker progress report==================

    The following is details of MAK file:

    # Microsoft Developer Studio Generated NMAKE File, Format Version 4.00
    # ** DO NOT EDIT **

    # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102

    !IF "$(CFG)" == ""
    CFG=sosvoyagerprogllah - Win32 Debug
    !MESSAGE No configuration specified.  Defaulting to sosvoyagerprogllah - Win32\
     Debug.
    !ENDIF

    !IF "$(CFG)" != "sosvoyagerprogllah - Win32 Release" && "$(CFG)" !=\
     "sosvoyagerprogllah - Win32 Debug"
    !MESSAGE Invalid configuration "$(CFG)" specified.
    !MESSAGE You can specify a configuration when running NMAKE on this makefile
    !MESSAGE by defining the macro CFG on the command line.  For example:
    !MESSAGE
    !MESSAGE NMAKE /f "sosvoyagerprogllah.mak"\
     CFG="sosvoyagerprogllah - Win32 Debug"
    !MESSAGE
    !MESSAGE Possible choices for configuration are:
    !MESSAGE
    !MESSAGE "sosvoyagerprogllah - Win32 Release" (based on\
     "Win32 (x86) Dynamic-Link Library")
    !MESSAGE "sosvoyagerprogllah - Win32 Debug" (based on\
     "Win32 (x86) Dynamic-Link Library")
    !MESSAGE
    !ERROR An invalid configuration is specified.
    !ENDIF

    !IF "$(OS)" == "Windows_NT"
    NULL=
    !ELSE
    NULL=nul
    !ENDIF
    ################################################################################
    # Begin Project
    # PROP Target_Last_Scanned "sosvoyagerprogllah - Win32 Debug"
    RSC=rc.exe
    MTL=mktyplib.exe
    F90=fl32.exe

    !IF  "$(CFG)" == "sosvoyagerprogllah - Win32 Release"

    # PROP BASE Use_MFC 0
    # PROP BASE Use_Debug_Libraries 0
    # PROP BASE Output_Dir "Release"
    # PROP BASE Intermediate_Dir "Release"
    # PROP BASE Target_Dir ""
    # PROP Use_MFC 0
    # PROP Use_Debug_Libraries 0
    # PROP Output_Dir "c:\sos\sosvoyagerprogllah"
    # PROP Intermediate_Dir "c:\sos\sosvoyagerprogllah"
    # PROP Target_Dir ""
    OUTDIR=c:\sos\sosvoyagerprogllah
    INTDIR=c:\sos\sosvoyagerprogllah

    ALL : "$(OUTDIR)\sosvoyagerprogllah.dll"\
     "$(OUTDIR)\sosvoyagerprogllah\ALLAH.MOD"\
     "$(OUTDIR)\sosvoyagerprogllah\sosvoyagerprogllah.bsc"

    CLEAN : 
      -@erase ".\ALLAH.MOD"
      -@erase ".\sosvoyagerprogllah.bsc"
      -@erase ".\sosvoyagerprogllah.sbr"
      -@erase "..\sosvoyagerprogllah.dll"
     -@erase ".\sosvoyagerprogllah.obj"
     -@erase "..\sosvoyagerprogllah.ilk"
      -@erase ".\sosvoyagerprogllah.lib"
      -@erase ".\sosvoyagerprogllah.exp"
     -@erase ".\sosvoyagerprogllah.pdb"

    "$(OUTDIR)" :
        if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"

    # ADD BASE F90 /Ox /I "Release/" /c /nologo /MT
    # ADD F90 /Ox /G5 /4R8 /FR /I "c:\sos\sosvoyagerprogllah/" /c /nologo /MT
    F90_PROJ=/Ox /G5 /4R8 /FR"c:\sos\sosvoyagerprogllah/" /I\
     "c:\sos\sosvoyagerprogllah/" /c /nologo /MT /Fo"c:\sos\sosvoyagerprogllah/"
    F90_OBJS=c:\sos\sosvoyagerprogllah/
    # ADD BASE MTL /nologo /D "NDEBUG" /win32
    # ADD MTL /nologo /D "NDEBUG" /win32
    MTL_PROJ=/nologo /D "NDEBUG" /win32
    # ADD BASE RSC /l 0x809 /d "NDEBUG"
    # ADD RSC /l 0x809 /d "NDEBUG"
    BSC32=bscmake.exe
    # ADD BASE BSC32 /nologo
    # ADD BSC32 /nologo
    BSC32_FLAGS=/nologo /o"$(OUTDIR)/sosvoyagerprogllah.bsc"
    BSC32_SBRS= \
     "$(INTDIR)/sosvoyagerprogllah.sbr"

    "$(OUTDIR)\sosvoyagerprogllah\sosvoyagerprogllah.bsc" : "$(OUTDIR)"\
     $(BSC32_SBRS)
        $(BSC32) @<<
      $(BSC32_FLAGS) $(BSC32_SBRS)
    <<

    LINK32=link.exe
    # ADD BASE LINK32 kernel32.lib /nologo /subsystem:windows /dll /machine:I386
    # ADD LINK32 "kernel32.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msmpi.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msmpifms.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\uuid.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcprt.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcprtd.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcmrt.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcmrtd.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcrt.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcrtd.lib" /nologo /subsystem:windows /verbose /dll /incremental:yes /debug /machine:I386 /out:"c:\sos/sosvoyagerprogllah.dll"
    # SUBTRACT LINK32 /nodefaultlib
    LINK32_FLAGS="kernel32.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msmpi.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msmpifms.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\uuid.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcprt.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcprtd.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcmrt.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcmrtd.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcrt.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcrtd.lib" /nologo\
     /subsystem:windows /verbose /dll /incremental:yes\
     /pdb:"$(OUTDIR)/sosvoyagerprogllah.pdb" /debug /machine:I386\
     /out:"c:\sos/sosvoyagerprogllah.dll" /implib:"$(OUTDIR)/sosvoyagerprogllah.lib"\
     
    LINK32_OBJS= \
     "$(INTDIR)/sosvoyagerprogllah.obj"

    "$(OUTDIR)\sosvoyagerprogllah.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
        $(LINK32) @<<
      $(LINK32_FLAGS) $(LINK32_OBJS)
    <<

    !ELSEIF  "$(CFG)" == "sosvoyagerprogllah - Win32 Debug"

    # PROP BASE Use_MFC 0
    # PROP BASE Use_Debug_Libraries 1
    # PROP BASE Output_Dir "Debug"
    # PROP BASE Intermediate_Dir "Debug"
    # PROP BASE Target_Dir ""
    # PROP Use_MFC 0
    # PROP Use_Debug_Libraries 1
    # PROP Output_Dir "c:\sos\sosvoyagerprogllah"
    # PROP Intermediate_Dir "c:\sos\sosvoyagerprogllah"
    # PROP Target_Dir ""
    OUTDIR=c:\sos\sosvoyagerprogllah
    INTDIR=c:\sos\sosvoyagerprogllah

    ALL : "$(OUTDIR)\sosvoyagerprogllah.dll"\
     "$(OUTDIR)\sosvoyagerprogllah\ALLAH.MOD"\
     "$(OUTDIR)\sosvoyagerprogllah\sosvoyagerprogllah.bsc"

    CLEAN :
     -@erase ".\ALLAH.MOD"
     -@erase ".\sosvoyagerprogllah.bsc"
     -@erase ".\sosvoyagerprogllah.sbr" 

     -@erase "..\sosvoyagerprogllah.dll"
      -@erase ".\sosvoyagerprogllah.obj"
      -@erase "..\sosvoyagerprogllah.ilk"
      -@erase ".\sosvoyagerprogllah.lib"
      -@erase ".\sosvoyagerprogllah.exp"
     -@erase ".\sosvoyagerprogllah.pdb"

    "$(OUTDIR)" :
        if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"

    # ADD BASE F90 /Zi /I "Debug/" /c /nologo /MT
    # ADD F90 /G5 /4R8 /FR /Zi /I "c:\sos\sosvoyagerprogllah/" /c /nologo /MT
    F90_PROJ=/G5 /4R8 /FR"c:\sos\sosvoyagerprogllah/" /Zi /I\
     "c:\sos\sosvoyagerprogllah/" /c /nologo /MT /Fo"c:\sos\sosvoyagerprogllah/"\
     /Fd"c:\sos\sosvoyagerprogllah/sosvoyagerprogllah.pdb"
    F90_OBJS=c:\sos\sosvoyagerprogllah/
    # ADD BASE MTL /nologo /D "_DEBUG" /win32
    # ADD MTL /nologo /D "_DEBUG" /win32
    MTL_PROJ=/nologo /D "_DEBUG" /win32
    # ADD BASE RSC /l 0x809 /d "_DEBUG"
    # ADD RSC /l 0x809 /d "_DEBUG"
    BSC32=bscmake.exe
    # ADD BASE BSC32 /nologo
    # ADD BSC32 /nologo
    BSC32_FLAGS=/nologo /o"$(OUTDIR)/sosvoyagerprogllah.bsc"
    BSC32_SBRS= \
     "$(INTDIR)/sosvoyagerprogllah.sbr"

    "$(OUTDIR)\sosvoyagerprogllah\sosvoyagerprogllah.bsc" : "$(OUTDIR)"\
     $(BSC32_SBRS)
        $(BSC32) @<<
      $(BSC32_FLAGS) $(BSC32_SBRS)
    <<

    LINK32=link.exe
    # ADD BASE LINK32 kernel32.lib /nologo /subsystem:windows /dll /debug /machine:I386
    # ADD LINK32 "kernel32.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msmpi.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msmpifms.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\uuid.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcprt.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcprtd.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcmrt.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcmrtd.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcrt.lib" "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcrtd.lib" /nologo /subsystem:windows /verbose /dll /debug /machine:I386 /out:"c:\sos/sosvoyagerprogllah.dll"
    # SUBTRACT LINK32 /incremental:no /nodefaultlib
    LINK32_FLAGS="kernel32.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msmpi.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msmpifms.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\uuid.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcprt.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcprtd.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcmrt.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcmrtd.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcrt.lib"\
     "c:\Program Files\Microsoft HPC Pack 2012\Lib\i386\msvcrtd.lib" /nologo\
     /subsystem:windows /verbose /dll /incremental:yes\
     /pdb:"$(OUTDIR)/sosvoyagerprogllah.pdb" /debug /machine:I386\
     /out:"c:\sos/sosvoyagerprogllah.dll" /implib:"$(OUTDIR)/sosvoyagerprogllah.lib"\
     
    LINK32_OBJS= \
     "$(INTDIR)/sosvoyagerprogllah.obj"

    "$(OUTDIR)\sosvoyagerprogllah.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
        $(LINK32) @<<
      $(LINK32_FLAGS) $(LINK32_OBJS)
    <<

    !ENDIF

    .for{$(F90_OBJS)}.obj:
       $(F90) $(F90_PROJ) $< 

    .f{$(F90_OBJS)}.obj:
       $(F90) $(F90_PROJ) $< 

    .f90{$(F90_OBJS)}.obj:
       $(F90) $(F90_PROJ) $< 

    ################################################################################
    # Begin Target

    # Name "sosvoyagerprogllah - Win32 Release"
    # Name "sosvoyagerprogllah - Win32 Debug"

    !IF  "$(CFG)" == "sosvoyagerprogllah - Win32 Release"

    !ELSEIF  "$(CFG)" == "sosvoyagerprogllah - Win32 Debug"

    !ENDIF

    ################################################################################
    # Begin Source File

    SOURCE=\sos\sosvoyagerprogllah.f90

    !IF  "$(CFG)" == "sosvoyagerprogllah - Win32 Release"

    F90_MODOUT=\
     "ALLAH"


    BuildCmds= \
     $(F90) $(F90_PROJ) $(SOURCE) \

    "$(INTDIR)\sosvoyagerprogllah\sosvoyagerprogllah.obj" : $(SOURCE) "$(INTDIR)"
       $(BuildCmds)

    "$(INTDIR)\sosvoyagerprogllah\sosvoyagerprogllah.sbr" : $(SOURCE) "$(INTDIR)"
       $(BuildCmds)

    "$(INTDIR)\sosvoyagerprogllah\ALLAH.MOD" : $(SOURCE) "$(INTDIR)"
       $(BuildCmds)

    !ELSEIF  "$(CFG)" == "sosvoyagerprogllah - Win32 Debug"

    F90_MODOUT=\
     "ALLAH"


    BuildCmds= \
     $(F90) $(F90_PROJ) $(SOURCE) \

    "$(INTDIR)\sosvoyagerprogllah\sosvoyagerprogllah.obj" : $(SOURCE) "$(INTDIR)"
       $(BuildCmds)

    "$(INTDIR)\sosvoyagerprogllah\sosvoyagerprogllah.sbr" : $(SOURCE) "$(INTDIR)"
       $(BuildCmds)

    "$(INTDIR)\sosvoyagerprogllah\ALLAH.MOD" : $(SOURCE) "$(INTDIR)"
       $(BuildCmds)

    !ENDIF

    # End Source File
    # End Target
    # End Project

    ===========================End of MAK file=========================

    Best regards.

    Prof. Dr. Said El Noshokaty

    Monday, February 4, 2013 6:42 PM