Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8989453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:15:47+00:00 2026-06-15T22:15:47+00:00

This is doing my nut in. I’m just trying to include pdcurses (i.e. ncurses

  • 0

This is doing my nut in. I’m just trying to include pdcurses (i.e. ncurses for windows) into a test program. Linkage though is failing.

Using Visual Studio 2010.

I’m fully aware of setting up the correct link additional libraries path and to list the libraries themselves. No joy.

I’ve tried the various pre-builts on the pdcurses website. No such luck.

I of course resorted to building from source. Using nmake from the Visual Studio command prompt as prescribed. Built ok. Nada on link.

What am I missing. It’s maybe just too late on Friday…

Output below:

1>------ Build started: Project: test, Configuration: Debug x64 ------
1>Build started 14/12/2012 16:24:32.
1>InitializeBuildStatus:
1>  Touching "x64\Debug\test.unsuccessfulbuild".
1>ClCompile:
1>  main.c
1>C:\dep\pdcurses\curses.h(160): warning C4005: 'MOUSE_MOVED' : macro redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\wincon.h(101) : see previous definition of 'MOUSE_MOVED'
1>main.c(73): warning C4133: 'function' : incompatible types - from 'unsigned short [20]' to 'const char *'
1>ManifestResourceCompile:
1>  All outputs are up-to-date.
1>main.obj : error LNK2019: unresolved external symbol endwin referenced in function main
1>main.obj : error LNK2019: unresolved external symbol wgetch referenced in function main
1>main.obj : error LNK2001: unresolved external symbol __imp_stdscr
1>main.obj : error LNK2019: unresolved external symbol refresh referenced in function main
1>main.obj : error LNK2019: unresolved external symbol printw referenced in function main
1>main.obj : error LNK2019: unresolved external symbol initscr referenced in function main
1>C:\proj\test.exe : fatal error LNK1120: 6 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.47
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:15:49+00:00Added an answer on June 15, 2026 at 10:15 pm

    Ok. I feel rather stupid. Here is the solution for posterity…

    The distributed pdcurses binaries are 32bit. I was trying to build for 64bit.

    Fundamentally, I forgot the first rule of linkage: don’t mix and match architectures.

    More specifically, when attempting to then build from source:

    1) beware of starting the wrong Visual Studio command prompt. The default one from the Tools menu is the x86 one. If you just try and run cl.exe you’ll find this out.

    Instead, run the prompt from the start menu: Microsoft Visual Studio 2010->Visual Studio Tools->Visual Studio x64 Win64 Command Prompt (2010)

    Invoke the build then by cd’ing to pdcurses directory/win32a and typing:

    nmake -f vcwin32.mak DLL=pdcurses.dll
    

    Also, 2) before you compile pdcurse change line 111 of the pdcurses Windows makefile (vcwin32.mak):

    cvtres /MACHINE:X64 /NOLOGO /OUT:pdcurses.obj pdcurses.res
    

    (NOTE: i.e. X64 architecture!)

    Everything is now consistent. The pdcurses library will build. And it will link with my test app which (as the original output shows) I am building on x64.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Only doing this because I am lazy. I just wrote a program to list
this is really doing my nut..... all relevant PHP Output scripts set headers (in
I'm doing this interface where I have a lot of buttons that are just
I'm doing this with a very simple class, just to learn, but I'm not
Doing this in a console program: object x = new string(new char[0]); If one
I want to develop Windows program who can stick into other window. I searching
This is doing my head right in! I am messing about with JRuby trying
This is part of larger graphing program (JavaPlot specifically). In a nut shell, I
I've been trying to crack this nut for a while but I cannot seem
Im doing this project where i need to download files through a webservice (images,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.