This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using C functions in C++


<albert@wickywicky.net> writes:

> /tmp/ccrCoGun.o(.text+0x55): In function `KK::utterance_loop()':
> : undefined reference to `ad_read(ad_rec_t*, short*, int)'

Make sure that the functions are declared 'extern "C"'.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]