CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2002
    Location
    Sofia, Bulgaria
    Posts
    661

    Unhappy Has anyone worked with devC++

    I have a few problems with my dev c++ compiler...

    1. How to link my programs with dll's
    2. How to link my programs with lib's
    3. How to add the packages from their site

    I doubt someone can answer this but...
    Thanks for any help
    It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449
    Try this site:

    http://www.mingw.org/mingw-oldfaq.shtml

    I have used Dev C++, however I've only used the LoadLibrary / GetProcAddress approach if I want to call a function from a non-system DLL.

    I wanted to test one of my DLL's against various compilers, including Dev C++. LoadLibrary / GetProcAddress worked all the time for any Windows C++ compiler. This saved a lot of testing time, since I didn't need to figure out how to create lib files for the various compilers.

    Regards,

    Paul McKenzie

  3. #3

    From what I know....

    The old '#pragma comment(lib,"YOURDLLS_LIBFILE.LIB")' which originated on MSVC++ (I think????) that works on Borland too MIGHT work on that GNU port since it seems to work on other compilers - don't know though, never tried.

  4. #4
    Join Date
    Nov 2002
    Location
    Ufa, Russia
    Posts
    36
    Linking static library:
    If your library name is "libNAME.a"
    go to project settings and in additional link options add "-lNAME"

    I don't know any way to link program with MSVC's *.lib files.

  5. #5
    Join Date
    Nov 2002
    Location
    Sofia, Bulgaria
    Posts
    661
    Originally posted by deesan
    Linking static library:
    If your library name is "libNAME.a"
    go to project settings and in additional link options add "-lNAME"

    I don't know any way to link program with MSVC's *.lib files.
    actually that's what i meant!! '.a' libararies... Thanks!
    And thank you Paul! I didn't know that they had windows.h with LoadLibrary but they do
    It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured