Author Topic: compiler flags on a per file basis  (Read 4124 times)

aoehlke

  • Community Member
  • Posts: 48
  • Hero Points: 1
compiler flags on a per file basis
« on: November 07, 2006, 02:06:47 PM »
Hi, I have slick edit 11 for solaris, and I am wondering if there is a way to turn on certain gcc compiler flags on a per file basis?
My project is getting huge, and some of the code is auto-generated.  I would like to "relax" the compiler checks on these auto-gen files, but not for every source file in the project.  I have used other IDEs in the past where you could essentially right click a file in the project and turn on flags specific for it.

any ideas anyone?

aoehlke

  • Community Member
  • Posts: 48
  • Hero Points: 1
Re: compiler flags on a per file basis
« Reply #1 on: November 07, 2006, 02:15:10 PM »
Oh, by the way, I know I could do this by having separate projects for the files that need special attention (separate projects within a single workspace)... but what if the source has dependencies across the projects?   does the build command know about these dependiencies and compile the whole workspace and not just the "Active" project?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6882
  • Hero Points: 530
Re: compiler flags on a per file basis
« Reply #2 on: November 08, 2006, 07:48:33 PM »
You can make more than one project dependent on another (Project>Dependencies...).  This might help.