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
Date: Sun, 27 Apr 2003 11:47:20 -0700
To: Elfyn McBratney <elfyn-cygwin@exposure.org.uk>
Cc: cygwin@cygwin.com
Subject: Re: Creating DLLs doesn't work normally..
Message-ID: <20030427184720.GA32276@triplehelix.org>
References: <20030427094538.GA29573@triplehelix.org> <007f01c30cc6$1255d9e0$f76d86d9@ellixia>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e"
Content-Disposition: inline
In-Reply-To: <007f01c30cc6$1255d9e0$f76d86d9@ellixia>
User-Agent: Mutt/1.5.4i
From: joshk@triplehelix.org (Joshua Kwan)
X-Spam-Status: No, hits=-38.8 required=4.5
	tests=EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2,
	      QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES,
	      USER_AGENT_MUTT
	version=2.53
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp)

--cNdxnHkX5QqsyA0e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Apr 27, 2003 at 03:04:21PM +0100, Elfyn McBratney wrote:
> If you remove the '-soname' linker flag, change `-o soname.so' to `-o
> soname.dll' and move '-lm' to the end, you should be alright.

joshk@ringo:~/think++/plugins/osc> g++ -Wall -pedantic -ffast-math -g -ggdb=
 -I../../src -I../.. -DPLUGIN_BUILD -shared -o static.dll static.cpp
In file included from static.cpp:10:
=2E./../src/think.h:18:15: warning: anonymous variadic macros were introduc=
ed in C99
/cygdrive/c/DOCUME~1/joshk/LOCALS~1/Temp/ccso0GNu.o(.text+0x7c): In functio=
n `module_init':
/home/joshk/think++/plugins/osc/static.cpp:38: undefined reference to `thPl=
ugin::SetDesc(char const*)'
/cygdrive/c/DOCUME~1/joshk/LOCALS~1/Temp/ccso0GNu.o(.text+0x143): In functi=
on `module_callback':
/home/joshk/think++/plugins/osc/static.cpp:56: undefined reference to `thNo=
de::SetArg(char const*, float*, int)'
collect2: ld returned 1 exit status

No soap... if I link against the rest of the project, of course it will
work, but that's not what should be happening....

Regards,
Josh

--=20
New PGP public key: 0x27AFC3EE

--cNdxnHkX5QqsyA0e
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+rCW4T2bz5yevw+4RAj+LAJ46Zg11FBJDYFXPfdTmSO9J9tWb5ACghB5V
W+Uad/vqryw6mTpEYILZJUA=
=VLQo
-----END PGP SIGNATURE-----

--cNdxnHkX5QqsyA0e--

