public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Erreur crt1.o avec g++
@ 2003-01-20  7:11 Bechir Bouzakher
  2003-01-20 22:47 ` Alexandre Oliva
  0 siblings, 1 reply; 2+ messages in thread
From: Bechir Bouzakher @ 2003-01-20  7:11 UTC (permalink / raw)
  To: gcc


[-- Attachment #1.1: Type: text/plain, Size: 982 bytes --]

Bonjour,
J'ai un problème avec GCC 3.2 (avec Linux Mandrake 9.0);
Lors de édition de lien avec g++ j'obtiens l'erreur suivant:

/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: [__A_sicexe] Error 1 (ignored)

Avez vous la solution de ce problème? J'ai cherché partout et je n'ai rien trouvé...
Ou si vous pouvez me conseiller qq1 pour m'aider, merci.

A bientôt


--------------------------------------------------------------------------------
      Bechir Bouzakher 
        LGM / ENIM 
        Route de Kairouan 5019 Monastir, Tunisie. 
        Tél./Fax : (216) 3 501759 
        E-Mail : Bechir.Bouzakher@ipeim.rnu.tn 
        ICQ : 73885820 
        WEB : http://www.chez.com/bouzakher 

--------------------------------------------------------------------------------


[-- Attachment #1.2: Type: text/html, Size: 2310 bytes --]

[-- Attachment #2: bechir.jpg --]
[-- Type: image/jpeg, Size: 1809 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Erreur crt1.o avec g++
  2003-01-20  7:11 Erreur crt1.o avec g++ Bechir Bouzakher
@ 2003-01-20 22:47 ` Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2003-01-20 22:47 UTC (permalink / raw)
  To: Bechir Bouzakher; +Cc: gcc

On Jan 19, 2003, "Bechir Bouzakher" <Bechir.Bouzakher@ipeim.rnu.tn> wrote:

> /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../crt1.o(.text+0x18): undefined reference to `main'

Looks like your program doesn't define a function named main() nor
main(int,char*[]).  Maybe you didn't mean to link, just to compile
(-c)?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-20 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-20  7:11 Erreur crt1.o avec g++ Bechir Bouzakher
2003-01-20 22:47 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).