PDA

View Full Version : Target Makes no Sense



Atomic_Sheep
30th March 2015, 08:52
Hi Guys,

In my .pro file I have a line:

TARGET = win.dll

But when I compile the program, the .dll file is called HelloWorld, I have no idea how this is possible, any ideas?

wysota
31st March 2015, 08:14
Try TARGET=win

Atomic_Sheep
31st March 2015, 09:31
Nope, still compiles as helloworld, no idea where it's pulling that name from. That's how my headers and source files are called but I don't get how the .dll when compiled is called helloworld given that I specified win... hmm! Which makes me worried simply because I'm not sure why it's doing what it's doing. At the moment the .dll doesn't work so I can't know for sure what the problem is or whether this fact itself is what is causing the issue of the .dll not working in the first place.

wysota
31st March 2015, 11:24
Show the whole project file, please.

Kryzon
1st April 2015, 07:52
Make sure you're using the right TEMPLATE value:
http://doc.qt.io/qt-5/qmake-common-projects.html#building-a-library