Ok, it is solved.
I added winspool to the DEBUG and RELEASE project configurations but I forgot to add it too to the Win32App node
(Project build options)

Now the project compiles well.

Thank you to all of you

JoseB


On Sat, Dec 18, 2010 at 9:20 PM, Imóveis Nacionais <imoveisnacionais@gmail.com> wrote:
Sorry, but I am not sure how to compile it from the command line :-(
Till some time ago I used the Visual studio with its great IDE but now due to .net framework and related complexity and magic and all the complexity and messy to build applications I am trying MinGW as it seems that it is possible to develop commercial applications with it. So I am a beginner on Mingw. Sorry.

JoseB

On Sat, Dec 18, 2010 at 8:28 PM, Keith Marshall <keithmarshall@users.sourceforge.net> wrote:
On Saturday 18 December 2010 18:36:07 Imóveis Nacionais wrote:
> I
> included the #include <winspool.h>  and a reference to the winspool
> library. When I compile it compiler says that it does not knows the
> GetDefaultPrinterA function,

How did you add the reference to the winspool library?
What was the error message?  A compile time error?  Or an unresolved
reference at link time?

You need to provide this sort of detail, or we can't help you.  You
should not expect anyone else to debug your project for you.  Reduce
it to a minimal test case.  See if you can build that, ideally from the
command line, without the distraction introduced by your choice of IDE.
That will often be sufficient to lead you to a solution on your own.

--
Regards,
Keith.

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe