locked
compiling+linking with visual studio 2005 RRS feed

  • Question

  • Hello,

    I have recently started using intel fortran compiler with MS visual studio 2005. I used to use g95 as my fortran compiler and use nmake to build the executable for me code. the following is an example of the Makefile I was using. I am unable to produce the same executable in MSVS 2005. I am unable to define the linking, I only have those *.f files under source files. I say BUILD and it compiles and links automatically resulting in the wrong order of execution of the code.

    any suggestions or help?

    Kemal

    old makefile:

    #  Build master refdifs v1.3b shorecirc

    masterP:  master

    # Build master

    master: master.o interp.h pass.h refdifsv13b.o sed.o winc_std_main.o winc_std_deriv.o winc_std_filter.o winc_std_sub1.o winc_std_time.o morph.o orbit.o
        g95 -w -O3 -o nopp_refdifsv13b master.o refdifsv13b.o sed.o winc_std_main.o winc_std_deriv.o winc_std_filter.o winc_std_sub1.o winc_std_time.o morph.o orbit.o
    master.o: master.f pass.h interp.h
        g95 -w -O3 -c -ftrace=full master.f
    sed.o: sed.f pass.h
        g95 -w -O3 -c -ftrace=full sed.f   
    refdifsv13b.o: refdifsv13b.f param.h pass.h common.h
        g95 -w -O3 -c -ftrace=full refdifsv13b.f
    winc_std_main.o: winc_std_main.f winc_std_common.inc pass.h
        g95 -w -O3 -c -ftrace=full winc_std_main.f
    winc_std_deriv.o: winc_std_deriv.f winc_std_common.inc
        g95 -w -O3 -c  winc_std_deriv.f
    winc_std_filter.o: winc_std_filter.f
        g95 -w -O3 -c  winc_std_filter.f
    winc_std_sub1.o: winc_std_sub1.f winc_std_common.inc
        g95 -w -O3 -c  winc_std_sub1.f
    winc_std_time.o: winc_std_time.f winc_std_common.inc pass.h
        g95 -w -O3 -c  winc_std_time.f
    morph.o: morph.f pass.h
        g95 -w -O3 -c -ftrace=full morph.f
    orbit.o: orbit.f
        g95 -w -O3 -c  orbit.f
    • Moved by spacewrangler Saturday, October 11, 2008 4:17 AM build Q (Moved from Building Development and Diagnostic Tools for .Net to MSBuild)
    • Moved by Feng Chen Monday, October 13, 2008 3:52 AM Actually VC++ IDE issue. (Moved from MSBuild to Visual C++ General)
    • Moved by jack 321 Tuesday, October 14, 2008 9:11 AM intel fortran compiler issue, try to find related forum for this issue (Moved from Visual C++ General to Off-Topic Posts (Do Not Post Here))
    Tuesday, October 7, 2008 10:59 PM

Answers