Thread: Using precompiled .OBJ files in visual studio

  1. #1
    Codebot
    Join Date
    Jun 2004
    Location
    Toronto
    Posts
    195

    Using precompiled .OBJ files in visual studio

    I have been given a .h file along with a .OBJ file which as been precompiled. Im wondering how can i set visual studio up so that it will ignore the definitions in the .h file until the linker can handle them.

    For example. I have a file called screen.h

    It contains void ScreenInit();

    The source for that function is in screen.obj

    Im including the .h file in my code but since only the declaration of the function is in the project, visual studio gives me errors saying that it could find the body of that function.

    Any suggestions?

  2. #2
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Location
    Phildelphia, PA
    Posts
    1,146
    Using Precompiled Headers in a Project
    http://msdn.microsoft.com/library/de...guide10_17.asp

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sorting the matrix question..
    By transgalactic2 in forum C Programming
    Replies: 47
    Last Post: 12-22-2008, 03:17 PM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  4. header file bringing errors?
    By bluehead in forum Windows Programming
    Replies: 4
    Last Post: 08-19-2003, 12:51 PM
  5. SystemTray class
    By jair in forum C++ Programming
    Replies: 2
    Last Post: 07-28-2003, 06:27 PM