[Issue 2764] Skip link if main not found
https://issues.dlang.org/show_bug.cgi?id=2764 Andrei Alexandrescu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #5 from Andrei Alexandrescu --- Seems to me this is insufficiently motivated and specified. Will close, please reopen if deemed necessary. --
[Issue 2764] Skip link if main not found
https://d.puremagic.com/issues/show_bug.cgi?id=2764 Andrei Alexandrescu changed: What|Removed |Added CC||and...@erdani.com Severity|normal |enhancement --- Comment #4 from Andrei Alexandrescu 2013-11-15 21:24:44 PST --- downgrading to enhancement -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2764] Skip link if main not found
http://d.puremagic.com/issues/show_bug.cgi?id=2764 unkn...@simplemachines.org changed: What|Removed |Added CC||unkn...@simplemachines.org --- Comment #3 from unkn...@simplemachines.org 2009-03-28 23:16 --- (In reply to comment #1) > I thought some more about this, and there's a problem. A module may not have a > main(), but it may reference another function in a library that does have a > main(). I think this is an important use-case. More specifically, things like WinMain(), etc. DMD doesn't special-case those for you, so it's likely a framework/toolkit might write your WinMain for you and give you a D function to hook in. Although I'd do that with a template, myself. The best solution would be altering the linker, just so slightly, to output an easier to understand message than "no start address." As exactly correct as this message may be, programmers more interested in application programming than systems programming may be very perplexed. That said, the most common case is when compiling with new libs - just the default. Maybe a solution is to show this error whenever no libs are passed in, and add a switch (beside defaultlib) to suppress the error for other default libraries? It is only to improve documentation, after all. -[Unknown] --
[Issue 2764] Skip link if main not found
http://d.puremagic.com/issues/show_bug.cgi?id=2764 --- Comment #2 from ma...@pochta.ru 2009-03-27 09:33 --- Doesn't link fail if there is no main? --
[Issue 2764] Skip link if main not found
http://d.puremagic.com/issues/show_bug.cgi?id=2764 --- Comment #1 from bugzi...@digitalmars.com 2009-03-27 03:12 --- I thought some more about this, and there's a problem. A module may not have a main(), but it may reference another function in a library that does have a main(). --