Compiling Wierdness - changes to code aren't compiled...(seemingly)..

This is a discussion on Compiling Wierdness - changes to code aren't compiled...(seemingly).. within the C Programming forums, part of the General Programming Boards category; I have made changes to the following code by commenting out all of the printf functions - however, upon recompiling ...

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    62

    Compiling Wierdness - changes to code aren't compiled...(seemingly)..

    I have made changes to the following code by commenting out all of the printf functions - however, upon recompiling after my changes all data is still printed. What am I doing wrong (I'm sure the problem is me).

    It's too much code to post but dl this file and have a look at xev.c (only 80k)

    link

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    Pre-compiled headers can cause this. Sometimes the compiler doesn't flag the file as dirty and thus it uses the code in the PCH rather than re-compiling your code.

    Turn them off temporarily, compile, and turn back on. This should fix it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with compiling code with option -O2
    By koushikyou in forum C Programming
    Replies: 16
    Last Post: 01-07-2009, 06:03 AM
  2. Compiling C code
    By forumuser in forum C Programming
    Replies: 16
    Last Post: 10-13-2008, 05:17 PM
  3. Need help compiling example code (MinGW and DirectX9)
    By scwizard in forum Game Programming
    Replies: 10
    Last Post: 07-25-2008, 11:43 AM
  4. Problems with compiling code in cygwin
    By firyace in forum C++ Programming
    Replies: 4
    Last Post: 06-01-2007, 09:16 AM
  5. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM

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