You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o:function _start: error: undefined reference to 'main'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
dmd failed with exit code 1.
The text was updated successfully, but these errors were encountered:
For run.dlang.org, no main function is generated by the -main flag when there are dependencies.
This is likely related to issue 734 (i.e. perhaps all compiler flags aren't working with dependencies).
Consider
compiled with -main has no error.
However, when compiling
with -main, then I get the error that
The text was updated successfully, but these errors were encountered: