Building DLLs out of C++ code

Adriaan de Groot <[email protected]> Mon, 30 Jan 2006 13:50:45 +0100
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
--nextPart1361516.TNQRMzzs7y
Content-Type: multipart/mixed;
  boundary="Boundary-01=_mug3DA68q91Xnga"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--Boundary-01=_mug3DA68q91Xnga
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I have a tiny recipe and a tiny fragment of C++ code (both attached) from=20
which I would like to build a shared library (DLL). Running A-A-P (CVS HEAD=
)=20
on this generates a Python recursion-depth exception and the build fails.=20
Re-running A-A-P causes a shared library to be built, but it looks like the=
=20
wrong libker is used (the C linker, not g++).

Any ideas?

=2D-=20
These are your friends - Adem
    GPG: FEA2 A3FE Adriaan de Groot

--Boundary-01=_mug3DA68q91Xnga
Content-Type: text/x-c++src;
  charset="us-ascii";
  name="foo.cpp"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="foo.cpp"

int c;

class foo {
public:
int bar;
char *moose;

foo();
} ;


foo::foo()
{
bar=0;
moose=0;
}


--Boundary-01=_mug3DA68q91Xnga
Content-Type: text/plain;
  charset="us-ascii";
  name="main.aap"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="main.aap"

:dll foo : foo.cpp


--Boundary-01=_mug3DA68q91Xnga--

--nextPart1361516.TNQRMzzs7y
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQBD3gumdqzuAf6io/4RAuSdAJ9BuEh1/xdrgQ9H5YL1V1zGD0+ZAgCfYKWu
gEfrhBrdKsGOFukWeRrzmsA=
=xFY8
-----END PGP SIGNATURE-----

--nextPart1361516.TNQRMzzs7y--


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642