I am trying to export two functions of the same signature from a C++ dll. As I don't want names to be mangled, I am using extern "C"
. However, when I open a dll in depedency walker, I could see that the entry points for both of the functions are same, any idea why?
Code as below: Header.h
#pragma once
extern "C"
{
void _cdecl TestFunc1();
void _cdecl TestFunc2();
}
Header.cpp
#include "Header.h"
void TestFunc1()
{
int i = 0;
}
void TestFunc2()
{
int i = 0;
}
Module defination file:
EXPORTS
TestFunc1
TestFunc2
This is what I got in dependecy walker