Hi all,
Having set up all the include and Library directories correctly in VC++ 2010 Express, I am wondering why the solution can't be built C:\local\boost_1_55_0 (for include) C:\local\boost_1_55_0\stage\lib (for librairies) what strikes me the most is that cstddef does exist in C:\local\boost_1_55_0\boost\pending Hope that someone can provide me with some assistance on this matter. Cheers |
On 22 May 2014 16:42, itneophyte85 <[hidden email]> wrote: Hi all, Not sure whether this will help, but for a while I struggled to build Quantlib, because I never explicitly saved the project file after referencing the boost directories. Coming from a C# background I was used to the project and solution file auto-saving whenever I did a build. The error that i got was a different one though.
Francois ------------------------------------------------------------------------------ The best possible search technologies are now affordable for all companies. Download your FREE open source Enterprise Search Engine today! Our experts will assist you in its installation for $59/mo, no commitment. Test it for FREE on our Cloud platform anytime! http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by itneophyte85
cstddef should be a standard header, not one in Boost (pending or
otherwise). It comes with the compiler. Did you _add_ the Boost directories to the include path, or did you _replace_ the directories that were there? Luigi On Thu, May 22, 2014 at 4:42 PM, itneophyte85 <[hidden email]> wrote: > Hi all, > > Having set up all the include and Library directories correctly in VC++ 2010 > Express, I am wondering why the solution can't be built > > C:\local\boost_1_55_0 (for include) > C:\local\boost_1_55_0\stage\lib (for librairies) > > what strikes me the most is that cstddef does exist in > C:\local\boost_1_55_0\boost\pending > > Hope that someone can provide me with some assistance on this matter. > > Cheers > > > > > -- > View this message in context: http://quantlib.10058.n7.nabble.com/QuantLib-Installation-in-VC-2010-1-C-local-boost-1-55-0-boost-config-select-stdlib-config-hpp-18-faty-tp15305.html > Sent from the quantlib-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > The best possible search technologies are now affordable for all companies. > Download your FREE open source Enterprise Search Engine today! > Our experts will assist you in its installation for $59/mo, no commitment. > Test it for FREE on our Cloud platform anytime! > http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk > _______________________________________________ > QuantLib-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-users -- <https://implementingquantlib.blogspot.com> <https://twitter.com/lballabio> ------------------------------------------------------------------------------ The best possible search technologies are now affordable for all companies. Download your FREE open source Enterprise Search Engine today! Our experts will assist you in its installation for $59/mo, no commitment. Test it for FREE on our Cloud platform anytime! http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by igitur
Hi Francois,
Thanks for the suggestion, however I am still getting the same error message. will keep on investigating although I have spent too much time on this matter. Cheers |
In reply to this post by Luigi Ballabio
Hi Luigi,
Thanks for the reply. I did replace the default directories by adding from VC++ Directories C:\local\boost_1_55_0 for the include directory & C:\local\boost_1_55_0\stage\lib for the library's one. Having followed meticulously the instructions on http://quantlib.org/install/vc10.shtml., I am a bit confused now. cheers |
You shouldn't *replace* the default directories. You should *add* the
Boost directories to the default directories (that you'll keep, or the compiler won't find its own standard headers). Luigi On Thu, May 29, 2014 at 8:39 PM, itneophyte85 <[hidden email]> wrote: > Hi Luigi, > > Thanks for the reply. I did replace the default directories by adding from > VC++ Directories C:\local\boost_1_55_0 for the include directory & > C:\local\boost_1_55_0\stage\lib for the library's one. > Having followed meticulously the instructions on > http://quantlib.org/install/vc10.shtml., I am a bit confused now. > > cheers > > > > -- > View this message in context: http://quantlib.10058.n7.nabble.com/QuantLib-Installation-in-VC-2010-1-C-local-boost-1-55-0-boost-config-select-stdlib-config-hpp-18-faty-tp15305p15337.html > Sent from the quantlib-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > QuantLib-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-users -- <https://implementingquantlib.blogspot.com> <https://twitter.com/lballabio> ------------------------------------------------------------------------------ Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/restlet _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hey Luigi,
I think there is a misunderstanding and hope the below clarification will help: In the property page window, I clicked on VC++ Directories on the left pane and *add* the paths for the Boost directories in Include Directories and Library Directories in the right pane. as I installed Boost in *C:\local\boost_1_55_0*, i added C:\local\boost_1_55_0 to the include directories and *C:\local\boost_1_55_0\stage\lib* to the library directories. I Clicked the OK button to set my changes. Eventually my setup is as follows: *Executable directories* (=default):$(VCInstallDir)bin;$(WindowsSdkDir)bin\NETFX 4.0 Tools;$(WindowsSdkDir)bin;$(VSInstallDir)Common7\Tools\bin;$(VSInstallDir)Common7\tools;$(VSInstallDir)Common7\ide;$(ProgramFiles)\HTML Help Workshop;$(FrameworkSDKDir)\bin;$(MSBuildToolsPath32);$(VSInstallDir);$(SystemRoot)\SysWow64;$(FxCopDir);$(PATH); *Include directories* (=added):C:\local\boost_1_55_0\boost;$(IncludePath) *reference libraires* (=default):$(VCInstallDir)atlmfc\lib;$(VCInstallDir)lib *librairy directories* (=added) C:\local\boost_1_55_0\stage\lib;$(LibraryPath) *source directories* (=default):$(VCInstallDir)atlmfc\src\mfc;$(VCInstallDir)atlmfc\src\mfcm;$(VCInstallDir)atlmfc\src\atl;$(VCInstallDir)crt\src; *exclude directories*(=default):$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSdkDir)include;$(FrameworkSDKDir)\include;$(MSBuildToolsPath32);$(VCInstallDir)atlmfc\lib;$(VCInstallDir)lib; Can't figure out anything wrong since the instructions are pretty much straightforward. aren't they? I am also wondering if it's normal to read the below warning messages from the output box when i open the QuantLib_vc10.sln (before building the solution) C:\local\QuantLib-1.4\QuantLib_vc10.vcxproj : warning : Platform 'x64' referenced in the project file 'QuantLib' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'. C:\local\QuantLib-1.4\test-suite\testsuite_vc10.vcxproj : warning : Platform 'x64' referenced in the project file 'testsuite' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'. C:\local\QuantLib-1.4\Examples\Swap\Swap_vc10.vcxproj : warning : Platform 'x64' referenced in the project file 'Swap' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'. C:\local\QuantLib-1.4\Examples\EquityOption\EquityOption_vc10.vcxproj : warning : Platform 'x64' referenced in the project file 'EquityOption' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'. C:\local\QuantLib-1.4\Examples\ConvertibleBonds\ConvertibleBonds_vc10.vcxproj : warning : Platform 'x64' referenced in the project file 'ConvertibleBonds' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'. C:\local\QuantLib-1.4\Examples\FRA\FRA_vc10.vcxproj : warning : Platform 'x64' referenced in the project file 'FRA' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'. C:\local\QuantLib-1.4\Examples\Repo\Repo_vc10.vcxproj : warning : Platform 'x64' referenced in the project file 'Repo' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'. C:\local\QuantLib-1.4\Examples\Replication\Replication_vc10.vcxproj : warning : Platform 'x64' referenced in the project file 'Replication' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'. C:\local\QuantLib-1.4\Examples\BermudanSwaption\BermudanSwaption_vc10.vcxproj : warning : Platform 'x64' referenced in the project file 'BermudanSwaption' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'. C:\local\QuantLib-1.4\Examples\DiscreteHedging\DiscreteHedging_vc10.vcxproj : warning : Platform 'x64' referenced in the project file 'DiscreteHedging' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'. C:\local\QuantLib-1.4\Examples\FittedBondCurve\FittedBondCurve_vc10.vcxproj : warning : Platform 'x64' referenced in the project file 'FittedBondCurve' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'. C:\local\QuantLib-1.4\Examples\CallableBonds\CallableBonds_vc10.vcxproj : warning : Platform 'x64' referenced in the project file 'CallableBonds' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'. C:\local\QuantLib-1.4\Examples\CDS\CDS_vc10.vcxproj : warning : Platform 'x64' referenced in the project file 'CDS' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'. C:\local\QuantLib-1.4\Examples\Bonds\Bonds_vc10.vcxproj : warning : Platform 'x64' referenced in the project file 'Bonds' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'. C:\local\QuantLib-1.4\Examples\MarketModels\MarketModels_vc10.vcxproj : warning : Platform 'x64' referenced in the project file 'MarketModels' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'. Cheers |
Brillant Luigi. I've finally managed to add my incl. & lib path while keeping the default one and it does work. your comment also helped me to sort out another error - *LINK : fatal error LNK1104: cannot open file 'libboost_unit_test_framework-vc100-mt-gd-1_55.lib'*. In a nutshell, all done now in vc++ 2010 and thank you for the help.
cheers |
Glad to hear it. What was the solution? Is there anything we should add to the instructions? Luigi On Jun 2, 2014 9:42 PM, "itneophyte85" <[hidden email]> wrote:
Brillant Luigi. I've finally managed to add my incl. & lib path while keeping ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Luigi,
the solution has consisted of adding in Include Directory: C:\local\boost_1_55_0_2;$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSdkDir)include;$(FrameworkSDKDir)\include; Library Directory: C:\local\boost_1_55_0_2\stage\lib;$(VCInstallDir)lib;$(VCInstallDir)atlmfc\lib;$(WindowsSdkDir)lib;$(FrameworkSDKDir)\lib This guarantees the avoidance of compiler issues in finding any file.hpp from either boost or the standard library. Hope it helps cheers |
itneophyte85 <ismaeltfadiga <at> yahoo.co.uk> writes:
> > Luigi, > > the solution has consisted of adding in > > Include Directory: > C:\local\boost_1_55_0_2;$(VCInstallDir)include;$(VCInstallDir)atlmfc\include ;$(WindowsSdkDir)include;$(FrameworkSDKDir)\include; > > Library Directory: > C:\local\boost_1_55_0_2\stage\lib;$(VCInstallDir)lib;$(VCInstallDir)atlmfc\l ib;$(WindowsSdkDir)lib;$(FrameworkSDKDir)\lib > > This guarantees the avoidance of compiler issues in finding any file.hpp > from either boost or the standard library. > > Hope it helps > > cheers > > -- > View this message in context: local-boost-1-55-0-boost-config-select-stdlib-config-hpp-18-faty- tp15305p15415.html > Sent from the quantlib-users mailing list archive at Nabble.com. > > -------------------------------------------------------------------------- ---- > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > User from the C# background, after re-adding the default paths as suggested below, don't forget to save the settings before compiling otherwise you will get the same error ! ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
That kept screwing with me too at first. There's a setting in Visual Studio to autosave on build for C++ projects too. On 06 Aug 2014 9:52 AM, "Vivek" <[hidden email]> wrote:
itneophyte85 <ismaeltfadiga <at> yahoo.co.uk> writes: ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |