help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison complains about undefined reference of my own data type


From: Samuel Tardieu
Subject: Re: Bison complains about undefined reference of my own data type
Date: Fri, 28 Nov 2008 17:17:00 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

* Laurence Finston <address@hidden> [2008-11-28 17:10:27 +0100]

| I'm sorry if I'm being obtuse.  What are you doing differently and what 
| error message is one supposed to get?

With extern "C":

% g++ -o t t.cc
[nothing printed, no error]

Without extern "C":

% g++ -o t t.cc
/tmp/ccMxFapw.o: In function `main':
t.cc:(.text+0x19): undefined reference to `exit(int)'
collect2: ld returned 1 exit status





reply via email to

[Prev in Thread] Current Thread [Next in Thread]