Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Problem compiling with extensive comment block at the beginn

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
Zitronenfalter

Bascom Member



Joined: 23 Aug 2010
Posts: 9

austria.gif
PostPosted: Mon Aug 03, 2020 8:39 am    Post subject: Problem compiling with extensive comment block at the beginn Reply with quote

If there is an extensive comment block at the beginning of a program (about 500 lines and more no matter what length), the compiler "stumbles" and brings error messages.

If you set the declaration "$regfile = ..." as the first line, the compilation works without errors.
With BasCom version 2.0.8.2 this problem does not occur.

(BASCOM-AVR version : 2.0.8.3 )
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5071
Location: Holland

blank.gif
PostPosted: Mon Aug 03, 2020 8:57 am    Post subject: Reply with quote

for me it works ok. but it depend on your settings.
the best you can do is make a copy of the 2082 settings.
you can do that with : Options, Select Settings file

this allows to make a copy of the 2082 settings file and then use that.
the actual setting is : options, einvironment, IDE, use new method.
This is a recommended setting.
unchecked it will use a simple method to check the source for the regfile. it is way faster but it does not allow #if constructions.
it is faster since it uses a simple parser and also only checks the start of your source. and that is the problem too : when you use a lot of text before the $regfile it will fail.
For this reason the new method was added. i guess it was checked in 2082 and not in the 2083.

_________________
Mark
Back to top
View user's profile Visit poster's website
Zitronenfalter

Bascom Member



Joined: 23 Aug 2010
Posts: 9

austria.gif
PostPosted: Mon Aug 03, 2020 9:45 am    Post subject: Reply with quote

Thanks, the new setting parameter works fine.
The idea that this is just a configuration problem I would never have thought of.
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum