Thread: VC 2008 linker error

  1. #16
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Try turning off Whole Program Optimization and Link-time Code Generation
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  2. #17
    Registered User Holmes's Avatar
    Join Date
    May 2011
    Posts
    9
    'Optimization' has been set to 'Disabled' and 'Whole Program Optimization' is 'No'. For 'Link Time Code Generation', I've tried 'Default', 'Use Link Time Code Generation' and all three 'Profile Guided...' options. No change.

    However, when I copied over the directories, it did let me re-compile a project that had already been compiled on the other computer. I got a linker warning about either 'vc90.obj' or 'vc90.pdb' was missing and couldn't be found. After that one successful compile, it stopped letting me compile anything at all, giving me the same error as it has been.

    I had copied everything from Program Files+AppData+Documents over.

    I guess it has something to do with that 'vc90.*' file, so at least I have somewhere to start looking now. Anyone have any ideas about this?

  3. #18
    Registered User Holmes's Avatar
    Join Date
    May 2011
    Posts
    9
    Well I still can't figure out what the problem is. And judging by the threads on other forums of the few other people that's had this problem there isn't any real indication that they ever solved it either.

    I guess I'm done with this. I am so screwed

    Thanks to everyone for trying to help.

  4. #19
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by Elysia View Post
    There are no patches needed.
    I've run VS10 under Win7 with no updates and with SP1 and no updates. Runs fine.
    But, this person is doing VS9 not VS10.

    Tim S.

  5. #20
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    VS9 works fine on Win7 SP0 too.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. LINK2001 Error? VS 2008 C++
    By kazzal in forum C++ Programming
    Replies: 3
    Last Post: 11-07-2009, 03:23 AM
  2. Linker Error
    By herWter in forum C++ Programming
    Replies: 11
    Last Post: 08-10-2008, 06:22 AM
  3. Linking error. VC++ 2008.
    By Raigne in forum C++ Programming
    Replies: 6
    Last Post: 04-21-2008, 09:49 PM
  4. linker error
    By :::::: in forum C++ Programming
    Replies: 1
    Last Post: 04-09-2003, 05:00 PM
  5. Linker error
    By dv007 in forum C Programming
    Replies: 8
    Last Post: 06-07-2002, 02:37 PM