Undefined references when trying to link Qt app with my static library

前端 未结 3 348
小鲜肉
小鲜肉 2021-01-12 19:33

I have a static library that I have built with MinGW, I am trying to link to that library from a Qt application. I keep getting linker errors caused by one of the object fi

3条回答
  •  北恋
    北恋 (楼主)
    2021-01-12 20:11

    you may have used gcc instead of g++. gcc is a C compiler. but g++ is a c++ compiler.

    just make sure to use g++ if you have .cpp files.

提交回复
热议问题