<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to set Build order in Visual Studio in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-set-Build-order-in-Visual-Studio/m-p/1694342#M175979</link>
    <description>&lt;P&gt;I have a case where a module GSUBS contains functions that depend upon the module PBOX.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If I clean and rebuild, the build fails&lt;UL&gt;&lt;LI&gt;If I build again, the build succeeds&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;If I clean and compile PBOX and build, the build succeeds&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It's clear what the problem is in this very simple case. I need to build PBOX before I build GSUBS. However, unlike the C/C++ compilers, I am unable to specify the build order (or at least I could not find a way to do that). The only dependency option I had was to build another project first if this project depended upon that project (which is does not).&lt;BR /&gt;&lt;BR /&gt;I see some VERY old posts on the issue (2011-2014) but did not find any solutions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;PBOX contains win32 graphics calls and GSUBS is 'pure fortran' code that calls the graphics methods in PBOX. At the moment GSUBS contains two simple functions. All worked fine until I added the module GSUBS.&amp;nbsp; &amp;nbsp;GSUBS looks like&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;module GSUBSModule
    use PboxModule

    implicit none
    private
    public :: BOX, MCURSOR
    
    contains
      (At the moment only two functions)
    !*************************************************Make BOX of lines:
	    function BOX(IX1, IY11, IX2, IY22, color, hWnd) result(message)
            use ifwinty
    
	        INTEGER(SINT), intent(in) :: IX1, IY11, IX2, IY22
            INTEGER*4, intent(in) :: color
            INTEGER(HANDLE), INTENT(IN) :: hWnd
    
	        INTEGER(SINT) IY1, IY2
            character(128) :: message    
    
	        IY1 = gWndHght - IY11
	        IY2 = gWndHght - IY22
    
	        message = PLINE(IX1, IY1, IX1, IY2, color, hwnd)
	        message = PLINE(IX1, IY2, IX2, IY2, color, hwnd)
	        message = PLINE(IX2, IY2, IX2, IY1, color, hwnd)
	        message = PLINE(IX2, IY1, IX1, IY1, color, hwnd)
        END function BOX
    
    !*********************************************Mouse cursor drawing routine:
        function MCURSOR(IX, IYY, color, hWnd) result(message)
            use ifwinty
    
	        INTEGER(SINT), intent(in) :: IX, IYY
            INTEGER*4, intent(in) :: color
            INTEGER(HANDLE), INTENT(IN) :: hWnd
    
	        INTEGER(SINT) :: I, IX2, IY2, IY
            character(128) :: message
    
	        IY = gWndHght - IYY
	        IX2 = IX - 8
	        IY2 = IY - 8
	        DO I = 1, 17
	           message = PLOT(INT(IX2 + I, SINT), IY, color, hwnd)
	           message = PLOT(IX2 + I, IY + 1, color, hwnd)
	           message = PLOT(IX + 1, IY2 + I, color, hwnd)
	           message = PLOT(IX, IY2 + I, color, hwnd)
            END DO
        END function MCURSOR&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 03 Jun 2025 13:05:09 GMT</pubDate>
    <dc:creator>brianreinhold</dc:creator>
    <dc:date>2025-06-03T13:05:09Z</dc:date>
    <item>
      <title>How to set Build order in Visual Studio</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-set-Build-order-in-Visual-Studio/m-p/1694342#M175979</link>
      <description>&lt;P&gt;I have a case where a module GSUBS contains functions that depend upon the module PBOX.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If I clean and rebuild, the build fails&lt;UL&gt;&lt;LI&gt;If I build again, the build succeeds&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;If I clean and compile PBOX and build, the build succeeds&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It's clear what the problem is in this very simple case. I need to build PBOX before I build GSUBS. However, unlike the C/C++ compilers, I am unable to specify the build order (or at least I could not find a way to do that). The only dependency option I had was to build another project first if this project depended upon that project (which is does not).&lt;BR /&gt;&lt;BR /&gt;I see some VERY old posts on the issue (2011-2014) but did not find any solutions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;PBOX contains win32 graphics calls and GSUBS is 'pure fortran' code that calls the graphics methods in PBOX. At the moment GSUBS contains two simple functions. All worked fine until I added the module GSUBS.&amp;nbsp; &amp;nbsp;GSUBS looks like&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;module GSUBSModule
    use PboxModule

    implicit none
    private
    public :: BOX, MCURSOR
    
    contains
      (At the moment only two functions)
    !*************************************************Make BOX of lines:
	    function BOX(IX1, IY11, IX2, IY22, color, hWnd) result(message)
            use ifwinty
    
	        INTEGER(SINT), intent(in) :: IX1, IY11, IX2, IY22
            INTEGER*4, intent(in) :: color
            INTEGER(HANDLE), INTENT(IN) :: hWnd
    
	        INTEGER(SINT) IY1, IY2
            character(128) :: message    
    
	        IY1 = gWndHght - IY11
	        IY2 = gWndHght - IY22
    
	        message = PLINE(IX1, IY1, IX1, IY2, color, hwnd)
	        message = PLINE(IX1, IY2, IX2, IY2, color, hwnd)
	        message = PLINE(IX2, IY2, IX2, IY1, color, hwnd)
	        message = PLINE(IX2, IY1, IX1, IY1, color, hwnd)
        END function BOX
    
    !*********************************************Mouse cursor drawing routine:
        function MCURSOR(IX, IYY, color, hWnd) result(message)
            use ifwinty
    
	        INTEGER(SINT), intent(in) :: IX, IYY
            INTEGER*4, intent(in) :: color
            INTEGER(HANDLE), INTENT(IN) :: hWnd
    
	        INTEGER(SINT) :: I, IX2, IY2, IY
            character(128) :: message
    
	        IY = gWndHght - IYY
	        IX2 = IX - 8
	        IY2 = IY - 8
	        DO I = 1, 17
	           message = PLOT(INT(IX2 + I, SINT), IY, color, hwnd)
	           message = PLOT(IX2 + I, IY + 1, color, hwnd)
	           message = PLOT(IX + 1, IY2 + I, color, hwnd)
	           message = PLOT(IX, IY2 + I, color, hwnd)
            END DO
        END function MCURSOR&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 03 Jun 2025 13:05:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-set-Build-order-in-Visual-Studio/m-p/1694342#M175979</guid>
      <dc:creator>brianreinhold</dc:creator>
      <dc:date>2025-06-03T13:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Build order in Visual Studio</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-set-Build-order-in-Visual-Studio/m-p/1694360#M175982</link>
      <description>&lt;P&gt;Vs is good at getting dependencies correct. The symptoms sound like circular depandancies. A depends on B and B depends On A so the correct order is Impossible. You need to change the structure or look at submodules. Does pboxmodule call mcursor or box if so that is circular.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 14:36:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-set-Build-order-in-Visual-Studio/m-p/1694360#M175982</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2025-06-03T14:36:08Z</dc:date>
    </item>
  </channel>
</rss>

