Menu

#6 C18 compiler needs object file parameter

closed-fixed
nobody
Bug Fix (6)
5
2007-07-22
2007-05-23
Bjørn Mork
No

The C18 compiler will place all compiled object files in the project directory regardless of whether the source files are located there or in a subdirectory.

This makes building a project with subdirectories fail since the linker is unable to find the object files where it expects them to be (in the same subdirectory as the source file).

I could not find any way to add the necessary option, since the name of the object file is not exported as a variable. The attached patch fixes this and adds the option as default to the C18 toolchain.

Discussion

  • Bjørn Mork

    Bjørn Mork - 2007-05-23

    Add %OBJECT to available command line macros

     
  • Nicolas Hadacek

    Nicolas Hadacek - 2007-07-22
    • status: open --> closed-fixed
     
  • Nicolas Hadacek

    Nicolas Hadacek - 2007-07-22

    Logged In: YES
    user_id=130070
    Originator: NO

    I just committed your patch to the development sources.

    Thanks and sorry for the long response time...
    Nicolas

     

Log in to post a comment.