build a project using given obj files - Page 3
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 3 of 3 FirstFirst 123
Results 31 to 33 of 33

Thread: build a project using given obj files

  1. #31
    Join Date
    Sep 2008
    Posts
    21

    Re: build a project using given obj files

    Quote Originally Posted by TheCPUWizard View Post
    You may think you did...but...the linker is not seeing it.

    Most likely, you did not include the file in the linker command, possibly you declared main as having file scope, maybe you even spelled main wrong. Please SHOW your implementation of main.
    Okay, here is my main.cpp:

    #include "AbstractActions.h"
    #include "AbstractInterfaceDefinition.h"
    #include "AICharacters.h"
    #include "BasicCharacter.h"
    #include "BasicObjects.h"
    #include "DialogPathMapping.h"
    #include "Functions.h"
    #include "GoalsAndFeelings.h"
    //#include "Help.h"
    #include "HighScores.h"
    #include "InfoToVEClasses.h"
    #include "InitialInteractiveActions.h"
    #include "IntentionalAgent.h"
    #include "Items.h"
    #include "OtherCharacterModel.h"
    #include "PlayerCharacter.h"
    #include "ReactiveActions.h"
    #include "ResponseActions.h"
    #include "SoloActions.h"
    #include "WEConcreteInterfaceDefinition.h"
    int main()
    {
    return 1;
    }

  2. #32
    Join Date
    Sep 2008
    Posts
    21

    Re: build a project using given obj files

    O, btw, not sure I state it clearly. The BuildLog is what he sent me, not mine. His code does not have a main I think, which is why it has the link error. Because he's sending me the interface that he wants me to implement my own main() and do testing.
    Thanks!

  3. #33
    Join Date
    Mar 2002
    Location
    NY, USA
    Posts
    12,097

    Re: build a project using given obj files

    Quote Originally Posted by lqakane View Post
    O, btw, not sure I state it clearly. The BuildLog is what he sent me, not mine. His code does not have a main I think, which is why it has the link error. Because he's sending me the interface that he wants me to implement my own main() and do testing.
    Thanks!

    But the posted build log IS for an EXECUTABLE....It is NOT for a library that would be linked into your project (either statically or dynamically)...therefore it is useless information.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009
    In theory, there is no difference between theory and paractice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

Page 3 of 3 FirstFirst 123

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center