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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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.
Not sure, but it should appear in the makefile dev creates for your project.