Re: build a project using given obj files
Quote:
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;
}
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!
Re: build a project using given obj files
Quote:
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.