undefined symbols in dlls?
Jani Tiainen
jani.tiainen@susiraja.net
Fri Jan 23 08:57:00 GMT 2004
vikramshrowty@yahoo.com wrote:
> 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.
Funny, this pops up again and again.. =)
Maybe this should be in FAQ (if it isn't already there).
Well answer is no. DLL's aren't allowed to have unbounded undefined
symbols. There is few ways to get this over, see message thread "DLL and
external symbols" started by me and "DLL vs. shared object linking
behavior" started by Karl Robillard.
- Jani Tiainen
--
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/
More information about the Cygwin
mailing list