I have the following header file { http://ift.tt/1zZseKO } . I want to mock it using cmock so that i can write unit test for 'Server.c' that uses the methods in the header file. But while compiling, i get the following message :
/tmp/ccGINIbW.o: In function `redisLibuvAttach':
TestServer.c:(.text+0x378): multiple definition of `redisLibuvAttach'
/tmp/cc1dEQsm.o:MockStore.c:(.text+0x229): first defined here
collect2: error: ld returned 1 exit status
make: *** [default] Error 1
'TestServer.c' is file that contains that unit tests. 'MockStore.c' is the file generated by cmock. I searched 'MockStore.c' for 'redisLibuvAttach', but found nothing by that name.
Aucun commentaire:
Enregistrer un commentaire