Energya
Energya

Reputation: 2673

Qt Creator project won't build on windows (linker error)

I have a working project on Linux (Ubuntu 11.04), but when i try to build the same exact code on my Windows 7 machine, I get the following error:

LINK : fatal error LNK1104: cannot open file 'windows_wminput.c'

The project I'm working on uses a C library called ManyMouse. I have included the .c files in my .pro file as follows:

LIBS += windows_wminput.c \
linux_evdev.c \
x11_xinput2.c \
macosx_hidmanager.c \
macosx_hidutilities.c

Again, this project/setup works fine on Linux, but gives an error on Windows. Why doesn't it work?

Upvotes: 1

Views: 458

Answers (1)

Igor
Igor

Reputation: 27240

Looks like you should have SOURCES instead of LIBS.

Upvotes: 3

Related Questions