Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking Fails on Current Version #169

Open
ua16 opened this issue Sep 10, 2024 · 3 comments
Open

Linking Fails on Current Version #169

ua16 opened this issue Sep 10, 2024 · 3 comments

Comments

@ua16
Copy link

ua16 commented Sep 10, 2024

Compilation with mingw32-make and gcc using the files in the wincon directory succeeds without any errors using the WIDE=Y and INFOEX=N flags. Makefile is used.

Compilation of test program succeeds using gcc -c.

Linking the test program .o file and the pdcurses.a file using gcc main.o pdcurses.a fails and gives the following error:

pdcurses.a(pdcsetsc.o):pdcsetsc.c:(.text+0xd2): undefined reference to `PDC_mbstowcs'
collect2.exe: error: ld returned 1 exit status

Test program linking succeeds with the stable version 3.9 from sourceforge. (Following the same compilation steps)

@wmcbrine
Copy link
Owner

Please specify the version and source for mingw32.

@ua16
Copy link
Author

ua16 commented Sep 11, 2024 via email

@ua16
Copy link
Author

ua16 commented Sep 12, 2024

Succeeds with the latest release version from https://winlibs.com/ using the UCRT runtime.

GCC 14.2.0 (with POSIX threads) + LLVM/Clang/LLD/LLDB 18.1.8 + MinGW-w64 12.0.0 UCRT - release 1
win64 without LLVM/Clang/etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants