Thread: I don't even know where to start with this one...

  1. #1
    Registered User Stonehambey's Avatar
    Join Date
    Jan 2008
    Location
    Kent, UK
    Posts
    118

    I don't even know where to start with this one...

    Hi

    I've been messing around with some SDL tutorials and have come across something quite bizarre (at least to me)

    In this tutorial I get to part 7 (the bit where you go into the parameters tab in Dev-C++) and I copy and paste the text he puts into the linker like he says. The program compiles and everything is fine and dandy.

    It occurs to me that I don't really want to have to go to that web page every time I want to program in SDL so I decide to commit the text which I pasted into the linker box to memory.

    I start a new project, type it all into the linker and it doesn't compile (tells me it can't find a reference to the SDL functions). Hmmm, I check again (against the website) to make sure I've typed it in correctly and I have done.

    I open the old project which compiled and compiled it again and it's still working fine.

    So I copy and paste the text into the box from the site (back in the current project now) and it compiles!

    I've checked dozens of times that the text I'm typing into the box is exactly the same (down the to spaces, cases etc) and it is. Only it will only compile if I copy and paste it from the site into the box, not type it!

    Does anyone have any idea as to what could be going on here?

    Kind Regards

    Stonehambey

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    You are using "-lSDL" and "-lSDL_Image", right? Those are the letter L in lower-case, not the letter I or 1 - the web-site using sans-serif "helvetica style" fonts is not exactly helping things. A font where I, l and 1 are clearly different would be much make it much easier.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User Stonehambey's Avatar
    Join Date
    Jan 2008
    Location
    Kent, UK
    Posts
    118
    It worked, thanks so much

    Y'know, I don't think I know of any board with a response time as quick and accurate as this one, and you guys even put up with my dumb questions ^_^

    Cheers again

    Stonehambey

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Obviously, the response time is much based on having a bunch of dedicated people online most of the time - and sometimes having the luck that someone who knows (or can guess) the answer is online when you ask the question.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. Adventures in labyrinth generation.
    By guesst in forum Game Programming
    Replies: 8
    Last Post: 10-12-2008, 01:30 PM
  3. C++ gui for windows where to start
    By prixone in forum Windows Programming
    Replies: 2
    Last Post: 12-16-2006, 11:48 PM
  4. GNOME Desktop won't start (Mandriva)
    By psychopath in forum Tech Board
    Replies: 10
    Last Post: 07-19-2006, 01:21 PM
  5. Start bar color in WinXP
    By confuted in forum Tech Board
    Replies: 4
    Last Post: 05-03-2003, 06:18 AM