Jump to content
Sign in to follow this  
FrankGe

Boostc 1.9.2 Enum Compiler Problem

Recommended Posts

PIC 16F877A

BOOSTC 1.9.2

OS Win XP SP2

 

A little project with 4 files

 

Main.c

--------

#include <system.h>

#include "defs.h"

#include "date.h"

 

void main()

{

struct DateTime dt;

getDateTime(&dt);

}

 

Date.h

--------

#ifndef _date_h_

#define _date_h_

 

void getDateTime(struct DateTime *dt);

 

#endif

 

Date.c

--------

#include "defs.h"

 

void getDateTime(struct DateTime *dt)

{

dt->t.hour = 0;

}

 

Defs.h

-------

#ifndef _DEFS_H_

#define _DEFS_H_

 

enum EWeekDay

{

MO = 1,

TU,

WE,

TH,

FR,

SA,

SU

};

 

struct SDate

{

char year;

char month;

char day;

char weekDay;

};

 

struct STime

{

char hour;

char min;

char sec;

char timezone;

};

 

struct DateTime

{

struct SDate d;

struct STime t;

};

 

#endif

 

Message:

Compiling...

 

"C:\Program Files\SourceBoost\boostc.pic16.exe" -t PIC16F877A main.c date.c

 

BoostC Optimizing C Compiler Version 1.9.2 Beta (for PIC16 architecture)

http://www.picant.com/c2c/c.html

Copyright© 2004-2005 Pavel Baranov

Copyright© 2004-2005 David Hobday

 

 

defs.h(4): error: failure

failure

Failed to locate output file 'date.obj'

Done

 

Failed

Share this post


Link to post
Share on other sites

This is a good one. Was caused by internal compiler lists not cleared between compilations when more than one source file was specified in command line. Now fixed.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...