Author Topic: C::B + Cygwin + Mingw trouble  (Read 2438 times)

Offline CBdan

  • Single posting newcomer
  • *
  • Posts: 6
C::B + Cygwin + Mingw trouble
« on: March 27, 2019, 12:25:32 am »
Hello everybody,

I'm successfully running C::B with MinGW compiler thru Cygwin environment. I can compile many projects without a single problem.

But there's a conundrum when Windows resources are required and windres has to be used.

When I compile I see this windres command in the Build log:
x86_64-w64-mingw32-windres.exe -IC:\_DEV\wx312_64\include  -J rc -O coff -i C:\_DEV_PRJ\WX_TEST\resource.rc -o obj\Release\resource.res

That returns this error:
x86_64-w64-mingw32-gcc: error: C:_DEV_PRJWX_TEST1resource.rc: No such file or directory

I assume that Cygwin, as a Posix system is interpreting backslash symbols as escape codes (hence pruning the file path) but I'm quit puzzled since all other commands shown in the Build log related to gcc or g++ also have backslash paths but conversely, these compiles perfectly.

I've researched but I couldn't find a solution by myself to run windres properly. Having these routes inside quotes or just using slash symbols could fix it but I don't know whether C::B can be configured to write the paths that way.

    I ask for your help.
    Thank you.


« Last Edit: March 27, 2019, 12:48:19 am by CBdan »

Offline CBdan

  • Single posting newcomer
  • *
  • Posts: 6
Re: C::B + Cygwin + Mingw trouble
« Reply #1 on: March 27, 2019, 07:48:25 am »
Thank you, Omlk. That's the solution.
Shame on me because I weren't able to find these Advanced Options.

Just following your indications I found what seems to be a even simpler workaround for this specif issue with Cygwin. At Settings > Compiler > Other settings > Advanced options > Others, just check the option Force use of forward slash as separator.

   Thanks a lot you for your time.
« Last Edit: March 27, 2019, 08:05:54 am by CBdan »