#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Somewhere over the Rainbow
    Posts
    128
    Rep Power
    12

    Compiler Question?


    Hi, I downloaded a C++ code from the NET, and I would like to know which compiler I need to use to compile the Code?, I tried with GCC, and Turbo C and doesnt work's me. Thanks A lot.

    LINK TO DOWNLOAD THE CODE:

    http://easynews.dl.sourceforge.net/s...oy/sopa_pt.zip
  2. #2
  3. I'm Baaaaaaack!
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Jul 2003
    Location
    Maryland
    Posts
    5,538
    Rep Power
    244
    Do you know what RTFM means? I am sure there is build documentation at sourceforge.

    My blog, The Fount of Useless Information http://sol-biotech.com/wordpress/
    Free code: http://sol-biotech.com/code/.
    Secure Programming: http://sol-biotech.com/code/SecProgFAQ.html.
    Performance Programming: http://sol-biotech.com/code/PerformanceProgramming.html.
    LinkedIn Profile: http://www.linkedin.com/in/keithoxenrider

    It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
    --Me, I just made it up

    The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
    --George Bernard Shaw
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Somewhere over the Rainbow
    Posts
    128
    Rep Power
    12
    I asked the author of the code and he told me that use VC++, but appears me

    Compiling...
    main.cpp
    c:\documents and settings\root\my documents\c code\sopa\main.cpp(22) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
    Error executing cl.exe.

    main.obj - 1 error(s), 0 warning(s)

    What could be the Problem, and is there a way to compile in Linux with GCC?

    Thanks
  6. #4
  7. No Profile Picture
    Offensive Member
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2002
    Location
    in the perfect world
    Posts
    622
    Rep Power
    27
    they forgot the SDL.h header in the zip. If it is from the SDL and not a user created one.

    Look in the readme SDL for a link to get it.
    The essence of Christianity is told us in the Garden of Eden history. The fruit that was forbidden was on the Tree of Knowledge. The subtext is, All the suffering you have is because you wanted to find out what was going on. You could be in the Garden of Eden if you had just kept your f***ing mouth shut and hadn't asked any questions.

    Frank Zappa

IMN logo majestic logo threadwatch logo seochat tools logo