开发者

Problem with linking

开发者 https://www.devze.com 2023-03-18 02:10 出处:网络
I made a custom library 开发者_C百科and i compiled it into a dll (qustom.dll). Now i want to compile another project using this dll.

I made a custom library 开发者_C百科and i compiled it into a dll (qustom.dll).

Now i want to compile another project using this dll.

What i did is to import the header files in the project and add this line in my .pro file

LIBS += -lqustom

but i get "error: cannot find -lqustom"

also i tried

LIBS += qustom.dll

and

LIBS += -libqustom.a

qustom.dll is in the project directory

Also i tried

OTHER_FILES += \
    qextserialport1.dll

but didn't work either

Am i missing something here?


Missing a path perhaps? -L/path/to/dlls -ldllname

Qt plays nicely with CMake. I use that and I never get dependency/path headaches like this any more.

0

精彩评论

暂无评论...
验证码 换一张
取 消