Linking VCC with Cygwing Gcc

Michnowicz, Simon G Simon.Michnowicz@team.telstra.com
Thu Jun 6 22:40:00 GMT 2002


Pavel,
	thank you for your response. I compiled a simple function f()
{printf"Hello world\n")
inside VC++. I then tried to call it from a main() {f();} compiled in
cygwin.

However the two did not link as I described.  Maybe there is a link/compile
flag
I need to set to do it..If so, I do not know what they are..

If you like I could send you the source/obj codes

Simon Michnowicz
New Wave - Innovation, Chief Technology Unit
Tel:  03 9253 6769
Fax: 03 9253 6352

Partnering to Deliver Telstra's Competitive Edge.

> -----Original Message-----
> From:	Pavel Tsekov [SMTP:ptsekov@syntrex.com]
> Sent:	Thursday, June 06, 2002 8:04 PM
> To:	Michnowicz, Simon G
> Cc:	'cygwin@cygwin.com'
> Subject:	Re: Linking VCC with Cygwing Gcc
> 
> MSG> The FAQ says that object code between the two compilers can be
> shared,
> MSG> however
> MSG> a simple "hello world" program I wrote gives a linker error, i.e.
> MSG> gcc main.o hello.obj
> MSG> gives an error like " undefined reference to `_chkesp'"
> 
> Do you have the hello.obj compiled for debugging ?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list