Announcement

Collapse
No announcement yet.

Problem with INClude

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

  • Problem with INClude

    I am doing something wrong. I am trying to include one of
    Powerbasic's libraries, but I am doing it wrong.

    If someone would send me an example (that works please) of
    including DATEUNIT in a PB (dos) program, I will be VERY
    grateful.

    Right now I am using
    INC# "C:/pb/example/dateunit.bas"

    but it says it cannot find it. The drive and path is correct, so
    I must be doing something else wrong.

    Thank you.

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

  • #2
    Use $INCLUDE not INC#, and while I think the compiler does accept forward slashes (/) you should probably use backslashes (\).

    -- Eric


    ------------------
    Perfect Sync Development Tools
    Perfect Sync Web Site
    Contact Us: mailto:[email protected][email protected]</A>
    "Not my circus, not my monkeys."

    Comment


    • #3
      DATEUNIT.BAS is designed to be compiled into a PBU, which can then be $LINK'ed into the .BAS file, thus:
      Code:
      ' Typical example of linking a PBU into an application:
      $COMPILE EXE
      $LINK "\PB35\EXAMPLE\DATEUNIT.PBU"
      ' rest of code goes here

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

      Comment

      Working...
      X