help to compile from a different directory of pbp.exe


Closed Thread
Results 1 to 2 of 2
  1. #1
    cirknop's Avatar
    cirknop Guest

    Default help to compile from a different directory of pbp.exe

    how can I compile a code source *.bas from a different directory of pbp.exe,
    and after have my *.hex in a same directory of my *.bas
    I use codedesigner

    (sorry for my english I'm french...)
    [email protected]

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    I can't help you with Codedesigner as I don't use it, however, with regard to different directories...

    Example...

    My PBP compiler files are located in...

    H:\data-reference\PIC\PBP244

    The project I'm working on is located in...

    H:\Myproject

    Ensure you have a DOS window open and logged into the \Myproject subdirectory with a path to PBP's location... by default on opening a DOS window, Win-XP drops me into...

    H:\Documents and Settings\Melanie>

    So all I do is...

    cd\Myproject
    Path H:\data-reference\pic\pbp244

    Actually I have those lines contained in a batch file called gopbp.bat and by simply calling 'gopbp' it logs me into my working directory and sets all the paths I need approprately.

    Once logged into the working directory, I use the command line as normal... eg...

    pbpw -p16f876 myfile -v

    If you use the MPSASM assembler, simply add it's location to the end of your path statement...

    Path H:\data-reference\pic\pbp244;H:\Program Files\MPLAB IDE\MCHIP_Tools

    If you run older versions of Windows (or even DOS), it may not like subdirectories with long names or filenames with spaces in them. In that instance you are limited to directories with eight or less characters, no spaces or other hieroglyphs.

    Melanie

Similar Threads

  1. Unable to pass a variable to LCDOUT without getting compile errors
    By Ferroto Baggins in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th February 2010, 16:43
  2. Compile and Program help using PICKit2
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 10th March 2009, 14:51
  3. USB PBPL Compile errors
    By Rob in forum USB
    Replies: 11
    Last Post: - 7th April 2008, 08:18
  4. Replies: 2
    Last Post: - 9th February 2006, 22:03
  5. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts