Announcement

Collapse
No announcement yet.

Primary Source File when Compiling

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Primary Source File when Compiling

    I have just re arranged my Directories. When using the IDE, selecting a file to open, then "Build and Execute", the source file is compiled and the window showing compile details pops up. The primary source file is shown as it was before I re arranged the directories (this old sub directory no longer exists) and when the button is clicked there is no execution, Closing the IDE and looking for an EXE fails. Can any one tell me how to tell the IDE to create the new EXE in the same directory as its source file ?.

    ------------------

  • #2

    Here's what I do in all of my source-code files, which eliminates
    any possibility of directory problems!

    #COMPILE EXE "D:\PBDLL60\TestProject\Test.exe"
    #INCLUDE "D:\PBDLL60\WINAPI\WIN32API.INC"

    This makes sure that my Test.exe file will always be in the
    correct place!

    Happy Programming!


    ------------------
    mwm
    mwm

    Comment


    • #3
      I haven't used this feature, so I don't know how it works. I'd be inclined to suggest that you try using "Set as primary module" to select a new file. Then go back and re-select the file you actually want as primary.

      ------------------
      Tom Hanlin
      PowerBASIC Staff

      Comment


      • #4
        Thanks Michael and Tom.

        Michael: I tried your suggestion but to no avail.

        Tom: I tried your suggestion too, same result.
        The string ("Primary Source:") in the popup is located inside PBDLL.exe @ location H30318. Could you see where the offending string info is gotten from ?.
        I have reinstalled Win 98 SE and purged the registry of any instances of the offending string no matter where they were, but still I get the same results.

        Barney.
        ------------------




        [This message has been edited by Barney Winton (edited August 18, 2000).]

        Comment


        • #5
          PowerBASIC does not save the name of the primary source file on exit, so there would appear to be some other issue involved. You might want to check your .BAS, .INC and .RC files for hardcoded paths.


          ------------------
          Tom Hanlin
          PowerBASIC Staff

          Comment


          • #6
            Can any one tell me how to tell the IDE to create the new EXE in the same directory as its source file ?.
            Load any file from the directory you want the exefile to appear in using File/Open and this will set this directory as the current directory.

            Your EXE will then appear in that directory when compiled.

            Bern
            www.insighttrading.com.au


            ------------------
            Bern


            http://www.insighttrader.com.au

            Comment


            • #7
              I'm wondering if Barney did not move PowerBASIC (PBDLL.EXE, PBEDIT.EXE, etc) at the same time, and has not updated the IDE's OPTIONS dialog with the new paths.



              ------------------
              Lance
              PowerBASIC Support
              mailto:[email protected][email protected]</A>
              Lance
              mailto:[email protected]

              Comment


              • #8
                Many thanks to all who took the time to reply to what now appears to be a "Foot in Mouth" cry for help.
                Lance, you were spot on re Options pathing.
                Even though I dont recall doing it, I must have moved my installed Pbdll60 as well.
                Just goes to show that Basics are the first things to be forgotten.

                Regards, Barney


                ------------------

                Comment

                Working...
                X