Error in building in Visual Studio 2010

Discussion of compilation configuration and issues

Error in building in Visual Studio 2010

Postby aIsmail » Tue Apr 14, 2015 3:13 pm

I have a problem in compiling
LINK : fatal error LNK1181: cannot open the input file \wxmsw28_netutils.lib
This because that wxcontrib_dll.sln doesn\t exist. So , I didn't enable to generate the missing library. When I redownloaded the wxWidgets again, the wxcontirb_dll.sln file doesn't exist.
aIsmail
 
Posts: 7
Joined: Tue Jan 13, 2015 8:47 am

Re: Error in building in Visual Studio 2010

Postby Ajaja » Tue Apr 14, 2015 3:26 pm

You can use instruction from https://svn.code.sf.net/p/gmat/code/tru ... VS2010.pdf

5.1 Install the wx Code
...
(b) Unpack the wxWidgets.zip archive into your wxWidgets folder, overwriting existing files as necessary.
...
9. Open the wxcontrib dll.sln solution file from the contrib\build folder of your wxWidgets installation. (For me, the file is found in C \GmatVS\Gmat3rdParty\wxWidgets\contrib\build)
Ajaja
 
Posts: 6
Joined: Thu Mar 26, 2015 11:14 pm

Re: Error in building in Visual Studio 2010

Postby aIsmail » Tue Apr 14, 2015 3:58 pm

Thanks Ajaja,

I did so and I followed the instructions. But I got 1906 linking errors. The first six errors are
4>AboutDialog.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual class wxObjectRefData * __thiscall wxObject::CloneRefData(class wxObjectRefData const *)const " (__imp_?CloneRefData@wxObject@@MBEPAVwxObjectRefData@@PBV2@@Z)
4>AboutDialog.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual class wxObjectRefData * __thiscall wxObject::CreateRefData(void)const " (__imp_?CreateRefData@wxObject@@MBEPAVwxObjectRefData@@XZ)
4>AboutDialog.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual void * __thiscall wxClientDataContainer::DoGetClientData(void)const " (__imp_?DoGetClientData@wxClientDataContainer@@MBEPAXXZ)
4>AboutDialog.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual void __thiscall wxClientDataContainer::DoSetClientData(void *)" (__imp_?DoSetClientData@wxClientDataContainer@@MAEXPAX@Z)
4>AboutDialog.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual class wxClientData * __thiscall wxClientDataContainer::DoGetClientObject(void)const " (__imp_?DoGetClientObject@wxClientDataContainer@@MBEPAVwxClientData@@XZ)
4>AboutDialog.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual void __thiscall wxClientDataContainer::DoSetClientObject(class wxClientData *)" (__imp_?DoSetClientObject@wxClientDataContainer@@MAEXPAVwxClientData@@@Z)
aIsmail
 
Posts: 7
Joined: Tue Jan 13, 2015 8:47 am

Re: Error in building in Visual Studio 2010

Postby Ajaja » Tue Apr 14, 2015 4:17 pm

Looks like you built static version of wxWidgets. Try to unpack wxWidgets.zip into wxWidgets folder, open wxWidgets\build\msw\wx_dll.sln , choose "DLL Release" and rebuild all.
Ajaja
 
Posts: 6
Joined: Thu Mar 26, 2015 11:14 pm


Return to Compiling GMAT

Who is online

Users browsing this forum: No registered users and 1 guest

cron