Re: [AD] faq entry

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Q: I get an error about an "unresolved external symbol _main"!
>
> A: Make sure you're building a Windows GUI Application, and not a Windows
> Console Application. This is a setting when you create the project in MSVC
> or Borland C++ Builder. This is specified by the -tW flag for the Borland
> C++ command line compiler, or -subsystem:console for the MSVC linker.
> Either that, or define the preprocessor symbol ALLEGRO_USE_CONSOLE prior
> to including Allegro headers if you really need the console for your
> program.

Ouch!

> I think that it is very unclear, because -tW and -subsystem:console do
> opposite things.

This is an understatement! The mistake should not have passed through 
the cracks of the review, but it was deeply buried in a big patch that was 
advertised as cosmetic improvements to the FAQ :-(

Thanks for pointing this out.

-- 
Eric Botcazou




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/