Two Pilots™    Home  |  Navigation  |  Site Map  |  Products  |  Download  |  Prices  |  For Partners  |  Support


All forums · Statistics · Search ·

Two Pilots forum / For software developers / SampleAppStaticPDFCreator vs2010 error : Xran/Xlen
Author Message
Sqarzz
Member
# Posted: 23 Apr 2012 17:56


Hi there,
After the simlple tutorial for the Static Version kept crashing,
i tried running the SampleAppStaticPDFCreator.
Problem I get is a serie of errors: unresolved external symbols refering to functions in String_base::_Xran and String_base::_Xlen.
Would anybody know what these errors mean?

Artem
Member
# Posted: 24 Apr 2012 03:28


Hi Sqarzz,

Please try to use the following version of test application: http://www.colorpilot.com/~artem.golubnichenko/Sam pleAppStaticPDFCreator.zip
It sample includes release version of static library.

If you have any other questions, please don't hesitate to contact us.

--
Best regards,
Artem Golubnichenko
Two Pilots
http://www.colorpilot.com

Sqarzz
Member
# Posted: 25 Apr 2012 10:14 · Edited by: Sqarzz


Yes this got me on my way. Thanks Artem.
The project however lacks a debug version of the lib.
I added the lib from an other download link, included the file in the linker input, while being in debug mode, and this worked like a charm!

Artem
Member
# Posted: 25 Apr 2012 11:48


Hi Sqarzz,

I'm glad you succeeded in solving your problem. If you have any other questions, please don't hesitate to contact us.

--
Best regards,
Artem Golubnichenko
Two Pilots
http://www.colorpilot.com

Sqarzz
Member
# Posted: 30 Apr 2012 14:41


In the process of linking the the working pdfproject to my actual project, I keep getting linking errors.

Would you know what I should do with this:

msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void __thiscall std::_Container_base12::_Orphan_all(void)" (?_Orphan_all@_Container_base12@std@@QAEXXZ) already defined in StaticPDFCreator_x86_debug.lib(StaticPDFDocument4. obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::_Container_base12::~_Container_base12(void)" (??1_Container_base12@std@@QAE@XZ) already defined in StaticPDFCreator_x86_debug.lib(StaticPDFDocument4. obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::_Container_base12::_Container_base12(void)" (??0_Container_base12@std@@QAE@XZ) already defined in StaticPDFCreator_x86_debug.lib(StaticPDFDocument4. obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void __thiscall std::_Container_base12::_Swap_all(struct std::_Container_base12 &)" (?_Swap_all@_Container_base12@std@@QAEXAAU12@@Z) already defined in StaticPDFCreator_x86_debug.lib(PDFDocument_Annotat ions.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: struct std::_Iterator_base12 * * __thiscall std::_Container_base12::_Getpfirst(void)const " (?_Getpfirst@_Container_base12@std@@QBEPAPAU_Itera tor_base12@2@XZ) already defined in StaticPDFCreator_x86_debug.lib(PDFDocumentImpl.obj )

Sqarzz
Member
# Posted: 30 Apr 2012 14:46


what I already found out is that in the project settings I use:
Multi-threaded Debug DLL (/MDd)
instead of the
Multi-threaded Debug DLL (/MTd) as it set in the example project.
Problem is all my other libs don't work in this mode. Is there a solution to this?

Artem
Member
# Posted: 30 Apr 2012 22:57


Hi Sqarzz,

Yes, the library has built with /MTd option. Ideally we need to build different versions for each option (/MDb, and /MTd, and release too ) because a DLL built by linking to a static CRT will have its own CRT state. It is difficult for us because the project contains more 10 sub-projects. We'll add it to our to-do list. Sorry for the inconvience.

--
Best regards,
Artem Golubnichenko
Two Pilots
http://www.colorpilot.com

Sqarzz
Member
# Posted: 1 May 2012 05:38


oh bummer.. This was a really great solution for me..,
but I understand it is a lot of work.
Great job with lib, and please keep me updated would you ever do the builds for /MDd.

Artem
Member
# Posted: 1 May 2012 22:57


Hi Sqarzz,

> Great job with lib, and please keep me updated would you ever do the builds for /MDd.

OK, we'll inform you about any result regarding pdf static library. Sorry for the inconvenience.

--
Best regards,
Artem Golubnichenko
Two Pilots
http://www.colorpilot.com

kennpunt
# Posted: 19 May 2012 09:23


Dear Sqarzz,
I'm having also a LINK error
fatal error LNK1104: cannot open file 'StaticPDFCreator_x86_debug.lib'
I read that you downloaded the debug library from another site.
Can you please tell me this site?

Artem
Member
# Posted: 19 May 2012 23:12 · Edited by: Artem


Dear Kennpunt,

1. Try to rename debug library file as "StaticPDFCreator_x86_debug.lib", please.
2. For MS VS you must tell the linker what library files to use. Select the Linker category of properties and, pick the Input options. In the Additional Dependencies property input the name of static library (StaticPDFCreator_x86_debug.lib).

If you have any other questions, please don't hesitate to contact us.

--
Best regards,
Artem Golubnichenko
Two Pilots
http://www.colorpilot.com

simonpp
# Posted: 10 Nov 2012 17:06


Sqarzz
>what I already found out is that in the project settings I use:
>Multi-threaded Debug DLL (/MDd)
i>nstead of the
>Multi-threaded Debug DLL (/MTd) as it set in the example project.
>Problem is all my other libs don't work in this mode. Is there a solution to this?

Were you able to resolve this problem ?
Thanks

Artem
Member
# Posted: 11 Nov 2012 08:44


Hello Simon,

> Were you able to resolve this problem ?

No.

If you have any other questions, please don't hesitate to contact us.

--
Best regards,
Artem Golubnichenko
Two Pilots
http://www.colorpilot.com

 

 

Powered by miniBB 2.0 RC7 © 2001-2004 Page creation time (sec.): 0.016

 

Page top