Author Topic: Compiling C::B Source Code using Cygwin  (Read 4095 times)

wayne

  • Guest
Compiling C::B Source Code using Cygwin
« on: November 07, 2006, 06:24:32 pm »

hi,

has naybody tried this and has any success with it. I have a working cygwin environment,
set the compiler up as I found in the article here :

http://wiki.codeblocks.org/index.php?title=Installing_Cygwin_Compiler

when I build teh Source I get this message

:: === Code::Blocks, ConsoleRunner ===
\cygdrive\c\CodeBlocksSourceCode\src\tools\ConsoleRunner\main.cpp:100: undefined reference to `_getch'
:: === Build finished: 1 errors, 0 warnings ===

this seems to be an issue with Microsoft-specific code - is there a simple way around this issue ?

thanks

Wayne


Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Compiling C::B Source Code using Cygwin
« Reply #1 on: November 07, 2006, 07:46:55 pm »
has anybody tried this and has any success with it. [...]
*woot* You try to build C::B inside Cygwin? I wonder why you do that - honestly. The article shows how to attach the Cygwin compiler to C::B on native Windows. Thus you don't need a Cygwin environment for C::B to work. To run the compiled programs in a Cygwin bash you can configure the bash as a "Tool" inside C::B. I (personally) see no reason to compile C::B with the Cygwin compiler but I can think of ~1000m things that can go wrong... ;-)
With regards, Morten.
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

wayne

  • Guest
Re: Compiling C::B Source Code using Cygwin
« Reply #2 on: November 08, 2006, 10:32:00 am »
has anybody tried this and has any success with it. [...]
*woot* You try to build C::B inside Cygwin? I wonder why you do that - honestly. The article shows how to attach the Cygwin compiler to C::B on native Windows. Thus you don't need a Cygwin environment for C::B to work. To run the compiled programs in a Cygwin bash you can configure the bash as a "Tool" inside C::B. I (personally) see no reason to compile C::B with the Cygwin compiler but I can think of ~1000m things that can go wrong... ;-)
With regards, Morten.

Hi Morten,

I'm using a bleeding edge version of gdb 6.4 with or32 support which will only compile under cygwin -
theres no mingw port available - GDB reports invalid paths when invoked with the IDE and also mangles
paths - this maybe to do with the different compile platforms used for the IDE and GDB tool - this is an
attempt to clarify whether this is the problem

Wayne