This is the mail archive of the cygwin@sources.redhat.com 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]

autobook: Simple [] Module Loader


Bonjour:

I have just tried to buid under the latest Cygwin 
the `simple Module Loader' sugested in chapter 17 of `autobook'
and it doesn't work:
has anyone get a working version for Cygwin ?

Note that to build the module I did:

ld -shared simple-module.o -o simple-module.so -lcygwin

to avoid error messsages
whereas the suggested command line is:

gcc -shared -o simple-module.so

If I remove the `-lcygwin' I get the amazing message:

Cannot export printf: symbol not defined
simple-module.o(.text+0x1f):simple-module.c: undefined reference to
`printf'


Thanks in advance,
Jerome BENOIT

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


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