Ask coding questions

← Back to all posts
Error: Linked command failed with exit code 1
121910301028 (0)

Error: Linked command failed with exit code 1
While running prgm i can't get output showing linked command failed with exit code 1 but the prgm is correct. Please help me to run this prgm!!

Comments
hotnewtop
ANDREWVOSS (187)

You can only have 1 main function in your project.

121910301028 (0)

Can you help me by joining in my replit link
@ANDREWVOSS

ANDREWVOSS (187)

@121910301028 No, but I can tell you how to fix your problem

ANDREWVOSS (187)

@121910301028 Each one of the files in your repl should be in its own repl. This is because replit tries to compile every file in your repl into one executable, but your files are clearly supposed to be different projects.