Atollic TrueStudio 7 inline compiller changes

Share code examples or discuss embedded software, including device drivers, interrupt handlers, middleware and application code.

Moderators: Markus Girdland, Mattias Norlander

alkysamara
Posts: 1
Joined: Mon Dec 05, 2016 3:42 pm

Atollic TrueStudio 7 inline compiller changes

Postby alkysamara » Mon Dec 05, 2016 3:52 pm

Hello, everyone!

I've just moved from TrueStudio 6. Trying to compile my project (which I've successfully compiled in studios 3-6) uexpectedly caused a bunch of errors. 'inline function '...' declared but never defined' in header. And the same function in .c: 'undefined reference to `...' '.

I've found out that removing 'inline' in header and lefting it just in .c allows to compile project without errors.

The question is: will it be the same? is it just a styllistic change to the compiller?

saacifuentesmu
Posts: 1
Joined: Mon Sep 23, 2019 6:16 am

Re: Atollic TrueStudio 7 inline compiller changes

Postby saacifuentesmu » Mon Sep 23, 2019 6:21 am

Hi,

It's a very late reply but I hope this still helps anyone.

Answer: It would not be the same. (Details: https://www.greenend.org.uk/rjk/tech/inline.html)

What you can do is to define the inlined function in the header (Hope you're not using global variables). That's the solution that I have found so far. It would be nice that somebody has something more helpful.


Return to “Embedded target code development discussions”

Who is online

Users browsing this forum: No registered users and 0 guests