Opened 5 months ago

Closed 5 months ago

Last modified 5 months ago

#15673 closed build error (fixed)

xh_auinotbk.cpp is not included int the xrc lib module while build with wx_vc10.sln

Reported by: magnetcn Owned by:
Priority: normal Milestone:
Component: XRC Version: 3.0.0
Keywords: XRC auinotebook Cc:
Blocked By: Blocking:
Patch: no

Description

1.I Build Widgets3.0.0 from sources, when I add the next line in my application code:
wxXmlResource::Get()->AddHandler(new wxAuiNotebookXmlHandler);

I get linker errors:

 unresolved extern sysmbol: public: __cdecl  wxAuiNotebookXmlHandler::wxAuiNotebookXmlHandler(void)
  1. when I add xh_auinotbk.cpp into xrc project source list and recompile to get a new lib/dll. I recompile my application code with the the new lib/dll, this time it works without link errors.

So it seems that the new added file xh_auinotbk.cpp have not been added to VC10

project.

Change History (4)

comment:1 Changed 5 months ago by R.U.10

The wxAuiNotebookXmlHandler is not included with all other XmlHandlers so that the base library not depends on of the aui library.
If you need to add the wxAuiNotebookXmlHandler in one of your projects, you also need to make your project to depend on the aui library itself.

You should use one of the following mailing lists to ask your questions:
http://www.wxwidgets.org/support/maillst2.htm
It avoids to create a ticket...

Regards

comment:2 Changed 5 months ago by vadz

  • Status changed from new to confirmed

No, the ticket is actually valid, this file ought to be in wx_vc10_aui.vcxproj but somehow isn't. I'll add it to it.

comment:3 Changed 5 months ago by VZ

  • Resolution set to fixed
  • Status changed from confirmed to closed

(In [75209]) Add xh_auinotbk.{h,cpp} to the manually maintained VC10 project files.

This file existed in automatically generated projects but not this one.

Closes #15673.

comment:4 Changed 5 months ago by VZ

(In [75215]) Add xh_auinotbk.{h,cpp} to the manually maintained VC10 project files.

This file existed in automatically generated projects but not this one.

Closes #15673.

Note: See TracTickets for help on using tickets.