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
  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
    St. Petersburg, Florida, USA
    Posts
    12,125

    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,2010
    In theory, there is no difference between theory and practice; 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
  •  





Click Here to Expand Forum to Full Width

Featured