Hi,
after long time i have another important problem.
I have 2 .dll both have a function void apiinit(void) i MUST static link so dynamic loading is no option.
for 1 dll no problem:
#ifndef DLLIMPORT
#define DLLIMPORT __declspec(dllimport)
#endif
#pragma comment(lib, "dll1.lib")
DLLIMPORT void apiinit(void);
how can i use ALIAS in pellesC ? i cannot get it working. how can i give 2 names so the linker nows if i want dll1 or dll2 ?
I created .def files by hand and used one of vortex tools "def2lib" to create the .lib file
here is the .def(its working)
LIBRARY dll1
EXPORTS
"_apiinit@0" @1
Any help is apreciated and im sure others are interested too, it cannot be a so uncommon problem.
Greetings
Seltsamuel