I'm trying to build a DLL using cpptasks on win32,
using the MinGW (gcc) compiler. cpptasks insists in
building me libfoo.so instead of foo.dll. Here's the
appropriate bit of my build.xml:
<cc link="shared" outtype="shared"
exceptions="true"
multithreaded="true" optimize="speed"
objdir="${dist.dir}"
outfile="${dist.dir}/Foo">
<sysincludepath
location="${java.home}/../include"/>
<sysincludepath
location="${java.home}/../include/win32"/>
<fileset dir="${src.dir}/com/foo"
includes="Foo.c"/>
</cc>
If I add the following workaround I get foo.dll being
generated instead of libfoo.so
<linker name="gcc">
<linkerarg value="-o foo.dll"/>
</linker>
but that shouldn't be necessary.
Curt Arnold
cpptasks
None
Public
|
Date: 2005-06-19 18:49 Logged In: YES |
|
Date: 2005-06-19 18:34 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| summary | Cannot build DLLs on Win32 | 2005-06-19 18:49 | alanbur |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use