Announcement

Collapse
No announcement yet.

Problem with INClude

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

  • Lance Edmonds
    replied
    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>

    Leave a comment:


  • Eric Pearson
    replied
    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>

    Leave a comment:


  • Robert E. Carneal
    started a topic Problem with INClude

    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.

    ------------------
Working...
X