Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hey i m using visual studio 2008. Recently i have included CMarkup parser in my project but i m facing LINK : fatal error LNK1181: cannot open input file '.\Debug\Markup.obj' error but i dont have any Markup.obj file to set the path. I searched in net and tried alot of ways but not succeeded in any. Could anyone please help me...
Posted
Comments
Sergey Alexandrovich Kryukov 26-Feb-13 19:56pm    
Please stop posting non-answers as "solution". It can give you abuse reports which eventually may lead to cancellation of your CodeProject membership.
Comment on any posts, reply to available comments, or use "Improve question" (above).
Also, keep in mind that members only get notifications on the post sent in reply to there posts.
—SA

I assume you have a CMarkup.cpp file. Add it to your project by

Add -> Existing items ...

and Visual Studio will compile it and thereby produce the CMarkup.obj file. It will put that file under .\Debug or .\Release depending on which configuration you are building. Hence the linker will find the object file in the right place automatically.
 
Share this answer
 
Comments
Member 9043734 18-Jun-12 9:14am    
i have added markup.h and marup.cpp already.
nv3 18-Jun-12 9:44am    
Then please check the properties of the Markup.cpp entry in the solution explorer. Either the file is excluded from the build (you would have probably noticed that by the red icon overlay in the treeview) or int the OutputFiles section the setting for "Object File Name" is not set to "$(IntDir)/". These are the two most likely places that could be set wrong.

To check that everything is working, right-click Markup.cpp and select "Compile". Afterwards you should have the Markup.obj in your intermediate directory (that's what $(IntDir) stands for). So in a debug build the object file should be in your projects .\Debug directory.
Kumar 09 12-Jul-12 0:08am    
CMarkup xmlSettings;
MCD_STR strLoginFilename = _T("Login Testing.xml");
BOOL bTestingFileLoaded = xmlSettings.Load( strLoginFilename );
if ( !bTestingFileLoaded )
{
xmlSettings.SetDoc( NULL );
xmlSettings.AddElem( _T("Login Testing") );
bTestingFileLoaded = TRUE;
}
if ( bTestingFileLoaded )
{
CMarkup xmlLogin;
xmlLogin.Open( strLoginFilename, CMarkup::MDF_WRITEFILE );
xmlLogin.AddElem( _T("Login ID") );
xmlLogin.SetAttrib( _T("Value"), _T("Add Login ID Value") );
xmlLogin.AddElem( _T("Password") );
xmlLogin.SetAttrib( _T("Value"), _T("Add Password Value") );
xmlLogin.SetAttrib( _T("DateTime"), (LPCTSTR)CTime::GetCurrentTime().Format("%d-%b-%Y %H:%M:%S") );

xmlSettings.ResetChildPos();
xmlSettings.IntoElem();
xmlSettings.AddChildSubDoc( xmlSettings.GetDoc() );
xmlSettings.Save( strLoginFilename );
xmlLogin.Close();
}

hi this is how i am creating an xml file, it creates an xml file but i cant see any data in the xml file (blank)
nv3 12-Jul-12 2:18am    
Is this still the same question as above, or have you resolved the original issue and this is a new question?
Kumar 09 19-Jul-12 3:44am    
xmlWrite.AddElem(L"Login");
xmlWrite.IntoElem();
xmlWrite.AddElem(L"LoginID", getLoginstr);
xmlWrite.AddElem(L"Password", sEncrypted);
xmlWrite.AddElem( L"DateTime", (LPCTSTR)CTime::GetCurrentTime().Format("%d-%b-%Y %H:%M:%S") );
xmlWrite.OutOfElem();
xmlWrite.save(paath);

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900