Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Authentication-Warning: localhost.localdomain: vikram owned process doing -bs
Date: Thu, 22 Jan 2004 22:21:32 -0800 (PST)
From: vikramshrowty@yahoo.com
X-X-Sender: vikram@localhost.localdomain
Reply-To: vikramshrowty@fastmail.fm
To: cygwin@cygwin.com
Subject: undefined symbols in dlls?
Message-ID: <Pine.LNX.4.44.0401222216070.26257-100000@localhost.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

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/

