Legato Nested Component


#1

Hi,

Can somebody please help me understand what is Legato Nested Component in Legato Application Framework? When Do I create Legato Component and when should I create Legato Nested Component?

Should I create my static/shared library separately and import to Legato Application Framework or should I go for creating a component in Legato which can be used my other Legato application? Which one is a better approach? Please correct me if my understanding is wrong because I am a novice in Legato.

Thanks,
Yogesh


#2

Hi,

In an legato application, you can create several components by right click the project -> New -> Legato Nested Component.
BTW, how are you going to create static/shared library separately ? I don’t see such option in Develop studio.


#3

(related to Issues in Linking component with Application ; let’s continue the discussion there)


#4

Hi @daav

I am getting Unresolved Inclusion error when I include in Legato Application source file.

Please take a look at my “Preprocessor Include Paths” below.

Thanks,
Yogesh


#5

Even by using nested components, if you’re not using the api files mechanism, you need to specify where are your headers from one component to another, by using cflags sections.


#6

Hi @daav

I am getting Unresolved Inclusion error for “iostream”. Do I need to use cflags mechanism even for C++ Built-in library?

Thanks,
Yogesh


#7

Hi @yogesh.tyagi

iostream is a C++ header.
It will get resolved only if you include it from a .cpp file.


#8

Thanks @daav. It’s working now.