This is the mail archive of the
cygwin
mailing list for the Cygwin project.
undefined symbols in dlls?
- From: vikramshrowty at yahoo dot com
- To: cygwin at cygwin dot com
- Date: Thu, 22 Jan 2004 22:21:32 -0800 (PST)
- Subject: undefined symbols in dlls?
- Reply-to: vikramshrowty at fastmail dot fm
Hi,
Aren't dlls alowed to have undefined symbols?
--------------
foo.c:
int bar();
int foo() {
return bar();
}
--------------
When I try to compile foo.c like this...
gcc -shared -o foo.dll foo.c
I get an error message complaning that '_bar' is undefined.
Thanks,
--Vikram
--
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/