This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin1.dll


Brian Dessent wrote:
sroberts82 wrote:

Can someone help me understand this, its probably really straightforward but
I can't find an answer for this.
Why is it when I build the most basic helloworld.exe and try and run it I
get told of a dependancy on cygwin1.dll? Why do I need this dll, and what

When you build that program that calls printf("hello world"), where do you think that implementation of printf comes from? On linux you have a libc.so, on Cygwin you have a cygwin1.dll, they are analogous.

how do I build to avoid needing this?

You don't. Or you use something other than Cygwin.



Not as drastic as it sounds. Look at the compiler flag -mno-cygwin. Very handy if you occasionally want to distribute executables without cygwin1.dll.



-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]