Thread: LINK : fatal error LNK1561: entry point must be defined

  1. #16
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    I compiled a SDL game on my computer, that's all. (OpenTTD)

    I don't remember how I set it up. Look at the Dev-C++ devpaks:
    http://devpaks.org/category.php?category=SDL
    Try the newest SDL library version from there.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  2. #17
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    I think you're probably not linking with libSDLmain.a or SDLmain.lib, depending on your compiler. You need to. (As well as libSDL.a/SDL.lib, of course.) Your lib files should be in the compiler's library directory, or the location they are added to the compiler's list of library directories.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #18
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    He needed to download SDL first.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  4. #19
    Registered User
    Join Date
    Oct 2006
    Location
    Columbia, SC
    Posts
    1

    Thumbs up Do you still need help with this?

    It sounds like you don't have the Windows Platform SDK installed and setup properly. Visual C++ Express isn't setup by default to create Windows apps, only managed apps. Here's a link that helped me in setting up the Platform SDK and SDL for C++ Express 2005

    www.meandmark.com/sdlvisualc.pdf

    It's a pdf w/ step-by-step instructions.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How accurate is the following...
    By emeyer in forum C Programming
    Replies: 22
    Last Post: 12-07-2005, 12:07 PM
  2. Variables already defined while linking.
    By xconspirisist in forum C++ Programming
    Replies: 2
    Last Post: 06-10-2005, 05:20 AM
  3. DLL compiling question
    By Noose in forum Windows Programming
    Replies: 2
    Last Post: 12-16-2004, 07:16 AM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. mmsystem.h and link error
    By swordfish in forum Windows Programming
    Replies: 5
    Last Post: 09-20-2001, 11:26 PM