|
发表于 2004-2-13 23:47:50
|
显示全部楼层
C++ and Fortran using Name mangling when compiling.
Fortran( I have no idea );
For C++, when we enjoy the convinience of overload, the ld would not
know which function should be called, so the compiler will mangle the name,
therefore, overloaded function has one UNIQUE name each.
One of problems about the issue is there is no standard for name mangling,
which means exported functions are not portable in different compiler. -- that
is one of the reasons M$ introduced COM.
So, if you wanted export something, using C convention. |
|