C header files with duplicates -


i have 2 header files overlaps shown below:

header1.h

...  __declspec(dllexport) void abc();  __declspec(dllexport) void xyz(); ... 

header2.h

#define value1 1 #define value2 2 ... __stdcall void abc(); __stdcall void xyz(); ... 

main.c

#include "header1.h" #include "header2.h"  main() {      somefunc(xxx, value1); } 

i getting compile errors (inconsistent dll linkage). please me fix this. thanks.

this impossible! cannot have same function name different signatures , included shown above. time everybody.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -