bug-gnu-libiconv
[Top][All Lists]
Advanced

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

[bug-gnu-libiconv] [bug #64227] _libiconv_version link error with MSVC


From: anonyme
Subject: [bug-gnu-libiconv] [bug #64227] _libiconv_version link error with MSVC
Date: Sun, 21 May 2023 06:51:40 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?64227>

                 Summary: _libiconv_version link error with MSVC
                   Group: libiconv
               Submitter: None
               Submitted: dim. 21 mai 2023 10:51:38
                Category: Build
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: dim. 21 mai 2023 10:51:38      By: Anonymous
Hi,

When I compile libiconv 1.17 with MINGW and try to use the produced header &
library in a Visual Studio project, MSVC reports an "unresolved external
symbol" error.

It seems that MSVC expects the decorated symbol
"__imp_?_libiconv_version@@3HA" instead of the "_libiconv_version" one.

Moving this variable declaration inside the extern "C" scope solved the
problem in my working tree.

Best regards,
Cedric






    _______________________________________________________
File Attachments:


-------------------------------------------------------
Date: dim. 21 mai 2023 10:51:38  Name: iconv.h.in  Size: 10kio   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=54769>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64227>

_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/




reply via email to

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