Pelles C > General discussions

Trouble linking with functions defined in winuser.h

(1/1)

beethoven3567:
I've run into a problem while trying to compile a project called PDCurses, which provides functionality that is similar to that of the Linux curses library.
I'm getting 12 errors regarding unresolved symbols that are clearly defined in winuser.h.
For example,
POLINK: error: Unresolved external symbol '__imp_OpenClipboard' - referenced from 'C:\Users\todde\OneDrive\Documents\Pelles C Projects\CursesTest2\output\pdcclip.obj'.

pdcclip.c includes the header file "pdcwin.h" which in turn includes windows.h , which in turn includes winuser.h
I've attached pdcclip.c and pdfcwin.h

I've tried various compiler and linker options with no luck. I've also tried including winuser.h directly into pdfcwin.h, but same errors.
Thank you in advance for your help.  :)

AlexN:
Have you tried to add user32.lib to the linker?

beethoven3567:
It works!!! Thank you Alex!!!  :)

Navigation

[0] Message Index

Go to full version