Author Topic: Custom Compiler setup on Linux (OpenWatcom)  (Read 4682 times)

Offline petetong

  • Single posting newcomer
  • *
  • Posts: 2
Custom Compiler setup on Linux (OpenWatcom)
« on: April 10, 2012, 10:44:42 am »
Hi Forum,
does anybody know how to set up OpenWatcom Compiler in CB?
Or how to add a custom Compiler Setup?

I've tried to set up in compiler preferences, but there is only the possibility to copy an existing setup and change some settings.
In the default.conf at ~/.codeblocks/default.conf appears a <PARENT><str><![CDATA[gcc]]</str></PARENT> tag for a copy of GCC. If this Tag is changed to OW like windows the whole menu entry in CB will be dropped.
Is there a possibility to add a complete custom menu entry for a compiler and customize also the flags?

Thanks for help

regards pete

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Custom Compiler setup on Linux (OpenWatcom)
« Reply #1 on: April 10, 2012, 12:00:44 pm »
The OpenWatcom compiler is directly supported under Windows in recent versions of C::B. As you didn't mention anything about your platform / version there is nothing more I can tell.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline petetong

  • Single posting newcomer
  • *
  • Posts: 2
Re: Custom Compiler setup on Linux (OpenWatcom)
« Reply #2 on: April 10, 2012, 03:03:50 pm »
The OpenWatcom compiler is directly supported under Windows in recent versions of C::B. As you didn't mention anything about your platform / version there is nothing more I can tell.

I tried to setup under Linux, like i mentioned in the subject?!

thanks

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Custom Compiler setup on Linux (OpenWatcom)
« Reply #3 on: April 10, 2012, 05:30:04 pm »
I tried to setup under Linux, like i mentioned in the subject?!
Then you would need to compile C::B yourself and remove the Windows-only switch from the openwatcom compiler sources.

Note: Currently its windows only, because Linux support is rather "young" in OpenWatcom. However, nobody of us (devs) tested how it works under Linux and surely some compiler flags need to be updated. If you want to take the action the files to look into are:
[C::B_SRC]\plugins\compilergcc\compilerOW*.*
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ