Recently, zeromq was used to implement game resource process-related functions.
During the past two days, I encountered a compilation problem for the c ++ project:
A. Lib references the library libzmq. Lib of zeromq, and B .exe references it to A. Lib.
However, when compiling B .exe, it still reports that a. Lib cannot find the function definition RELATED TO THE zeromq library, while project a compilation is normal.
I did not solve the problem for half a day. I asked my colleagues to check the problem and I couldn't find the root cause.
You have no choice but to turn to the main process. He looked at the error and clarified that the zeromq library settings have been added to project a. Then, he concluded that the pre-processing macros for zeromq library in Project A are not defined.
Add the zeromq macro zmq_lib to the pre-processing definition set in Project.
In fact, I have encountered related problems before studying freeimage. I forgot to set the freeimage macro freeimage_lib, but I am not impressed yet.
We hereby record it to avoid further confusion.