BUG? Inlined function generates error message

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

BUG? Inlined function generates error message

Johann Klammer

I was trying to recompile icarus verilog on my box, and ran into this
rather strange bug.


This contains two .cc files and one script that compiles(ignore the
warnings) and links them. When linking it complains:

/./gcc_a.cc:23: undefined reference to `check_identifier(char const*,
unsigned int)'
collect2: error: ld returned 1 exit status

The function is there but declared with:

#ifdef __GNUC__
#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
__attribute__ ((__gnu_inline__))
const struct lexor_keyword *

It does not get called from outside...

-rdynamic and -ldl do not seem to change things


$ dpkg -l binutils gcc
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
ii  binutils i386         GNU assembler, linker and
ii  gcc            4:4.9.1-1    i386         GNU C compiler

(on a debian testing)

The code fragment is from a gperf generated file....

What to do?

help-gplusplus mailing list
[hidden email]