Im trying to compile a DLL on Dev-C++ 4. I`ve already downloaded another compiler (MinGW) because the included one couldn`t compile it. Now I cannot link it. At linker output is: d:\c\edr\edrlib.o(.text+0x31):edrlib.cpp: undefined reference to `GetTextExtentPoint32A@16'
There are some other messages, that contains the same, but other reference to
If I Uncheck the Create DLL int project options it writes only undefined reference to 'WinMain@16' which is normal, because I`ve got no WinMain in my DLL.
Does anyone know what can I do?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You need always an entry-point.
In case of no-dll (console pgm) you have to link against a main();
edrlib.cpp uses some calls GetTExtExtendPoint, they are resolved in some lib...you have to find out the name of the lib an then add in in -lname (libname.a)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Im trying to compile a DLL on Dev-C++ 4. I`ve already downloaded another compiler (MinGW) because the included one couldn`t compile it. Now I cannot link it. At linker output is: d:\c\edr\edrlib.o(.text+0x31):edrlib.cpp: undefined reference to `GetTextExtentPoint32A@16'
There are some other messages, that contains the same, but other reference to
If I Uncheck the Create DLL int project options it writes only undefined reference to 'WinMain@16' which is normal, because I`ve got no WinMain in my DLL.
Does anyone know what can I do?
You need always an entry-point.
In case of no-dll (console pgm) you have to link against a main();
edrlib.cpp uses some calls GetTExtExtendPoint, they are resolved in some lib...you have to find out the name of the lib an then add in in -lname (libname.a)