Skip to main content
Dave Nadler
Senior III
October 24, 2018
Question

Atollic bugs: Convert to C++ (add C++ nature) fails to add C++ language to #Symbols tab

  • October 24, 2018
  • 14 replies
  • 7015 views

Atollic TrueSTUDIO® for STM32, Built on Eclipse Neon.1a.

Version: 9.1.0

Build id: 20181011-1241

Added C++ nature to a working C project.

Serious Bug 1: In Properties -> C/C++ General -> Paths and Symbols:

The Includes tab has added GNU C++ in the Languages column as it should.

Bug: In the # Symbols tab, GNU C++ is not added in the Languages column.

The additional language should be added, and initial values copied from the C language.

Extremely Annoying Bug 2: In Properties -> C/C++ General -> Paths and Symbols:

The Includes tab has added GNU C++ in the Languages column as it should.

Unfortunately, it is blank, where it should be initialized to a copy of the C language settings.

User has to copy and paste the entire list! Please fix initialization...

How do I work around bug 1?

Thanks!

0690X000006CFTBQA4.png

0690X000006CFTLQA4.png

This topic has been closed for replies.

14 replies

Dave Nadler
Senior III
October 25, 2018

It would be great if someone at ST could acknowledge this problem and let us know how to work around it. I've attached the complete project, even better would be if ST can correct the .cproject so that all build configurations and languages have the same include path and symbol settings.

Thanks!

Dave Nadler
Senior III
October 25, 2018
Dave Nadler
Senior III
November 1, 2018

@Imen DAHMEN​ ? Any other ST employee?

ST has bought Atollic, is ST going to support TrueSTUDIO® for STM32?

Thanks!

Technical Moderator
November 2, 2018

Hello @Dave Nadler​ ,

Thank you for bringing this to our attention.

I will raise this issue internally for check and analysis, then we come back to you with update.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".Thanks Imen
Markus GIRDLAND
ST Employee
November 15, 2018

Hello Dave,

When converting a C project to C++ there will be some configuring work needed. It's also noticed more when it's a project generated by CubeMX because we set up C++ for you in a project generated by TrueSTUDIO but never use it until the c++ nature is added to a project, then you only need to do the manual work for anything you've configured.

Includes and Symbols are not copied from C to C++ compiler automatically, it will require manual work.

Easiest way of doing this is actually by going here:

C/C++ Build > Settings > Tool Settings > C Compiler > Symbols.

Copy all lines to the corresponding C++ Compiler > Symbols.

Do the same batch copy for the Include paths.

It will hopefully speed up the process and make it less frustrating.

Dave Nadler
Senior III
November 15, 2018

@Markus GIRDLAND​ , you have not addressed the serious bug described above. Your customers are well aware that additional work is required to change a project from C to C++. Please get this to an Atollic engineer able to help fix the problem ASAP!

PS: Please fix your forum so it doesn't continually double-post as it did with your reply.

Technical Moderator
November 15, 2018

Hello @Dave Nadler​ ,

We are of such limitation 'double-post' and working to resolve this.

We apologize for any inconvenience this may cause and thank you for your comprehension.

Kind Regards,

Imen.

When your question is answered, please close this topic by clicking "Accept as Solution".Thanks Imen
Dave Nadler
Senior III
November 15, 2018

Its not a 'limitation', its a BUG.

Markus GIRDLAND
ST Employee
November 15, 2018

Hello again Dave,

The bug has been confirmed and there's a ticket for it. I'm not certain as to when we'll be able to have a solution for it because we couldn't figure out at first glance why it was happening.

I'm part of the Atollic engineering team.

Thanks for bringing it to our attention.

Dave Nadler
Senior III
November 15, 2018

@Markus GIRDLAND​ - Great to hear you have opened a ticket. Can you confirm:

(1) You have reproduced both bugs with a simple test

(2) You can see the problem in the ZIP'd example project I provided

Can I suggest you try to repair the .cproject XML?

This will clarify exactly what information is missing and may well help fix the serious bug.

Please keep me posted on progress and note its been over 3 weeks now,

Thanks,

Best Regards, Dave

Dave Nadler
Senior III
January 19, 2019

@Mattias Norlander​ - I see you mentioned converting to C++ in "CubeMX Best Practices" blog here: http://blog.atollic.com/best-practices-faq-truestudio-stm32cubemx

Have these bugs (problems converting CubeMX project to C++) now been fixed?

Thanks!

Best Regards, Dave

Markus GIRDLAND
ST Employee
November 16, 2018

@Dave Nadler​ We confirmed both bugs but we didn't do it with your specific example project we found it anyway. The testing we've done so far indicates that it's only happening on CubeMX generated projects as their .cproject differs from ours.

Dave Nadler
Senior III
November 30, 2018

Hi @Markus GIRDLAND​ - Any progress on getting this fixed?

5 weeks now...

Thanks!

Markus GIRDLAND
ST Employee
December 4, 2018

Hello Dave,

The ticket is assigned but not completed. It won't be in the next version of TrueSTUDIO which should be out pretty soon.