I'm having a mysterious problem constructing a DLL and import library
that works with
I have the trivial dll source code
/* trivial dll */
int testfun(int j)
return j + 1;
I build the dll and import library using mingw32 (gcc 3.3.2)
gcc -o dll.o dll.c -shared -c
gcc -shared -Wl,--out-implib=dllming.lib -Wl,--output-def,dll.def -o
I can compile a caller using gcc linked against the dllming.lib import
library (once I rename it to a lib%.a so that -ldllming works...) and
the program successfully runs and calls testfun().
If I create a VC 6.0 project and recompile the C main program, the
This appears to be caused by the call to testfun being
and at location 0x420000, there's a
and at location 0x4272a0 is a 0x272c0.
However, 0x272c0 is not mapped into my address space, so it dies....
The only thing that VC says is
dllming.lib(d0000001.o) : warning LNK4078: multiple ".text" sections
found with different attributes (E00000020)
Get latest updates about Open Source Projects, Conferences and News.