Hi!

There seems to be a problem using libedit from C++. Small test case:

> cat test.c
#include <stdio.h>
#include <histedit.h>

int
main(void) {
  EditLine *ed;

  ed = el_init("foo", stdin, stdout, stderr);
  el_end(ed);

  return 0;
}
> gcc -ledit -ltermcap -o test test.c
> g++ -ledit -ltermcap -o test test.c
/var/tmp//ccAVIwg7.o: In function `main':
/var/tmp//ccAVIwg7.o(.text+0x28): undefined reference to `el_init(char const*, 
__sFILE*, __sFILE*, __sFILE*)'
/var/tmp//ccAVIwg7.o(.text+0x39): undefined reference to `el_end(editline*)'

What did I miss?


PS.
> g++ --version
g++ (GCC) 3.2.2 [FreeBSD] 20030205 (release)

-- 
Priit Piipuu
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to