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
Hi,
i'm trying to run this example to see if it fits my needs. But i'm getting an this error while compiling the example:
Linking... /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function _start':
(.text+0x20): undefined reference to main' collect2: error: ld returned 1 exit status Error: linker exited with status 1 /usr/bin/dmd failed with exit code 1.
Do you have any idea how to solve this ?
Thank you
The text was updated successfully, but these errors were encountered:
please upload your program
"(.text+0*20):undefined reference to *" occurs when you need to link explicit libraries to compile program
for example: if you want to compile math.h library function included program
you need to write:
$gcc file_name -o output_file_name -lm
any fix on this problem? I encountered the same problem , works fine with visual studio no errors or warnings but when I uploaded it on the vps I cant recompile it. this is the same error that I have.
Hi,
i'm trying to run this example to see if it fits my needs. But i'm getting an this error while compiling the example:
Linking... /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function
_start':(.text+0x20): undefined reference to
main' collect2: error: ld returned 1 exit status Error: linker exited with status 1 /usr/bin/dmd failed with exit code 1.
Do you have any idea how to solve this ?
Thank you
The text was updated successfully, but these errors were encountered: