Denis Shelomovskij <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #1 from Denis Shelomovskij <> 2012-09-13 
08:47:15 MSD ---
> In order to work around the problem, you have to define a main() function that
> is not extern(C) and that gets called from an extern(C) function at some 
> point.

No, you don't need to call D `main` function. You just have to define it.

> Naturally, the downside of this method is that you can no longer use such
> library with D executables, since a redundancy is created by two conflicting
> definitions of main(). And the only way to work around the latter problem so
> far is to use a version(identifier) system...

No, you can define D `main` in a separate file, not in your library and link
with its object file. For more information read this:

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to