public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: lrtaylor@micron.com
To: <Rnikaeen@goldline.net>, <gcc-help@gcc.gnu.org>
Subject: RE: simple question
Date: Fri, 16 Apr 2004 19:26:00 -0000	[thread overview]
Message-ID: <363801FFD7B74240A329CEC3F7FE4CC4015F3C23@ntxboimbx07.micron.com> (raw)

You forgot to include the source file on your command line...

Cheers,
Lyle

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Ramin NIkaeen
Sent: Friday, April 16, 2004 1:17 PM
To: gcc-help@gcc.gnu.org
Subject: simple question


Colleaugues,

To test the sanity of a certain static library (libFestival.a), 
I am trying compiling a simple program and linking it to the library.
I get the /usr/lib/crt1.o(.text+0x18): undefined reference to `main'
error. Can someone tell me what is wrong?!

thanks a lot

ramin
-----------------------------------------------------------------
SOURCE CODE
-----------------------------------------------------------------
/*
-I/usr/local/publicVoiceXML/festival-1.4.3.old/src/include
-L/usr/local/publicVoiceXML/festival-1.4.3.old/src/lib
-lFestival
*/

void festival_initialize(int load_init_files,int heap_size);

int main()
{
        festival_initialize(1,2);

        return 0;
}


-----------------------------------------------------------------
COMPILATION
-----------------------------------------------------------------
g++ -L/usr/local/publicVoiceXML/festival-1.4.3.old/src/lib -lFestival
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
jupiter.goldline.net:/home/rnikaeen/test/festival>


             reply	other threads:[~2004-04-16 19:26 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-16 19:26 lrtaylor [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-08-22 13:58 Simple question Byron Blue
2012-08-22 14:03 ` Ángel González
2012-08-22 14:35 ` Ian Lance Taylor
2012-08-22 15:21 ` David Brown
2012-08-22 16:39 ` Bob Plantz
2012-08-25 15:57 ` Florian Weimer
2012-08-25 16:05   ` Georg-Johann Lay
2012-08-25 17:30   ` Ian Lance Taylor
2012-08-25 17:55     ` Bob Plantz
2012-08-25 18:20     ` Georg-Johann Lay
2012-08-25 20:37       ` Ian Lance Taylor
2012-08-25 21:01         ` Georg-Johann Lay
2012-08-25 21:23           ` Ian Lance Taylor
2012-08-26  9:13             ` Ángel González
2012-08-26  9:55               ` Jonathan Wakely
2004-04-16 19:19 simple question Ramin NIkaeen
2004-04-16 16:40 lrtaylor
2004-04-15 21:43 Ramin NIkaeen
2004-04-15 21:47 ` Andreas Tobler
2004-04-15 21:47 ` Gabriel Dos Reis
2004-04-15 21:48 ` Paolo Carlini
2004-04-16  9:06 ` Houda Benabderrazik
2002-11-27 10:11 cowen
2000-08-08 10:46 RPathiyal
2000-08-08 18:18 ` Alexandre Oliva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=363801FFD7B74240A329CEC3F7FE4CC4015F3C23@ntxboimbx07.micron.com \
    --to=lrtaylor@micron.com \
    --cc=Rnikaeen@goldline.net \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).