Missing command line option '-C'

Hello,
during compiling my project there is a error, which I have no idea how to solve.

279 Error 07.08.2026 14:25:02,7499 Missing command line option ‘-C’. 511


Many Thanks for each hint.

Best regards
Nico

Hi Nico, and welcome to the Community!

This is strange because -C is the flag called during a build to define the configuration that should be built (see: B&R Online Help).

Are you able to build other configurations in your project? My first thought is that there’s something weird in this configuration.

Hello Nico,
I also had this Error after Software-Upgrade or unspectacular changes, so after one day of trying I found a solution for me in , where I activated the CheckBox for my “Use in active config”.

@goehringn is this really solution for your issue? What version of AS are you using?

Yes, it is. Sometimes I also had no chance to safe the configuration (in activated simulation mode) then I closed Automation Studio. After restart of the AS I could make the change in the Online Settings and the compilation worked.

Automation Studio is 6.7.0.187 (German or English same Error) under Windows 11, all Updates installed!

I totally agree with @c036620 . I also used 6.7.0.187 English.
Second alternative is to delete Connection line and add new one.

Correction in AS6.7.1 SP
OCX-23481: Missing -C parameter leads to error 511 when creating the RUC package
If Automation Studio detects a change during the transfer, such as a changed port number, a new connection is created in the Online Settings Editor, and a required parameter remains empty. This leads to error 511 (Missing command line option ‘-C’).

As a workaround, all parameters can be fixed again by saving in the Online Settings Editor.

Thanks for update @job.franken , I marked your reply as a solution :slight_smile: