-
January 9th, 2009, 11:43 AM
#31
Re: build a project using given obj files
Originally Posted by TheCPUWizard
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;
}
-
January 9th, 2009, 11:49 AM
#32
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!
-
January 9th, 2009, 11:51 AM
#33
Re: build a project using given obj files
Originally Posted by lqakane
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
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|