This widget could not be displayed.
Not applicable
May 17, 2016
02:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 17, 2016
02:35 PM
Hello,
I have to use global C++ objects in my project. When I declare global objects, an object is created but the constructors are not being called.
I did some research and found that constructors have to be placed in .ctors section and the constructors will be called in the startup code by function _init linked using crti.o
but this is not working for me. Could anyone help in this regard
Thanks!!
I have to use global C++ objects in my project. When I declare global objects, an object is created but the constructors are not being called.
I did some research and found that constructors have to be placed in .ctors section and the constructors will be called in the startup code by function _init linked using crti.o
but this is not working for me. Could anyone help in this regard
Thanks!!
- Tags:
- IFX
3 Replies
This widget could not be displayed.
Not applicable
May 18, 2016
01:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 18, 2016
01:47 AM
This widget could not be displayed.
Not applicable
May 19, 2016
02:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 19, 2016
02:54 PM
Thank you HRusch!
But the link was for Destructor problem and still my problem is open!! and what will happen by the below statement
void *__dso_handle; I read in the link somewhere that adding this statement will solve the destructor problem!!
But the link was for Destructor problem and still my problem is open!! and what will happen by the below statement
void *__dso_handle; I read in the link somewhere that adding this statement will solve the destructor problem!!
This widget could not be displayed.
Not applicable
May 19, 2016
11:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 19, 2016
11:49 PM
My latest tests showed me, that it worked.
You don't need -fno-use-cxa-atexit or void *__dso_handle anymore, if you are using the newest DAVE version.
I see that you use "Hightec compiler", therefore I cannot help.
C++ must be handled correct in the startup code of the toolchain.
You don't need -fno-use-cxa-atexit or void *__dso_handle anymore, if you are using the newest DAVE version.
I see that you use "Hightec compiler", therefore I cannot help.
C++ must be handled correct in the startup code of the toolchain.
This widget could not be displayed.