Is there some way to instruct MinGW-w64 or CodeBlocks project to generate line in def file like this:
func2=func1
int __attribute__((dllimport)) Double (int);
int __attribute__((dllexport,alias("Double"))) NextDouble(int);
I thought this will work but compiler emits error:
|2|error: 'NextDouble' aliased to undefined symbol 'Double'|
Is there some way to bypass alias to linker?
Clarification:
I have one DLL's import library, which exports Double. I am trying to create second DLL which will import Double and export NextDouble which will point to address of imported Double. So the same thing as if I will do NextDouble=Double in def-file. Which will make export NextDouble in dll point to import Double.
Doublefrom another dll module? You cannot make alias for symbols that reside in another dll. - greatwolf