delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Sun, 27 Apr 2003 02:45:38 -0700 |
To: | cygwin AT cygwin DOT com |
Subject: | Creating DLLs doesn't work normally.. |
Message-ID: | <20030427094538.GA29573@triplehelix.org> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.5.4i |
From: | joshk AT triplehelix DOT org (Joshua Kwan) |
X-Spam-Status: | No, hits=-12.7 required=4.5 |
tests=PGP_SIGNATURE_2,USER_AGENT_MUTT | |
version=2.53 | |
X-Spam-Level: | |
X-Spam-Checker-Version: | SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) |
--xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, A number of the projects which I am actively developing I have been trying to port to Cygwin. It has mostly gone without errors except when making shared libraries. For example: g++ -lm -lc -Wall -pedantic -ffast-math -g -ggdb -I../../src -I../.. -MD -M= P -MF '.depend' -DPLUGIN_BUILD -shared -Wl,-soname,static.so -o static.so = static.cpp In file included from static.cpp:10: ../../src/think.h:18:15: warning: ano= nymous variadic macros were introduced in C99 /cygdrive/c/DOCUME~1/joshk/LOCALS~1/Temp/cc0Qd530.o(.text+0x7c): In functi= on `module_init': /home/joshk/think++/plugins/osc/static.cpp:38: undefined reference to `thP= lugin::SetDesc(char const*)' /cygdrive/c/DOCUME~1/joshk/LOCALS~1/Temp/cc0Qd530.o(.text+0x143): In funct= ion `module_callback': /home/joshk/think++/plugins/osc/static.cpp:56: undefined reference to `thN= ode::SetArg(char const*, float*, int)' collect2: ld returned 1 exit status make[3]: *** [static.so] Error 1 However, on Linux the build executes without a hitch. I tried making .so =2Edll to no effect. This happens with ircd-hybrid too, so I'm wondering if I am missing something else. I have pored the archives already and I've not found a solution... Tried taking out -lm because it is already part of libcygwin. I'm at a total loss. The source is available as a tarball at: http://joshk.mspencer.net/think++.tar.gz Thanks a lot, Josh --=20 New PGP public key: 0x27AFC3EE --xHFwDpU9dbj6ez1V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+q6bCT2bz5yevw+4RAqBWAJ0V/k6lOpMtrUXu3ao9WMRO9lrYfACgnrkh /SOTaYcY/865TU1pZ48FBpE= =UZBt -----END PGP SIGNATURE----- --xHFwDpU9dbj6ez1V--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |