Compilers

This is a discussion on Compilers within the C Programming forums, part of the General Programming Boards category; Ok, this is my problem. My friend sent me his game (C Source) he had to make for uni: Poker. ...

  1. #1
    Deleted Account
    Join Date
    Mar 2005
    Posts
    57

    Compilers

    Ok, this is my problem. My friend sent me his game (C Source) he had to make for uni: Poker. He compiled in Linux, don't know what he used. Anywayz I compiled it in windows using dev c++. The problem is that it doesn't work on my computer, like the validation doesn't work, like if u enter a wrong input, it still goes through etc...Please ask anything in relation to being more specific if i haven't made myself clear enough. I can provide the source code if needed

  2. #2
    chococoder
    Join Date
    Nov 2004
    Posts
    515
    that would be because of an error in his code, not anything your compiler does differently from his (which, if both compilers are good (which many aren't), is nothing at all).

  3. #3
    Deleted Account
    Join Date
    Mar 2005
    Posts
    57
    hmm....no i dun there is an error, cos he said he tested it on his dev c++ and it didn't work too.....but it worked when he had to compile it any uni, unix....... he said something about using different flags?

  4. #4
    chococoder
    Join Date
    Nov 2004
    Posts
    515
    that might be. But I don't see how using different compiler options would make the code behave differently (unless maybe it's a real mess and turning off some boundschecking in the compiler options makes it do something it shouldn't which as a sideeffect has something happen that he wants).

  5. #5
    old man
    Join Date
    Dec 2005
    Posts
    90
    It's hard to know what's going on without seeing the source.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Builder Comparison
    By ryanlcs in forum Tech Board
    Replies: 14
    Last Post: 08-20-2006, 09:56 AM
  2. Is It Possible To Install Multiple Compilers?
    By mishna_toreh in forum C Programming
    Replies: 3
    Last Post: 05-13-2005, 07:32 AM
  3. Compilers for Windows
    By LegendsEnd in forum Windows Programming
    Replies: 2
    Last Post: 03-26-2004, 07:03 AM
  4. Compilers, Compilers, Compilers
    By Stan100 in forum C++ Programming
    Replies: 11
    Last Post: 11-08-2002, 03:21 PM
  5. target OS compilers
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 07-01-2002, 11:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21