Menu

#2 unresolved external symbol

porting
closed-rejected
readline (4)
5
2001-02-25
2001-02-21
James Evans
No

When linking against libreadline.a version-4.1 with msvc++ I get the following error:
unresolved external symbol
For two symbols:
_rl_completer_word_break_characters
_rl_completion_append_character

The problem looks like the symbols are not exported when building the DLL export library.

Discussion

  • Paul Sokolovsky

    Paul Sokolovsky - 2001-02-25
    • assigned_to: nobody --> ela
     
  • Stefan Jahn

    Stefan Jahn - 2001-02-25
    • status: open --> closed-rejected
     
  • Stefan Jahn

    Stefan Jahn - 2001-02-25

    Logged In: YES
    user_id=80302

    Both of the symbols are correctly exported by the DLL. You
    simply forgot to mark data symbols to be imported in your
    source code. For the readline library this is done by:
    #define __READLINE_IMPORT__ 1

    Thus it it no really a bug but a lag of documentation ?