Menu

Creating a DLL

2002-12-30
2012-09-26
  • Ondrej Majerech

    Ondrej Majerech - 2002-12-30

    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?

     
    • Patrick Ogay

      Patrick Ogay - 2002-12-31

      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)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.