Go to Post Overall, I thought FIRST did a great job with the rules this year - very simple and very clear for the most part. However, something is always going to fall through the cracks (and I don't mean that in a bad way - people need to know that it's practically impossible to do something perfectly). - Chris Hibner [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 16-01-2007, 22:06
Roger Roger is offline
Registered User
FRC #1153
 
Join Date: Jan 2006
Rookie Year: 1900
Location: Walpole MA
Posts: 688
Roger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond repute
Re: _entry_scn error on building

This is my problem too, but whatever has been suggested above and in many other places doesn't cure my woes. I've even taken the code from a "good" code" subdirectory to a 2nd computer and matched up all the options side by side. Everything matches (except see below for $(INCDIR)).

As Alan Anderson says, I copied a subdirectory of good code to another directory. After all, you want to be able to fall back to good code if you mess up the newer code. If this can't be done MPLAB is a bit useless. I've always done "Build All", and as Alan suggests, I've tried the "Clean".

The only difference is the Include Path $(INCDIR) -- the good code had none in "Build Options" General. With none in the "bad" code, I get

C:\CODE\0601-SHOOTER\2007-01-14 TEST\camera.c:30:Error [1027] unable to locate 'stdio.h'

Adding a path C:\mcc18\h to $(INCDIR) gets me thru all the Executing's and stops at MPLINK with

Error - section '_entry_scn' type is non-overlay and absolute but occurs in more than one input file.

I suspect this is the problem, somehow duplicating includes, but how else does one locate stdio.h?

From the microchip.com forum (via Google), I've found this (lets see if I can do quotes):

Quote:
It's the Linker complaining that: _entry_scn occurs in more than one input file.
_entry_scn is a label in the startup files (c018x.o)
This should only be added in the linker script at the "FILES".

You probaly have this included in somewhere else your project *.mcw which you shouldn't.
I'm not quite sure what the bolded part means (bolding mine). I'd ask there but that thread is a year old. I've only got the usual files in the .mcw -- the *.c and *.h, plus FRC_library_8722.lib and 18f8722.lkr. There are no #include *.c's -- it's the same code between the two subdirectories!

Any suggestions?

Roger.

PS-- At least I'm not getting an error regarding "Generate_Pwms(pwm13,pwm14,pwm15,pwm16);"!
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C18 v2.4 -- Syntax error where there is no syntax error Joel J Programming 7 12-01-2007 17:27
stupid Array error: Error [1300] stack frame too l Validius Programming 7 27-01-2006 10:53
Building material archiver 2000 1 24-06-2002 00:10
Goal Building archiver 2001 0 23-06-2002 22:51


All times are GMT -5. The time now is 20:53.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi