|
From: Roumen P. <bug...@ro...> - 2007-12-02 15:25:27
|
Hello mingw users,
The issue described in this email is inspired for GNU autotools.
Build tools (cross-compilation):
- gcc (GCC) 3.4.5 (mingw special)
- GNU ld version 2.17.50 20070129
It is common configure script to check for existence of some functions.
As example macro AC_CHECK_FUNCS is one that could be used to find a
function.
Depending from results the program code can implement it or to use call
other methods(functions) to get similar result.
The test case (attached as file "bootstrap.sh") is simplified version of
test done by by configure script.
The shell script will generate c-files and will try to link.
- conftest.c : similar to code generated by configure
- conftest1.c : as conftest.c but with stdcall
- conftest2.c : as conftest.c but with function arguments
- conftest-ok.c : the test case that succeed
- tests.def : as conftest.c but with def-file for import functions.
Lets see documentation for |--{enable|disable}-stdcall-fixup .|
( as example online at
http://sources.redhat.com/binutils/docs-2.12/ld.info/Options.html#Options )
According to documentation all test should succeed, but they not. Why ?
I think that there is bug either in documentation or in the build tools
(compiler or linker).
I'm not familiar with mingw and I wonder how function with C-calling
convention could be linked to function with pascal(stdcall) calling
convention.
Regards,
Roumen
|