Menu

libgdi32.a project confusion

2003-01-20
2012-09-26
  • Nobody/Anonymous

    Hi Guys,

    I don't have a problem as such, but I do need something explained to me. I am a newbie, so please help me out.

    I want to know the technical difference between creating a "Windows Application" project and a "Console Application" project. Of course one is used for DOS and one to create a win app.

    Now, I cut and paste the code for the "Windows Application" and paste it in the "Console Application" codespace.

    When I run it, of course, I get: "undefined reference to `GetStockObject@4' "

    So I edit the project options and include the object file: libgdi32.a , the Console Application will compile my windows code properly and execute.

    When I look at the project options of a Windows Application, there is no reference to: libgdi32.a

    Therefore, my question is: When creating a Windows Application does Dev-C++ automatically create a linker reference to this library? Is there a section of Dev-C++ that shows this?

    Thanks,
    Wayne

     
    • Nobody/Anonymous

      yea it does... this is an error we see alot about people saying that there windows code will not compile and some of us usually say to make sure they have it in a project... compiling with the cmdline option -mwindows also works...

      Zero Valintine

       
    • Nobody/Anonymous

      Cool. Thanks, I thought so. But can Dev-C++ list everything that is being included behind the scenes? I'm one of these people that has to know before I go any further with coding.

       
    • upcase

      upcase - 2003-01-20

      Not sure, but it should appear in the makefile dev creates for your project.

       

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.