Welcome, Guest. Please login or register.

Author Topic: lame question about SASC (SCOPTIONS settings and statement declar).  (Read 1171 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline kas1eTopic starter

hi all. it is possible to setup in scoptions these thinks:

1.delete #?.o after compiling
2.delete #?.lnk after compiling

#?.info file delete by NOINFO param. So, maybe some params for my question ?:)

i know of course, that i can use my scripts like:
sc blabla.c
slink blabla
delete #?.o #?.lnk

or makefiles, but i am just curios: it is possible by scoptions file params ?


also, maybe someone to know.. it is possible to do declaration in statement block ? I mean i can only declare my data in begin of fuction, if i try somewhere in the code do somethink like this:

for(int i;i<10;i++)
{
}

i have Error on compile stage: declaration found in statement block

So, maybe some params too to avoid this ?

 

Offline itix

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2380
    • Show only replies by itix
Re: lame question about SASC (SCOPTIONS settings and statement declar).
« Reply #1 on: November 12, 2005, 04:32:51 AM »
Quote

hi all. it is possible to setup in scoptions these thinks:

1.delete #?.o after compiling
2.delete #?.lnk after compiling


Why do you wish to do so?

Quote

for(int i;i<10;i++)
{
}

i have Error on compile stage: declaration found in statement block

So, maybe some params too to avoid this ?


Erm, as far as I know it works in C++ only or when C compiler
implements some C extension (it works in GCC4 IIRC).
My Amigas: A500, Mac Mini and PowerBook
 

Offline kas1eTopic starter

Re: lame question about SASC (SCOPTIONS settings and statement declar).
« Reply #2 on: November 12, 2005, 04:58:09 AM »
> Why do you wish to do so?
Becouse need it for me :)

>Erm, as far as I know it works in C++ only or when C compiler implements some C extension (it works in GCC4 IIRC).

under vbcc it works fine with -c99 (ISO/IEC 9899:1999) option. Well .. i was think that is not a big problem to do the same under sasc, and maybe it is already here by some kind of params..