View Single Post
  #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: 685
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);"!