[AD] faq entry

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


   Hello,
I've just found this in the documentation:

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.


I think that it is very unclear, because -tW and -subsystem:console do opposite things. IMHO it should be changed to -subsystem:windows or simply delete the sentence about command line switches as it's confusing for IDE users :-)






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