public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Missing 'GetSaveFileName' with -mno-cygwin
@ 2001-03-28 18:13 Clive Levinson
  2001-03-28 18:52 ` Danny Smith
  0 siblings, 1 reply; 2+ messages in thread
From: Clive Levinson @ 2001-03-28 18:13 UTC (permalink / raw)
  To: cygwin

I was previously building my applications using mingw.
I recently downloaded and installed cygwin, as I wanted
to use the bash and the Unix toolset.

A DLL that previously built using mingw is giving problems
when using cygwin.

When I execute:
dllwrap --target i686-mingw32 -mno-cygwin --driver-name gcc \
        --def clx.def \
        -o clx.dll clx.o resource.o
I get the following error:
clx.o(.text+0xf5):clx.cpp: undefined reference to `GetSaveFileNameA@4'

If I comment out the section of code that calls GetSaveFileName,
the DLL builds with no problem.

Any suggestions please.
Thanks,
Clive

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Missing 'GetSaveFileName' with -mno-cygwin
  2001-03-28 18:13 Missing 'GetSaveFileName' with -mno-cygwin Clive Levinson
@ 2001-03-28 18:52 ` Danny Smith
  0 siblings, 0 replies; 2+ messages in thread
From: Danny Smith @ 2001-03-28 18:52 UTC (permalink / raw)
  To: cygwin

--- Clive Levinson <clivel@amc.com> wrote: > I was previously building my
applications using mingw.
> I recently downloaded and installed cygwin, as I wanted
> to use the bash and the Unix toolset.
> 
> A DLL that previously built using mingw is giving problems
> when using cygwin.
> 
> When I execute:
> dllwrap --target i686-mingw32 -mno-cygwin --driver-name gcc \
>         --def clx.def \
>         -o clx.dll clx.o resource.o
> I get the following error:
> clx.o(.text+0xf5):clx.cpp: undefined reference to `GetSaveFileNameA@4'

Add -mwindows to get libcomdlg32.a linked in or add link explicitly.
Danny

_____________________________________________________________________________
http://my.yahoo.com.au - My Yahoo!
- Have news, stocks, weather, sports and more in one place.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-03-28 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-28 18:13 Missing 'GetSaveFileName' with -mno-cygwin Clive Levinson
2001-03-28 18:52 ` Danny Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).