help-gplusplus
[Top][All Lists]
Advanced

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

BUG? Inlined function generates error message


From: Johann Klammer
Subject: BUG? Inlined function generates error message
Date: Sun, 28 Sep 2014 12:56:58 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.5.0

Hello,

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

<http://members.aon.at/~aklamme4/scratch/gcc_fail.tbz>

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__
__inline
#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
__attribute__ ((__gnu_inline__))
#endif
#endif
const struct lexor_keyword *
...

It does not get called from outside...

-rdynamic and -ldl do not seem to change things

Versions:

$ dpkg -l binutils gcc
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii binutils 2.24.51.2014 i386 GNU assembler, linker and binary
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?




reply via email to

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