You are not logged in. Please login at www.codechef.com to post your questions!

×

[closed] Compilation Error: first time I saw today..please fix it ASAP

  • Error description:


      /usr/lib/gcc/i586-linux-gnu/4.9/../../../i386-linux-gnu/crt1.o: In function `_start':
        (.text+0x18): undefined reference to `main'
         collect2: error: ld returned 1 exit status


  • I used language C++;

asked 15 Aug '15, 14:11

rcsldav2017's gravatar image

5★rcsldav2017
1.1k1229
accept rate: 6%

closed 18 Aug '15, 00:03

The question has been closed for the following reason "The question is answered, right answer was accepted" by rcsldav2017 18 Aug '15, 00:03


re-submit the solution

link

answered 16 Aug '15, 10:01

bradley's gravatar image

3★bradley
6562321
accept rate: 20%

This is shown when the compiler couldn't find main function.

Maybe,by mistake while pasting the solution,your cursor might have deleted or altered the main function(or it may happen due to some other internal factors).This is the only possible reason I could think of.

There's a detailed view on the similar problem-link

link

answered 16 Aug '15, 18:56

prrateekk's gravatar image

3★prrateekk
534216
accept rate: 12%

@ prrateekk...thanks a lot

(17 Aug '15, 22:16) rcsldav20175★

@bradely...thanks

can anyone tell why it heppens??

link

answered 16 Aug '15, 12:11

rcsldav2017's gravatar image

5★rcsldav2017
1.1k1229
accept rate: 6%

Can you post the link of your solution(old and new)?

link

answered 17 Aug '15, 22:30

prrateekk's gravatar image

3★prrateekk
534216
accept rate: 12%

edited 17 Aug '15, 23:11

@prrateekk...thanks for your effort....

.I solved that issue

this time I don't have that solution....

(18 Aug '15, 00:00) rcsldav20175★

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×1,916
×46
×34
×29
×25
×8

question asked: 15 Aug '15, 14:11

question was seen: 2,795 times

last updated: 18 Aug '15, 00:03