On Thu, 24 Jul 2003, Ronald Landheer-Cieslak wrote: > I've just tried the direct linking thing. My STC doesn't quite work as it > should, but at least it doesn't actually die either.. > > The STC is available here: > 6696e19e993e83606e205b5cbc2104fd *crosslink.tgz > http://blytkerchan.chez.tiscali.fr/crosslink.tgz > > it contains a makefile and two sources - compile and run. > You should get: > $ make > gcc -mno-cygwin -g -o dll.dll -shared dll.c > gcc -g -o test.exe test.c dll.dll > $ ./test > 12 > 13 > $ echo $? > 0 > > but I get: > $ make > gcc -mno-cygwin -g -o dll.dll -shared dll.c > gcc -g -o test.exe test.c dll.dll > $ ./test > 13 > $ echo $? > 0 > > so apparently the printf in the DLL doesn't work - I don't know why, though. > Perhaps someone else can figure that one out..
It's because there's two printf symbols (the MSVCRT one and the Cygwin one). Elfyn -- Elfyn McBratney, EMCB | http://www.nongnu.org/wwwauth/ http://www.emcb.co.uk | http://www.emcb.co.uk/webauth/ [EMAIL PROTECTED] | wwwauth-users AT nongnu DOT org -- 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/