c++ - How to link allegro 4.4 with visual studio 2010 -


I have been trying several hours to link allegro 4.4 with Visual Studio 2010. I am using Microsoft Visual C ++ 2010 Express Edition. I have removed it:

  1. I downloaded binaries from windows (I downloaded MSWC 2010)

  2. P>

  3. Three folders in the zip archive "C: \ LLRo"

  4. I launched MSVC and a new Windows console application I created a main CPP file

  5. In the project properties I went to VC ++ directories and "C: \" Outlet Include \ "Include Directories \"

  6. I "Library Directory" "V: C: \ flue \ lib"

  7. In Linker-> I am setting the 'environment' to "PATH = c: \ allegro \" for the "Notification Properties-> debugging in Input I.

  8. Bin;% PATH% "
  9. I implemented all the changes and put this simple program in the main CPP

      #include & lt; Allegro j & gt; Int main () {Return 0; } END_OF_MAIN ();  
  10. When I tried to debug it, I found two errors error 1 error LNK2019: Unsolved external referenced in function ___ tmainCRTStartup Icon _ and error 2 error LNK1120: 1 unassigned external

    I am pulling my hair in despair! Can someone help me or point me in the right direction?

    OK I feel like an idiot now but after reading I understood it. I realized this problem that I created a console application instead of the windows app, I decided to go to the configuration properties - & gt; Linker - & gt; Setting Up the System and "User (Windows / SUBSYSTEM: WINDOWS)" sub-system I hope that it helps anyone else running this problem.

Comments