CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    8

    How to use devstudio for other compiler

    I am working with microcontrollers, with uses an other dos compiler.
    How can i use the devstudio ide to build a new program. Must i make a makefile or something?
    and what should be in it?

    ,,,^..^,,,
    Michel

  2. #2
    Join Date
    May 1999
    Location
    West Sussex, England
    Posts
    1,939

    Re: How to use devstudio for other compiler

    I created a makefile in DOS that sets up the defaults for my projects as follows :

    // this section controls the whole build...
    // list the dependencies
    glpka.abs : actions.obj assay.obj asshelp.obj autosamp.obj curve.obj \
    dispense.obj display.obj distrib.obj electrod.obj etc...
    blink // this does the link stage (batch file)

    // for each file in the project list above, list the files that it is dependant on
    // and then on the following line how to compile it and with what options
    actions.obj : actions.c defines.h register.h
    c51 actions.c large noamake symbols order

    assay.obj : assay.c defines.h register.h
    c51 assay.c large noamake symbols order

    asshelp.obj : asshelp.c defines.h register.h
    c51 asshelp.c large noamake symbols order

    autosamp.obj : autosamp.c defines.h register.h
    c51 autosamp.c large noamake symbols order

    curve.obj : curve.c defines.h register.h
    c51 curve.c large noamake symbols order

    etc...



    The example above uses the KEIL C51 compiler and L51 / BL51 linker in devstudio.
    When I opened the .MAK file in Devstudio, I was prompted to wrap the makefile in a project.
    This happens with no problems. You may need to make sure that your PATH or your
    TOOLS:OPTIONSIRECTORIES have the correct paths to the LIB/INCLUDE directories required
    for your compiler.

    HTH


    Roger Allen
    Please use meaningful question titles - "Help me" does not let me know whether I can help with your question, and I am unlikely to bother reading it.
    Please remember to rate useful answers. It lets us know when a question has been answered.

  3. #3
    Join Date
    Apr 1999
    Posts
    8

    Re: How to use devstudio for other compiler

    thanx I will try it soon or after my holiday.

    ,,,^..^,,,
    Michel

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured