Building RabbitMQ-C on Windows using MinGW -
The more the title says. I am trying to make Rabbit MQA under Windows using Mingad without any success. Looking at those people asking me to use it, I suspect that I am making a mistake, but I do not know what it is. I'm on Win7-64 and I'm removing the repo, making a build directory in it, and running
semicrow-g "minigable makefile". < / Pre> what seems to be working, and then
cmake --build what function throws a bunch of redemption errors Does anyone know that I am shaking here?
Just for a good idea, a small sample of errors:
Linking C Shared Library librabbitmq.1.dll CMakeFiles \ rabbitmq.dir / objects.a (amqp_api. C.obj): amqp_api.c :( rdata + 0x3c) :. `Multi iple definition amqp_empty_array 'CMakeFiles \ rabbitmq.dir / objects.a (amqp_framing.c.obj): amqp_framing.c :( BSS + 0x0):. The previously mentioned CMakeFiles \ rabbitmq.dir / objects.a (amqp_api.c.obj): amqp_api.c :( rdata + 0x44) :. Multipal definition of `amqp_empty_table 'CMakeFiles \ rabbitmq.dir / objects.a (amqp_framing.c.obj): amqp_framing.c :( BSS + 0x8):. The previously mentioned CMakeFiles \ rabbitmq.dir / objects.a (amqp_api.c.obj): amqp_api.c. :( rdata + 0x4c):. Amqp_framing.c :( BSS + 0x10): First here CMakeFiles \ RabbitMQ define `\ rabbitmq.dir / objects.a (amqp_framing.c.obj) amqp_empty_bytes' mult iple definition of CMakeFiles. Dir / objects.a (amqp_connection.c.obj) :. Amqp_connection.c :( BSS + 0x0): `amqp_empty_array 'CMakeFiles \ rabbitmq.dir / objects.a (many definitions of amqp_framing.c. Obj): amqp_framing.c :( BSS + 0x0):. The previously mentioned CMakeFiles \ rabbitmq.dir / objects.a (amqp_connection.c.obj): amqp_connection.c :( BSS + 0x8):. Many definitions of 'amqp_empty_table' CMakeFiles \ rlibrabbitmq \ CMakeFiles \ rabbitmq.dir \ build.make: 271: recipe for tees t 'librabbitmq / librabbitmq.1.dll' failed Edit: After some time, I have decided that the problem is that there are some errors in the manner in which the pre-processor's instructions are written. Now I am not going to shut it down, and if I ever get the time to fix the whole thing, then I will come back here and leave an answer with the solution. After the
I defined the macros defined in the given amqp.h file and when I created the AMQP_PUBLIC_VARIABLE macro a non-static For the library the exile modifier has been added. 78 #elif Defined (_WIN32) & amp; Amp; Defined (__MINGW32__) 79 # If defined (AMQP_BUILD) & amp; Amp; ! Define define (AMQP_STATIC) 80 # AMQP_PUBLIC_FUNCTION __declspec (dllexport) define 81 # AMQP_PUBLIC_VARIABLE __declspec (dllexport) Definition Another thing was that I had to modify the Winver macro on file '/ MinGW / include / windef.h 'to fit with the new window versions inside the MinGW environment.
11 #ifndef winver 12 #define winver 0x0501 after & amp; That is, I have built the librabbitmq.1.dll library without problems using cmake "MinGW Makefiles" .. and; cmake --build. command
Comments
Post a Comment