[Qt-interest] how to disable the "lib"
Francesc Vila
francesc.vila at imb-cnm.csic.es
Tue Aug 2 13:48:04 CEST 2011
On Tue Aug 2 10:11:17 2011, tang ke wrote:
> hello, all guys.
>
> I want to generate a library which is named as "test",
>
> my pro file as:
>
> TEMPLATE = lib
> TARGET = test
>
>
> but use the windows to compile , it will generate a file named test.dll
>
> use the linux to compile, it will generate a file named
> libtest.so.1.0.0, and two link file libtest.so.1, libtest.so
>
> how can I disable the "lib", and don't link the two file.
>
> I see the Makefile with is generated by qmake, maybe such as the
> TARGET0, TARGETA, TARGETD will be edited.
>
> thanks in advance.
>
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
In fact, in linux, all libraries start with the prefix lib. And then,
to link against it you use the switch -ltest (without the lib part). I
don't know if you can rename it, but I think that the linker expects it
that way. Is there any reason for this change of default behavior?
More information about the Qt-interest-old
mailing list