Does someone have a fix for false warnings from eclipse ide with C++ quantlib projects?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Does someone have a fix for false warnings from eclipse ide with C++ quantlib projects?

Michael Barrow-2
Hi all,

I'm a long time stalker first time poster. False compiler warnings and the unresolved symbols (CDT only) with eclipse IDE when one includes quantlib.hpp seem to be well known. However I've not been able to fix this in Eclipse. Does anyone have some 'gold' settings (I'm using eclipse Indigo on Ubuntu 12.10) that they can share? I've tried adding the quantlib source tree to my project and re-indexing (from eclipse) to no avail.

It is quite difficult picking through the noise from compilation and code completion would be a God send.

Best regards and Merry Christmas,

Mike

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Does someone have a fix for false warnings from eclipse ide with C++ quantlib projects?

Luigi Ballabio
Hi Michael,
    I'm afraid I'm not familiar with the problem.  What kind of
warnings are you getting? Is it something that we can fix in the code?

Later,
    Luigi


On Wed, Dec 26, 2012 at 4:34 PM, Michael Barrow <[hidden email]> wrote:

> Hi all,
>
> I'm a long time stalker first time poster. False compiler warnings and the
> unresolved symbols (CDT only) with eclipse IDE when one includes
> quantlib.hpp seem to be well known. However I've not been able to fix this
> in Eclipse. Does anyone have some 'gold' settings (I'm using eclipse Indigo
> on Ubuntu 12.10) that they can share? I've tried adding the quantlib source
> tree to my project and re-indexing (from eclipse) to no avail.
>
> It is quite difficult picking through the noise from compilation and code
> completion would be a God send.
>
> Best regards and Merry Christmas,
>
> Mike
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>

------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Does someone have a fix for false warnings from eclipse ide with C++ quantlib projects?

Michael Barrow-2
Hi Luigi,

This fellow has reported similar problems on his blog (at the very end as a note) http://quantcodetips.blogspot.co.uk/2012/02/setup-quantlib-under-windows-using.html 

When compiling the test suite, warnings are unresolved symbol errors and some warnings involving the style of virtual function definitions (there are around 200+)

I've not been able to root cause, but it may be possible to resolve this in QuantLib code as certain styles trip up the eclipse CDT indexer, however I can neither confirm this is what is happening or give an estimate of the work involved. 

I've attached a trivial example showing eclipse's inability to index the Quantlib includes despite its ability to successfully compile and run against them.

Mike

On Fri, Dec 28, 2012 at 1:37 PM, Luigi Ballabio <[hidden email]> wrote:
Hi Michael,
    I'm afraid I'm not familiar with the problem.  What kind of
warnings are you getting? Is it something that we can fix in the code?

Later,
    Luigi


On Wed, Dec 26, 2012 at 4:34 PM, Michael Barrow <[hidden email]> wrote:
> Hi all,
>
> I'm a long time stalker first time poster. False compiler warnings and the
> unresolved symbols (CDT only) with eclipse IDE when one includes
> quantlib.hpp seem to be well known. However I've not been able to fix this
> in Eclipse. Does anyone have some 'gold' settings (I'm using eclipse Indigo
> on Ubuntu 12.10) that they can share? I've tried adding the quantlib source
> tree to my project and re-indexing (from eclipse) to no avail.
>
> It is quite difficult picking through the noise from compilation and code
> completion would be a God send.
>
> Best regards and Merry Christmas,
>
> Mike
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

EclipseCDT-index-Faliure-28-12-2012.png (183K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Does someone have a fix for false warnings from eclipse ide with C++ quantlib projects?

Michael Barrow-2
If anyone is interested in a quick workaround, I've found that if you simply paste quantlib.hpp at the top of a cpp file, the eclipse Codan/CDT indexer seems to pick up on symbols correctly for that source file.

Any other pattern (copying quantlib.hpp to a project folder & referencing that for example) just does not work. Finger is squarely pointed at the eclipse guys on this one IMO.

Mike  

On Fri, Dec 28, 2012 at 6:04 PM, Michael Barrow <[hidden email]> wrote:
Hi Luigi,

This fellow has reported similar problems on his blog (at the very end as a note) http://quantcodetips.blogspot.co.uk/2012/02/setup-quantlib-under-windows-using.html 

When compiling the test suite, warnings are unresolved symbol errors and some warnings involving the style of virtual function definitions (there are around 200+)

I've not been able to root cause, but it may be possible to resolve this in QuantLib code as certain styles trip up the eclipse CDT indexer, however I can neither confirm this is what is happening or give an estimate of the work involved. 

I've attached a trivial example showing eclipse's inability to index the Quantlib includes despite its ability to successfully compile and run against them.

Mike

On Fri, Dec 28, 2012 at 1:37 PM, Luigi Ballabio <[hidden email]> wrote:
Hi Michael,
    I'm afraid I'm not familiar with the problem.  What kind of
warnings are you getting? Is it something that we can fix in the code?

Later,
    Luigi


On Wed, Dec 26, 2012 at 4:34 PM, Michael Barrow <[hidden email]> wrote:
> Hi all,
>
> I'm a long time stalker first time poster. False compiler warnings and the
> unresolved symbols (CDT only) with eclipse IDE when one includes
> quantlib.hpp seem to be well known. However I've not been able to fix this
> in Eclipse. Does anyone have some 'gold' settings (I'm using eclipse Indigo
> on Ubuntu 12.10) that they can share? I've tried adding the quantlib source
> tree to my project and re-indexing (from eclipse) to no avail.
>
> It is quite difficult picking through the noise from compilation and code
> completion would be a God send.
>
> Best regards and Merry Christmas,
>
> Mike
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>



------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users