Jump to content


Photo

Mplab 8.80.00 + Boostc 7.04 Paths Issue

MPLAB BoostC

1 reply to this topic

#1 sakis.panou@qlogica.com

sakis.panou@qlogica.com

    Newbrie

  • Members
  • 1 posts

Posted 11 January 2012 - 11:30 AM

Hi All,

Thanks for reading this.

I have the followign directory structure:

\project
\build
\src

In my src directory I got all my source files. In the build directory I got the MPLAB workspace, project etc. When try to build the project I get an error telling me that it can't find the first compilation unit in the src directory, error.c [yes I do get the irony ;)], I have tried adding the files to the project both by relative path and absolute path, it makes no difference. If I put all the source files and the project/workspace files in one flat directory everything works.

Here is the output from the build tab:


Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files (x86)\SourceBoost\boostc_pic18.exe" error.c -O1 -W1 -t 18F2550 -dBUILD_PIC
BoostC Optimizing C Compiler Version 7.04 (for PIC18 architecture)
http://www.sourceboost.com
Copyright© 2004-2011 Pavel Baranov
Copyright© 2004-2011 David Hobday

Licensed to xxx xxxx under Single user Full License for 1 node(s)
Limitations: PIC18 max code size:Unlimited, max RAM banks:Unlimited, Non commercial use only


error.c
FATAL: Unable to open input file: error.c

failure
BUILD FAILED: Wed Jan 11 10:33:14 2012


Questions:

  • Is there a verbose mode in the IDE to see exactly how the compiler is getting called? The reason for asking this is that I have tried calling the compiler with the absolute path to the source file and it works from the command line, I have also tried relative paths from the command line and it still works.
  • Has anyone else come accross this one and perhaps would be kind enough to share some thoughts?
Thanks very much in advance.

Cheers,
Sakis

#2 Pavel

Pavel

    Super Maniac

  • Administrators
  • PipPipPipPipPip
  • 1,446 posts
  • Gender:Male
  • Location:Melbourne, Australia

Posted 15 January 2012 - 11:42 PM

  • Is there a verbose mode in the IDE to see exactly how the compiler is getting called? The reason for asking this is that I have tried calling the compiler with the absolute path to the source file and it works from the command line, I have also tried relative paths from the command line and it still works.


Use the "Build" command from the IDE. This will generate a makefile in your project directory. This makefile contains full command lines for both compiler and linker.

Regards,
Pavel



Reply to this topic



  



Also tagged with one or more of these keywords: MPLAB, BoostC

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users