Code::Blocks Forums

User forums => Help => Topic started by: wayne on November 07, 2006, 06:24:32 pm

Title: Compiling C::B Source Code using Cygwin
Post by: wayne 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

Title: Re: Compiling C::B Source Code using Cygwin
Post by: MortenMacFly 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.
Title: Re: Compiling C::B Source Code using Cygwin
Post by: wayne 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